-
Notifications
You must be signed in to change notification settings - Fork 114
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
Helm Release does not pickup changes in locally stored templates #2118
Comments
Hi @benbust - thank you for filing this bug! Also, many thanks for the workaround; it's always helpful for others who may be running into a similar issue. We will need to add a check to detect source file changes here and will be taking a look soon. |
I believe to address this we'd need to either:
|
I tried the above workaround and it wasn't working for me. An alternative workaround was this code:
|
Possibly related to #748 |
w/a I use:
This is kinda logical - chart version should be bumped on chart change. |
Similar to: hashicorp/terraform-provider-helm#515 Upon some investigation, the ideal seems to be to use the checksum of the rendered template, as opposed to that of the raw files. This would allow Pulumi to take into account the computed output. I observe that the template is rendered eagerly by the provider (during Check) to re-compute the resource names. I'll investigate further. |
### Proposed changes This PR fixes a usability problem with the `kubernetes:helm.sh/v3:Release` resource when using a local chart. With this fix, Pulumi automatically detects changes to the rendered output of the chart and performs a Helm upgrade accordingly. It does this by persisting a SHA256 checksum of the chart output into the Pulumi stack state. Users may suppress change detection with the `ignoreChanges` option, i.e. `ignoreChanges: ["checksum"]`. **Upgrade considerations**: after upgrading the provider, users should expect to see a diff (`checksum` property) and a corresponding Helm upgrade. Helm upgrades are generally idempotent. ### Related issues (optional) Closes #2118
What happened?
When referencing a Chart with a local path, if I apply changes to the templates and run
pulumi up
, the release is not updated.As a workaround, I've set
forceUpdate: true
.Steps to reproduce
Using
kind
:kind create cluster --name pulumi
The pulumi-chart-test/templates folder contains a simple manifest and if I add the below:
apiVersion: v1 kind: ConfigMap metadata: name: pulumi annotations: + test: "update" data: hello: {{ .Values.pulumi }}
And run
pulumi up
nothing happens.Expected Behavior
The Helm release should be updated with any addition to its manifests.
Actual Behavior
Nothing happened, the release is not updated according to the changes in the underlying manifest.
Versions used
Additional context
No response
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
The text was updated successfully, but these errors were encountered: