-
Notifications
You must be signed in to change notification settings - Fork 13.8k
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
build: helm template to set init job annotations #23941
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -621,7 +621,9 @@ init: | |||
- "-c" | |||
- ". {{ .Values.configMountPath }}/superset_bootstrap.sh; . {{ .Values.configMountPath }}/superset_init.sh" | |||
enabled: true | |||
helmHook: true | |||
jobAnnotations: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's just call this key annotations
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there is another key called podAnnotations below so i kept it specific.
hooks need to go on the job annotation
Is that ok?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, i see. Nevermind :)
Running CI 🤞 |
@ybudweiser Install and run helm-docs to fix the issue in CI. |
SUMMARY
Provides a flexible option for adding annotations to the init-db job. By default the existing helm hooks will be added, however a user can now replace the annotations with hooks compatible with argo cd.
TESTING INSTRUCTIONS
ADDITIONAL INFORMATION
ADDITIONAL INFORMATION
Note: This removes the helm value of init.helmHook and replaces it with a more flexible option
If you have previously disabled the helmHook to continue with it disabled you will need to replace it with
init.jobAnnotations = {}