-
Notifications
You must be signed in to change notification settings - Fork 85
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
HelmChartConfig deletion is not tracked #121
Comments
Isn't this a duplicate of #33 ? |
@SchoolGuy: No, it is not. #33 is not very precise about exactly what deletion is failing, but it is most likely about deletion of Helm releases via deletion of |
I am using k3s-v1.21.4+k3s1. Also running into this issue. Adding a Taking
When deleting the
|
I can confirm this report. Just ran into this because I changed the traefik log level to debug. After fixing my problem I removed the HelmChartConfig again. My expectation was the traefik would be upgraded with the old log level. Instead it kept running at log level debug. |
Hello, I had the problem today, and maybe I can add more info: When I applied my modifications, the helm job did run, but the old values of the deleted HelmChartConfig were still used instead of the new ones from the HelmChart. The problem comes from the "chart-values-xxx" secret which still contains the "values-10_HelmChartConfig.yaml" data, which contains the values from the deleted HelmChartConfig. These values take precedence over the "values-01_HelmChart.yaml" that exists in the same secret. To workround the problem, I deleted the secret before removing the HelmChartConfig CRD |
The ValuesSecret contents are regenerated every time the HelmChart or HelmChartConfig resource are modified: helm-controller/pkg/controllers/chart/chart.go Lines 590 to 618 in 2f32059
If the HelmChartConfig is deleted, the relevant section will be absent from the generated secret. I don't see any way that the |
Hello, you are right, I'm not able to reproduce the problem. I ran into this problem when I used terraform to update a lot of helmcharts and delete a lot of helmchartconfigs (using fleet) AND upgrade RKE2 (using rancher) from 1.27 to 1.28 at the same time. Maybe this caused the problem as RKE2 is restarted several times in the process? I was able to reproduce it several times while testing the upgrade. If I only update the helmcharts and delete the helmchartconfigs after the upgrade to 1.28 is completed, I don't encounter the problem. Thank you |
It appears the controller is currently silently ignoring the deletion of HelmChartConfig resource. It seems the the controller should track those, and redeploy (upgrade?) the corresponding Helm release to reflect the new desired state. Since the controller does track updates, a workaround is to update the deployed HelmChartConfig resource to one with "empty" values. But properly tracking deletions would be better, as it would match the intuitive expectations / principle of least surprise.
The text was updated successfully, but these errors were encountered: