Skip to content

Commit

Permalink
Helm chart: Add podAnnotations, fix podLabels (#217)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
tania-pets authored Oct 8, 2024
1 parent 03cc569 commit df497f1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/github-exporter/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
description: GitHub exporter
name: github-exporter
version: 0.2.0
version: 0.2.1
appVersion: 0.7.1
home: https://github.com/cpanato/github_actions_exporter
maintainers:
Expand Down
8 changes: 6 additions & 2 deletions charts/github-exporter/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,12 @@ spec:
app.kubernetes.io/name: {{ include "github-exporter.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
helm.sh/chart: {{ include "github-exporter.chart" . }}
{{- if .Values.podLabels -}}
{{ .Values.podLabels | toYaml | nindent 8 -}}
{{- if .Values.deployment.podLabels -}}
{{ .Values.deployment.podLabels | toYaml | nindent 8 -}}
{{- end }}
annotations:
{{- with .Values.deployment.podAnnotations }}
{{- toYaml . | nindent 8 }}
{{- end }}
spec:
containers:
Expand Down
1 change: 1 addition & 0 deletions charts/github-exporter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ deployment:
pullPolicy: IfNotPresent

podLabels: {}
podAnnotations: {}

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

0 comments on commit df497f1

Please sign in to comment.