Documentation
¶
Overview ¶
Package utils provides utility functions for the Helm.
Index ¶
- func MergeMaps(a, b map[string]interface{}) map[string]interface{}
- func MergeVals(helmFlagOpts values.Options, helmMapOpts map[string]string) (map[string]interface{}, error)
- func SetupEverestDevChart(l *zap.SugaredLogger, path *string) (func(), error)
- func YAMLStringsToBytes(strs []string) []byte
- type ServerValues
- type ServiceValues
- type TLSValues
- type Values
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MergeMaps ¶ added in v1.7.0
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 ¶
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
ParseValues parses the given values map into a Values struct.