Skip to content

Commit

Permalink
Support for Gimlet metadata annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
laszlocph committed Aug 22, 2023
1 parent 3a04385 commit 3b9b6e3
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions charts/static-site/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@ metadata:
namespace: {{ .Release.Namespace }}
labels:
{{- include "staticSite.labels" . | nindent 4 }}
{{- if or .Values.gitRepository .Values.gitSha }}
annotations:
{{- if .Values.gitRepository }}
gimlet.io/git-repository: {{ .Values.gitRepository }}
{{- end }}
{{- if .Values.gitSha }}
gimlet.io/git-sha: {{ .Values.gitSha }}
{{- end }}
{{- end }}
spec:
replicas: {{ .Values.replicaCount }}
selector:
Expand Down

0 comments on commit 3b9b6e3

Please sign in to comment.