Score:2

Helm: how to add elements to a list of default values?

au flag

It might be a very simple question, though somewhy I can't google the answer.

Let's assume we have a Helm chart with some default values such as the following:

parameters:
- parameterName: parameter1
  value: value1
- parameterName: parameter2
  value: value2

I need to add an element to this list in my extra values file. Of course, I can just duplicate the default values to my extra values file and add my extra parameters to them:

parameters:
- parameterName: parameter1
  value: value1
- parameterName: parameter2
  value: value2
- parameterName: parameterN
  value: valueN

I don't like this idea, because when the maintainers of this Helm chart change their defaults, my defaults will override instead of following them.

What is the proper way to add my parameterN to the default values?

Thanks in advance?

Score:1
in flag
Score:1
in flag

According to https://github.com/helm/helm/issues/6569, this is not possible. This is by design, because lists are designed to be used as immutable data. The answers on that github issue suggest to use a map instead of a list, if this is possible in your situation.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.