MCPcopy Create free account
hub / github.com/cozystack/talm / splitChainedSetValue

Function splitChainedSetValue

pkg/engine/setvalue_warn.go:87–89  ·  view source on GitHub ↗

splitChainedSetValue splits a chained --set value (`k1=v1,k2=v2,k3=v3`) into its constituent pairs. The actual Helm strvals parser handles escape semantics; this helper exists only to screen each pair for the IP-shape footgun before strvals chews the string. A simple Split on ',' is enough for the c

(value string)

Source from the content-addressed store, hash-verified

85// shapes the warning targets — operators with embedded commas in
86// values should already be reaching for --set-literal or --set-json.
87func splitChainedSetValue(value string) []string {
88 return strings.Split(value, ",")
89}
90
91// emitSetValueCoercionWarning writes the operator-facing warning to
92// setValueWarningWriter for the offending pair. Format matches the

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected