values

package
v0.29.7 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2024 License: Apache-2.0 Imports: 25 Imported by: 14

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetChangedValues added in v0.4.0

func GetChangedValues(original, modified map[string]any) ([]string, error)

func GetValuesDiff added in v0.4.0

func GetValuesDiff(orig, od any) (map[string]any, error)

func GetValuesDiffJson added in v0.29.5

func GetValuesDiffJson(orig, od any) ([]byte, error)

func GetValuesDiffYAML added in v0.4.0

func GetValuesDiffYAML(orig, od any) ([]byte, error)

func GetValuesMapDiff added in v0.29.6

func GetValuesMapDiff(original, modified map[string]any) (map[string]any, error)

func LoadPresetValues added in v0.7.2

func MergePresetValues added in v0.4.0

func MergePresetValues(kc client.Client, chrt *chart.Chart, ref chartsapi.ChartPresetFlatRef) (map[string]interface{}, error)

func PrintArray added in v0.4.0

func PrintArray(a []any) (string, error)

func ToJsonMap added in v0.29.7

func ToJsonMap(v any) (map[string]any, error)

Types

type KV

type KV struct {
	K string
	V interface{}
}

type Options

type Options struct {
	ReplaceValues map[string]interface{} `json:"replaceValues"`
	ValuesFile    string                 `json:"valuesFile"`
	ValuesPatch   *runtime.RawExtension  `json:"valuesPatch"`
	ValueBytes    [][]byte               `json:"valueBytes"`
	StringValues  []string               `json:"stringValues"`
	Values        []string               `json:"values"`
	KVPairs       []KV                   `json:"kv_pairs"`
}

- If ReplaceValues != nil, then just use that values as=is - else - if ValuesPatch != nil, then apply patch to the ValuesFile and use the generated values - else coalesce the StringValues and Values into ValuesFile and use those as the final values.

See also: https://github.com/helm/helm/blob/v3.5.4/pkg/cli/values/options.go#L39-L86

func (*Options) MergeValues

func (opts *Options) MergeValues(chrt *chart.Chart) (map[string]interface{}, error)

MergeValues merges values from files specified via -f/--values and directly via --set, --set-string, or --set-file, marshaling them to YAML

Jump to

Keyboard shortcuts

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