values

package
v0.5.8 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2023 License: Apache-2.0 Imports: 23 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]interface{}) ([]string, error)

func GetValuesDiff added in v0.4.0

func GetValuesDiff(original, modified map[string]interface{}) (map[string]interface{}, error)

func GetValuesDiffYAML added in v0.4.0

func GetValuesDiffYAML(orig, od interface{}) ([]byte, error)

func LoadVendorPresets added in v0.4.0

func LoadVendorPresets(chrt *chart.Chart) (map[string]*chartsapi.VendorChartPreset, error)

func MergePresetValues added in v0.4.0

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

func PrintArray added in v0.4.0

func PrintArray(a []interface{}) (string, 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 LoadClusterChartPresetValues added in v0.4.0

func LoadClusterChartPresetValues(kc client.Client, vpsMap map[string]*chartsapi.VendorChartPreset, in chartsapi.Preset, ns string) (Options, error)

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