Skip to content

Commit

Permalink
[kube-state-metrics] skip imagePullSecrets when no override provided (#…
Browse files Browse the repository at this point in the history
…4060)

[kube-state-metrics] skip imagePullSecrets when no override provided

Signed-off-by: cmontemuino <[email protected]>
  • Loading branch information
cmontemuino authored Dec 30, 2023
1 parent 148f2f1 commit 7b83b45
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/kube-state-metrics/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ keywords:
- prometheus
- kubernetes
type: application
version: 5.15.2
version: 5.15.3
appVersion: 2.10.1
home: https://github.com/kubernetes/kube-state-metrics/
sources:
Expand Down
2 changes: 2 additions & 0 deletions charts/kube-state-metrics/templates/serviceaccount.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ metadata:
annotations:
{{ toYaml .Values.serviceAccount.annotations | indent 4 }}
{{- end }}
{{- if or .Values.serviceAccount.imagePullSecrets .Values.global.imagePullSecrets }}
imagePullSecrets:
{{- include "kube-state-metrics.imagePullSecrets" (dict "Values" .Values "imagePullSecrets" .Values.serviceAccount.imagePullSecrets) | indent 2 }}
{{- end }}
{{- end -}}

0 comments on commit 7b83b45

Please sign in to comment.