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

Add default value selector #5885

Merged
merged 3 commits into from
Jan 20, 2023
Merged

Add default value selector #5885

merged 3 commits into from
Jan 20, 2023

Conversation

absoludity
Copy link
Contributor

@absoludity absoludity commented Jan 18, 2023

Signed-off-by: Michael Nelson [email protected]

Description of the change

This PR adds a default values selector to the DeploymentForm which is only displayed if a package has multiple additional values file in the package. For packages with multiple additional values files, the deploy initially uses the package values.yaml, but the form explains why the selector is available:

5692-01-default-values

If the user selects a different default values file, the form is updated with that files content, ready for editing:

5692-02-custom-values-selected

And finally, if the user edits the fields, the diff is against the selected default, as expected:
5692-03-with-diff

Also fixes issue to enable hyphens in custom values files (hard to find bug found while testing this PR).

Benefits

Possible drawbacks

Applicable issues

Additional information

Tomorrow (actually, Friday), I will verify the behaviour for installed packages being upgraded.

Also fixes issue to enable hyphens in custom values files.

Signed-off-by: Michael Nelson <[email protected]>
@netlify
Copy link

netlify bot commented Jan 18, 2023

Deploy Preview for kubeapps-dev canceled.

Name Link
🔨 Latest commit 996c7f3
🔍 Latest deploy log https://app.netlify.com/sites/kubeapps-dev/deploys/63c798e1f734d7000814d403

@absoludity absoludity changed the title Initial work for multiple default values. Add default value selector Jan 18, 2023
@absoludity absoludity marked this pull request as ready for review January 18, 2023 06:50
Signed-off-by: Michael Nelson <[email protected]>
@absoludity absoludity merged commit 279e226 into main Jan 20, 2023
@absoludity absoludity deleted the 5692-multiple-values-options-2 branch January 20, 2023 03:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support additional default values from a package
2 participants