-
Notifications
You must be signed in to change notification settings - Fork 448
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
10.12.2 has a bug due to the recent addition of a migration hook file and a missing value #1757
Comments
@act-mreeves Thanks for reporting ! However, when I tried this below command , it was able to get full template without any issues , any other information that can help us to debug further ?
|
Hi @chukka, thanks for your quick response! I copied the current values file at https://github.com/jfrog/charts/blob/master/stable/jfrog-platform/values.yaml to values-test.yaml and then ran: However, if I change this one bit in values-test.yaml:
it will fail as explained.
The helm chart should ideally be made a little bit more defensive. |
Noted, we will fix in it in next release adding additional check |
closed via #1777 |
Thanks! |
Still not working. Same example as above. Create values-test.yaml like this:
and run helm and you get same error:
Create values-test.yaml like this:
and run this and it works:
|
Is this a request for help?:
No, just trying to help other users. I found an easy workaround by tweaking my values file.
Is this a BUG REPORT or FEATURE REQUEST? (choose one):
BUG REPORT
Version of Helm and Kubernetes:
helm 3.11 and k8s 1.23
Which chart:
10.12.2
Which product license (Enterprise/Pro/oss):
Doesn't matter
JFrog support reference (if already raised with support team):
n/a
What happened:
This command surfaced an error to the recent addition of a migration hook file.
This commit: bf993a1 added this file: stable/jfrog-platform/templates/migration-hook.yaml has a bug in this line:
{{- if .Values.rabbitmq.podSecurityContext.enabled }}
because https://github.com/jfrog/charts/blob/master/stable/jfrog-platform/values.yaml does not have a rabbitmq.podSecurityContext.enabled setting. Probably all the functionality in that file should be gated by a check to see if rabbitmq.enabled is true.What you expected to happen:
The diff to succeed.
How to reproduce it (as minimally and precisely as possible):
Run
helm template af2 jfrog/jfrog-platform --version 10.12.2 --namespace artifactory --values values.yaml --validate --is-upgrade
Anything else we need to know:
I'd fix this myself as described but not sure of your preferred approach. I'd probably add a default value for rabbitmq.podSecurityContext.enabled but as I mentioned you may want to gate the whole thing.
I tested a fix by adding this to my values file and it worked.
The text was updated successfully, but these errors were encountered: