Skip to content

Commit

Permalink
add custom pod labels and annotations support (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
korjek authored Apr 21, 2021
1 parent 1bbcc8a commit c2d7c72
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/burrow/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ apiVersion: v1
appVersion: "1.3.3"
description: A Helm chart for Kubernetes
name: burrow
version: 0.1.7
version: 0.1.8
icon: https://media.licdn.com/dms/image/C4D0BAQEj-Fx1qtIAKQ/company-logo_200_200/0?e=2159024400&v=beta&t=90Cva_S5-k44uPf_P11ZdHQ6WnUCjuSrTGQshbTvWVo
6 changes: 6 additions & 0 deletions charts/burrow/templates/burrow-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,13 @@ spec:
annotations:
checksum/config: {{ include (print $.Template.BasePath "/burrow-configmap.yaml") . | sha256sum }}
checksum/templates: {{ include (print $.Template.BasePath "/burrow-templates-configmap.yaml") . | sha256sum }}
{{- with .Values.burrow.podAnnotations }}
{{- toYaml . | nindent 10 }}
{{- end }}
labels:
{{- with .Values.burrow.podLabels }}
{{- toYaml . | nindent 10 }}
{{- end }}
app.kubernetes.io/name: {{ include "burrow.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
spec:
Expand Down
2 changes: 2 additions & 0 deletions charts/burrow/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ fullnameOverride: ""
burrow:
labels: {}
annotations: {}
podLabels: {}
podAnnotations: {}

## Secret containing configuration environment variables
## For example enviroment variable: BURROW_ZOOKEEPER_SERVERS - will set Zookeeper servers for Burrow
Expand Down

0 comments on commit c2d7c72

Please sign in to comment.