-
Notifications
You must be signed in to change notification settings - Fork 273
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
Deploying Helm charts that use strict value validation breaks with Garden #3962
Comments
A community member was bitten by this bug just now when attempting to deploy kind: Deploy
type: helm
name: platformhub-helm
spec:
releaseName: jupyterhub
namespace: jupyterhub
chart:
repo: https://jupyterhub.github.io/helm-chart/
name: jupyterhub
version: "1.2.0" The Discord forum post is available here. |
This depends on upstream |
Hello, I've also run into this issue with regards to the helm chart for the open telemetry collector. As you can see, |
+1 - having the same OpenTelemetry Collector <> Garden issue. |
Hitting this myself for Jupyterhub. Upstream looks like they are dragging their feet. Starting to see a pattern with Helm features. |
Bug
Current Behavior
It is not possible to install helm charts with Garden that use strict values validation via a values.schema.json that include the
additionalProperties: false
stanza. For an overview of json schema validation for helm values see here.Garden adds custom values to a chart deployed with Garden to add some metadata to the helm release. This is an example of a values file that Garden produces:
When
additionalProperties: false
is set in the values.schema.json of a chart the deploy will fail with following error:Expected behavior
Garden deploys the helm chart.
Reproducible example
Deploy the istio gateway Helm Chart with Garden e.g.:
Workaround
If you maintain the chart, consider setting
additionalProperties: true
in the validation schema. If it is a public chart the only way to install it is to download it and store it locally and setadditionalProperties: true
.There is an open issue in Helm like helm/helm#10398 to override the validation client-side.
Suggested solution(s)
Store the Garden related metadata in a configmap or secret in the same namespace similar to test results instead of Helm values.
Additional context
If you run into this error please give the issue a thumbsup, currently we only saw this with the istio chart.
Your environment
garden version
The text was updated successfully, but these errors were encountered: