Skip to content

Commit

Permalink
Allow configuration of additional annotations and labels (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
rfranzke authored May 17, 2023
1 parent d7a1946 commit a112dd7
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
6 changes: 6 additions & 0 deletions charts/lakom/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ metadata:
helm.sh/chart: {{ .Values.name }}
app.kubernetes.io/instance: {{ .Release.Name }}
high-availability-config.resources.gardener.cloud/type: server
{{- if .Values.additionalLabels.deployment }}
{{- toYaml .Values.additionalLabels.deployment | trim | nindent 4 }}
{{- end }}
spec:
revisionHistoryLimit: 5
replicas: {{ .Values.replicaCount }}
Expand All @@ -34,6 +37,9 @@ spec:
labels:
app.kubernetes.io/name: {{ .Values.name }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- if .Values.additionalLabels.deployment }}
{{- toYaml .Values.additionalLabels.deployment | trim | nindent 8 }}
{{- end }}
spec:
{{- if gt (int .Values.replicaCount) 1 }}
affinity:
Expand Down
4 changes: 4 additions & 0 deletions charts/lakom/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ metadata:
labels:
app.kubernetes.io/name: {{ .Values.name }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- if .Values.additionalAnnotations.service }}
annotations:
{{- toYaml .Values.additionalAnnotations.service | trim | nindent 4 }}
{{- end }}
spec:
type: ClusterIP
selector:
Expand Down
4 changes: 4 additions & 0 deletions charts/lakom/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,7 @@ vpa:
memory: 64Mi
updatePolicy:
updateMode: "Auto"
additionalAnnotations:
service: {}
additionalLabels:
deployment: {}

0 comments on commit a112dd7

Please sign in to comment.