-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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 option to skip schema-validation for values in HelmChartInflationGenerator #5813
Comments
The Kubernetes project currently lacks enough contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
I opened a PR to resolve this #5869 |
Hi @Argelbargel In kustomize, helm is used to generate static yaml manifests from the chart and is executed cleanly each time.
I did not fully comprehend your use case, but we recommend defining a /triage needs-information |
Hi @koba1t , the problem is, that the schema provided by a chart might be to strict, e.g. it might restrict the key below global to exactly the keys used by that chart. When using this chart as a dependency in concert with other charts you simply cannot use that chart. So the use case does not concern problems when upgrading a chart without updating the values but allowing the composition of charts with schemas that are to restrictive. One could say that this is a problem which should be reported to the maintainers of the problematic chart (or helm should ignore/prevent the restriction of e.g. the global namespace) but it's simply easier to disable the schema validation. Especially as the schema does not really provide that much value in most cases - there are just a few charts (that i know or use) for which the schema provides an alternative to reading the docs/comments in the values.yaml. |
Eschewed features
What would you like to have added?
Add a field skipSchemaValidation to the HelmChartInflationGenerator and pass it as --skip-schema-validation to helm if it's value is true
Why is this needed?
helm enforces schema validation for the values passed to a chart if the chart defines a schema for the expected values. While this feature might be practical in some use-cases it is a problem when using a helm-chart as dependency when the passed values contain properties for other dependencies or the main chart.
Thus helm added the option --skip-schema-validation (helm/helm#11510). Unfortunatly there seems to be no way to pass this flag using the HelmChartInflationGenerator
Can you accomplish the motivating task without this feature, and if so, how?
As there seems to be no way to disable helm's schema-validation globally, i see no (good/easy) way to use such charts with the HelmChartInflationGenerator otherwise.
What other solutions have you considered?
n/a
Anything else we should know?
No response
Feature ownership
The text was updated successfully, but these errors were encountered: