Skip to content

Merge lists in chart dependencies values.yaml #3767

Description

@jacobtomlinson

I'm not sure how to approach a problem I have. Potentially it could result in a feature proposal, or we could just decide it isn't desired functionality. I would appreciate some guidance and discussion.

I am creating a chart which has a subchart.

The subchart values.yaml file has a list item.

foo: []

In the main chart I need to add an entry to that list.

mysubchart:
  foo:
    - "bar"

This works fine, however if a user of my chart wants to set subchart.foo they will override my list completely. Ideally I want the user's list and the chart list to be merged, however that would mean they couldn't override the value if they wanted to.

If there wasn't a subchart dependency I would just put the values directly in the template, or have two lists sequentially in the template. However I don't have control over the templates.

I see three solutions:

  • Merge lists by default with the flag to override
  • Override lists by default with a flag to merge
  • Add way to override templates

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions