MCPcopy
hub / github.com/helm/helm / AsMap

Method AsMap

pkg/chart/common/values.go:67–72  ·  view source on GitHub ↗

AsMap is a utility function for converting Values to a map[string]interface{}. It protects against nil map panics.

()

Source from the content-addressed store, hash-verified

65//
66// It protects against nil map panics.
67func (v Values) AsMap() map[string]any {
68 if len(v) == 0 {
69 return map[string]any{}
70 }
71 return v
72}
73
74// Encode writes serialized Values information to the given io.Writer.
75func (v Values) Encode(w io.Writer) error {

Callers 7

processImportValuesFunction · 0.80
recAllTplsFunction · 0.80
WriteTableMethod · 0.80
processImportValuesFunction · 0.80

Calls

no outgoing calls