Skip to content

Commit

Permalink
fix(helm): replace image.annotation to podAnnotations & add podLabels
Browse files Browse the repository at this point in the history
close #884
  • Loading branch information
tchiotludo committed Oct 27, 2021
1 parent 430b80a commit 82c5b94
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
5 changes: 4 additions & 1 deletion helm/akhq/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,15 @@ spec:
{{- if and (not .Values.existingSecret) (.Values.secrets) }}
checksum/secrets: {{ include (print $.Template.BasePath "/secret.yaml") . | sha256sum }}
{{- end }}
{{- with .Values.image.annotations }}
{{- with .Values.podAnnotations }}
{{- toYaml . | nindent 8 }}
{{- end }}
labels:
app.kubernetes.io/name: {{ include "akhq.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- with .Values.podLabels }}
{{- toYaml . | nindent 8 }}
{{- end }}
spec:
{{- if .Values.imagePullSecrets }}
imagePullSecrets:
Expand Down
6 changes: 5 additions & 1 deletion helm/akhq/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,13 @@ annotations: {}
#prometheus.io/port: '8080'
#prometheus.io/path: '/prometheus'

podAnnotations: {}

# custom labels
labels: {}
# custom.label: 'true
# custom.label: 'true'

podLabels: {}

## You can put directly your configuration here... or add java opts or any other env vars
extraEnv: []
Expand Down

0 comments on commit 82c5b94

Please sign in to comment.