utils

package
v1.8.1-rc1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 8, 2025 License: Apache-2.0 Imports: 14 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package utils provides utility functions for the Helm.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MergeMaps added in v1.7.0

func MergeMaps(a, b map[string]interface{}) map[string]interface{}

MergeMaps recursively merges the values of b into a copy of a, preferring the values from b.

func MergeVals

func MergeVals(
	helmFlagOpts values.Options,
	helmMapOpts map[string]string,
) (map[string]interface{}, error)

MergeVals merges all values from flag options ('helmFlagOpts') and auto-generated helm options based on environment ('helmMapOpts'), and returns a single map with all of these options merged. 'helmMapOpts' can be nil.

func SetupEverestDevChart

func SetupEverestDevChart(l *zap.SugaredLogger, path *string) (func(), error)

SetupEverestDevChart sets up the development chart for Everest. Returns a clean-up function that should be called when the chart is no longer needed.

func YAMLStringsToBytes

func YAMLStringsToBytes(strs []string) []byte

YAMLStringsToBytes converts a slice of YAML strings to a single byte slice.

Types

type ServerValues added in v1.7.0

type ServerValues struct {
	TLS     TLSValues     `json:"tls" yaml:"tls"`
	Service ServiceValues `json:"service" yaml:"service"`
}

ServerValues represents the configuration values for the Everest server.

type ServiceValues added in v1.7.0

type ServiceValues struct {
	Name string `json:"name" yaml:"name"`
	Port int    `json:"port" yaml:"port"`
}

ServiceValues represents the configuration values for the Everest service.

type TLSValues added in v1.7.0

type TLSValues struct {
	Enabled bool `json:"enabled" yaml:"enabled"`
}

TLSValues represents the configuration values for the Everest server TLS.

type Values added in v1.7.0

type Values struct {
	Server ServerValues `json:"server" yaml:"server"`
}

Values represents all the known configuration values for the Everest Helm chart. Fields may be added here as needed.

func ParseValues added in v1.7.0

func ParseValues(values map[string]interface{}) (*Values, error)

ParseValues parses the given values map into a Values struct.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL