Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only the old values.yaml is used instead of merging them with new ones #360

Open
mszostok opened this issue Jun 18, 2021 · 0 comments
Open
Labels
area/engine Relates to Engine enhancement New feature or request needs-triage Relates to issues that should be refined

Comments

@mszostok
Copy link
Member

mszostok commented Jun 18, 2021

Description

In the current approach, we set the reuseValues: true in our Helm runner manifests. By doing so, we want to reuse user supplied values. In that way, we preserve all customization e.g. increased resources etc.

Expected behavior

The user supplied values are preserved, but at the same time new values all also available.

Actual behavior

The new values.yaml is replaced with old values.yaml causing that new functionality is cannot be used. For example, when new value notes.printInsecure was added, the installation failed with such error:

while executing runner: while starting action: while running Helm command "upgrade": while installing Helm chart: template: capact/templates/NOTES.txt:6:13: executing "capact/templates/NOTES.txt" at <.Values.notes.printInsecure>: nil pointer evaluating interface {}.printInsecure

and upgrade was not possible.

Workaround

For now, we set new values in Helm runner overrides. As a result, they are merged with old values.yaml and new functionality can use them. See: #357

Implementation suggestion

To support that we can add new option to Helm CLI, sth like reuse-user-provided-values. Currently, there is only an option with pure override: https://github.com/helm/helm/blob/179f90151d5ecb4aa3d35ada35e82b5c1e791752/pkg/action/upgrade.go#L443-L458. But first, we need to create an issue and discuss the approach with Helm maintainers.

So as an intermediate step, we can implement that functionality directly in Helm runner.

@mszostok mszostok added enhancement New feature or request area/engine Relates to Engine needs-triage Relates to issues that should be refined labels Jun 18, 2021
@mszostok mszostok added this to the 0.4.0 milestone Jun 18, 2021
@mszostok mszostok changed the title The old values.yaml is used instead of Only the old values.yaml is used instead of merging them with new ones Jun 18, 2021
@pkosiec pkosiec modified the milestones: 0.4.0, 0.5.0 Jul 20, 2021
@pkosiec pkosiec removed this from the 0.5.0 milestone Sep 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/engine Relates to Engine enhancement New feature or request needs-triage Relates to issues that should be refined
Projects
None yet
Development

No branches or pull requests

2 participants