fix(): values path for CRDs when running upgrade job#6959
fix(): values path for CRDs when running upgrade job#6959termin-natetor wants to merge 1 commit into
Conversation
Signed-off-by: Nathaniel Allen <nathaniel.allen@gridfuse.com>
|
Per docs, at'ing the maintainers: |
which docs telling you to at'ing the maintainers? |
|
Mention that the jobs lives in the sub chart crd. Values from the main. chart to the sub chart needs to be prefixed by the sub chart name itself. Any values under |
|
Hiya,
In any case thanks for responding. I suspected that would be the case but that's not the behavior I see in my chart, is there a test for that? I had to set values to this in our ArgoCD wrapper chart to get the behavior I expected (no upgrade job): kube-prometheus-stack:
upgradeJob:
enabled: false
crds:
upgradeJob:
# explicitly disable the upgrade job so Argo can manage it
enabled: false |
|
This should be sufficent: kube-prometheus-stack:
crds:
upgradeJob:
# explicitly disable the upgrade job so Argo can manage it
enabled: falseRef: The default is false anyways. |
|
The chart itself works as expected:
With this PR, the value to enable the crds-upgrade Job would be |

[kube-prometheus-stack] Fix incorrect values path in CRD upgrade job template
What this PR does / why we need it:
When rolling out a major upgrade from 85.0->86.0, I noticed that even when I tried to disable the upgrade Job (we use Argo), it was still being created.
I poked around and it looks like the Helm template is using the wrong key:
.Values.upgradeJob.*instead of.Values.crds.upgradeJob.*Special notes for your reviewer
Checklist
[prometheus-couchdb-exporter])