-
Notifications
You must be signed in to change notification settings - Fork 14
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
feat(charts)!: helm support for custom annotations and serviceAccount #1741
Conversation
Quality Gate passed for 'flex_linux_setup'Issues Measures |
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.
I think there is a misunderstanding here. The custom annotations are per resource per service. You shouldn’t be applying the same custom annotations for every resource.
Per deployment, per configMap, per secrets, per service. For the gluu-all-in-one this is easier since its one service. For the microservices chart you need to add them per service under the global
key depending on what resources are there for each service. Forexample, taking auth-server
you have 7different resources that need to have custom annotations. Each service(sub chart) might have a different number of resources that need custom annotations.
global:
auth-server:
# — Add custom annotations for kubernetes resources for the auth server service
customAnnotations:
destinationRule:
podDisruptionBudget:
virtualService:
deployment:
horizontalPodAutoscaler:
service:
secret:
{{ toYaml .Values.additionalAnnotations | indent 4 }} | ||
{{- end }} | ||
{{- if .Values.customAnnotations.configMaps }} |
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.
only the configMap . These annotations are per resource so here you would just add the annoatation for the configmap only not both secrets and configmaps otherwise the additionalAnnotations would suffice
{{- if .Values.additionalAnnotations }} | ||
{{ toYaml .Values.additionalAnnotations | indent 4 }} | ||
{{- end }} | ||
{{- if .Values.customAnnotations.configMaps }} |
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.
same comment as before but this time this shouuld be customAnnotations.cronjobs not certmanager or secret. Per resource
{{- if .Values.customAnnotations.configMaps }} | ||
{{ toYaml .Values.customAnnotations.configMaps | indent 4 }} | ||
{{- end }} | ||
{{- if .Values.customAnnotations.secrets }} | ||
{{ toYaml .Values.customAnnotations.secrets | indent 4 }} | ||
{{- end }} | ||
{{- 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.
same comment as before . it should be customAnnotations.deployment
…uFederation/flex into feat-flex-helm-customization
This reverts commit 9afb0ab.
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.
charts/gluu-all-in-one/values.yaml
Outdated
destinationRule: {} | ||
horizontalPodAutoscaler: {} | ||
gateway: {} | ||
ingress: {} |
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.
Please review all ingresses as per ingress additional annotations exist which means this is a duplicate. Same goes for the microservices chart
Signed-off-by: moabu <47318409+moabu@users.noreply.github.com>
remove duplicate ingress and move them under their respective service
{{- if index .Values "auth-server" "ingress" "authServerLabels" }} | ||
{{ toYaml (index .Values "auth-server" "ingress" "authServerLabels") | indent 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.
this is a duplicate and wrong entry that should be removed. This is not the auth -server service .
{{- if index .Values "auth-server" "ingress" "webfingerAdditionalAnnotations" }} | ||
{{ toYaml (index .Values "auth-server" "ingress" "webfingerAdditionalAnnotations") | indent 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.
should be removed.
Quality Gate passed for 'flex_admin_ui'Issues Measures |
closes #1740
This introduces breaking changes to the helm chart as it:
PLEASE BE ADVISED.