-
Notifications
You must be signed in to change notification settings - Fork 4.5k
helm-chart: Add annotations on webapp service #12981
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
Conversation
Suggest using the automated readme generator for documenting your new value instead, see ci.sh |
{{- if .Values.webapp.service.annotations }} | ||
annotations: | ||
{{- include "common.tplvalues.render" (dict "value" .Values.webapp.service.annotations "context" $) | nindent 4 }} | ||
{{- end }} |
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.
{{- if .Values.webapp.service.annotations }} | |
annotations: | |
{{- include "common.tplvalues.render" (dict "value" .Values.webapp.service.annotations "context" $) | nindent 4 }} | |
{{- end }} | |
{{- with .Values.webapp.service.annotations }} | |
annotations: | |
{{- toYaml . | nindent 4 }} | |
{{- end }} |
Does something prevents you from following the same syntax as used in ingress.yaml
to create indentations? I'd prefer both file to use the same syntax for consistency.
Thank you @thomas-vl for this contribution. Could you please share why you need annotations on your web app service? |
Thank you for the suggestion @dingobar , I run
Do you know how to fix this? It looks related to how the |
@thomas-vl are you ready to make the changes @dingobar and I suggested? |
FYI I'll be off until next Monday, please bear with me if there's a delay reviewing your upcoming changes. |
I run Airbyte on GKE and I need to annotate the service with the correct NEG so that the HTTPS Loadbalancer knows what endpoint to use. |
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.
@thomas-vl I made the changes suggested by @dingobar and used the same jinja syntax as in ingress.yaml
to render annotations from values.
What
Added the possibility of creating annotations on the service in the helm chart.
How
Updated the helm chart to allow service annotations.
🚨 User Impact 🚨
There are no breaking changes you can still deploy without using annotations.