Skip to content

Commit df497f1

Browse files
authored
Helm chart: Add podAnnotations, fix podLabels (#217)
* Add podAnnotations to chart values, fix podLabels Signed-off-by: tania-pets <[email protected]> * Change chart version Signed-off-by: tania-pets <[email protected]> --------- Signed-off-by: tania-pets <[email protected]>
1 parent 03cc569 commit df497f1

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

charts/github-exporter/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: v1
22
description: GitHub exporter
33
name: github-exporter
4-
version: 0.2.0
4+
version: 0.2.1
55
appVersion: 0.7.1
66
home: https://github.com/cpanato/github_actions_exporter
77
maintainers:

charts/github-exporter/templates/deployment.yaml

+6-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,12 @@ spec:
2323
app.kubernetes.io/name: {{ include "github-exporter.name" . }}
2424
app.kubernetes.io/instance: {{ .Release.Name }}
2525
helm.sh/chart: {{ include "github-exporter.chart" . }}
26-
{{- if .Values.podLabels -}}
27-
{{ .Values.podLabels | toYaml | nindent 8 -}}
26+
{{- if .Values.deployment.podLabels -}}
27+
{{ .Values.deployment.podLabels | toYaml | nindent 8 -}}
28+
{{- end }}
29+
annotations:
30+
{{- with .Values.deployment.podAnnotations }}
31+
{{- toYaml . | nindent 8 }}
2832
{{- end }}
2933
spec:
3034
containers:

charts/github-exporter/values.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ deployment:
2424
pullPolicy: IfNotPresent
2525

2626
podLabels: {}
27+
podAnnotations: {}
2728

2829
resources: {}
2930
# We usually recommend not to specify default resources and to leave this as a conscious

0 commit comments

Comments
 (0)