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 21, 2023
1 parent 3fda8ce commit 52b7f99
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions charts/static-site/templates/service.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:
type: {{ .Values.service.type }}
ports:
Expand Down

0 comments on commit 52b7f99

Please sign in to comment.