Add deployment annotations for auto-devops integrations
In order to integrate with auto-devops deployments need annotations as shown in this example:
https://gitlab.com/gitlab-org/charts/auto-deploy-app/blob/master/templates/deployment.yaml#L22-23
metadata:
name: ...
annotations:
{{ if .Values.gitlab.app }}app.gitlab.com/app: {{ .Values.gitlab.app | quote }}{{ end }}
{{ if .Values.gitlab.env }}app.gitlab.com/env: {{ .Values.gitlab.env | quote }}{{ end }}
...
spec:
template:
metadata:
annotations:
checksum/application-secrets: "{{ .Values.application.secretChecksum }}"
{{ if .Values.gitlab.app }}app.gitlab.com/app: {{ .Values.gitlab.app | quote }}{{ end }}
{{ if .Values.gitlab.env }}app.gitlab.com/env: {{ .Values.gitlab.env | quote }}{{ end }}
Adding custom annotations is not currently supported by the registry chart, as well as other charts for GitLab
https://gitlab.com/charts/gitlab/blob/master/charts/registry/templates/deployment.yaml#L4
Edited by Jason Plum