Closed olenotron closed 11 months ago
Will valuesFrom
still work with this format?
Will
valuesFrom
still work with this format?
@zevisert nice catch! this is a fix we can implement to support both cases:
envVars:
FOO: "bar"
BOB:
valueFrom:
configMapKeyRef:
name: "foo"
key: "bar"
What do you think?
@p-afraz Yeah, that format seems logical. Looking into the changes here now, the new helmet.dictToArray
helper needs to be updated to support that.
As a user of Helmet, I want to modify specific sections of envVars. However, it's not possible. This is because envVars is an array. Consequently, changing a single key is impossible since Helm overrides the entire set of variables. This PR fixes the open issue https://github.com/companyinfo/helm-charts/issues/19.
The solution involves changing the data type from an array to a map, like this: