-
Notifications
You must be signed in to change notification settings - Fork 200
Description
Issue
I used the new watcher which triggers a helm upgrade in the configMap, which is source for the value for a helm chart.
Both my configmap and HR object live in the same git repo.
When I update the HR to change the chart version as well as new fields in my values.yaml file, I notice multiple upgrades are triggered.
First upgrade: Old Helm Chart Version + New ConfigMap with new values
Second upgrade: New Helm Chart Version + New ConfigMap with new values
Problem
The first state is unintended. If the new values has a parameter which will not work with old chart version, my first upgrade goes to "pending upgrade" until timeout is reached.
Expectation
HC should not attempt an upgrade for new values if its coming from same commit where referred helm chart version is also changed.
It should avoid the half applied state since user intent is new HC + new value
Normal UpgradeSucceeded 12s helm-controller Helm upgrade succeeded for release test-namespace/podinfo.v6 with chart podinfo@6.9.2+971fe │ │ f0d04d5 │ │ Normal UpgradeSucceeded 4s helm-controller Helm upgrade succeeded for release test-namespace/podinfo.v7 with chart podinfo@6.9.4+8b862 │ │ d260d24