vmware-tanzu / kubeapps

A web-based UI for deploying and managing applications in Kubernetes clusters
Other
4.96k stars 706 forks source link

How to only use default values when the chart has a custom values file #6564

Open ffdfgdfg opened 1 year ago

ffdfgdfg commented 1 year ago

Summary The chart has a custom values file, and dashboard only display custom values, but I want to use defaults.

Background and rationale

Description I deployed rook-ceph-cluster with default values via kubeapps. After they added an external custom values file, upgrade form only display custom values, that's leads wrong values. Deploy new rook-ceph-cluster chart also uses custom values and not usable. Additional context I tried rollback to v2.6.0, but when I click into upgrade, shows An error occurred: Document with errors cannot be stringified. , it's ok in v2.8.0

absoludity commented 1 year ago

Oh - interesting. Yes, we added a feature so that companies can add a custom values file to charts to have those values (merged with the defaults) presented to users, but hadn't anticipated public charts to add custom value files for their own uses.

Currently if there is more than one custom value file, we present a drop-down to choose from, but if there is only one, we do not provide any options.

Two options I can imagine working into the future:

Any objections to updating this functionality to require the specific filename for Kubeapps to present it as the default? I think that better suits the original use-case for that feature, and ensures we avoid this unexpected behaviour.

absoludity commented 1 year ago

Added the good first issue label as the fix, if agreed as above, should be straight forward and a good intro to the code-base for anyone interested.

ffdfgdfg commented 1 year ago

If the specifically named custom file not exists, will kubeapps use default values?

absoludity commented 1 year ago

If the specifically named custom file not exists, will kubeapps use default values?

Yes, that's what I'm proposing: Kubeapps will always display the chart default values.yaml values unless

ffdfgdfg commented 1 year ago

Excellent! Thank you.