Skip to content

Commit

Permalink
add support for imagePullSecrets
Browse files Browse the repository at this point in the history
  • Loading branch information
Moglum committed Feb 7, 2025
1 parent df7b5a0 commit 93cf3be
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion charts/azure-metrics-exporter/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: azure-metrics-exporter
type: application
description: A Helm chart for azure-metrics-exporter
home: https://github.com/webdevops/azure-metrics-exporter
version: 1.2.8
version: 1.2.9
# renovate: image=webdevops/azure-metrics-exporter
appVersion: 24.9.1
keywords:
Expand Down
4 changes: 4 additions & 0 deletions charts/azure-metrics-exporter/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,3 +92,7 @@ spec:
{{- with .Values.tolerations }}
tolerations: {{ toYaml . | nindent 8 }}
{{- end }}

{{- if .Values.imagePullSecrets }}
imagePullSecrets: {{ toYaml .Values.imagePullSecrets | nindent 8 }}
{{- end }}
4 changes: 0 additions & 4 deletions charts/azure-metrics-exporter/templates/serviceaccount.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,4 @@ metadata:
{{- if .Values.serviceAccount.annotations }}
annotations: {{ toYaml .Values.serviceAccount.annotations | nindent 4 }}
{{- end }}
{{- if .Values.global.imagePullSecrets }}
imagePullSecrets:
{{ include "azure-metrics-exporter.imagePullSecrets" . | trim | indent 2 }}
{{- end }}
{{- end }}
4 changes: 1 addition & 3 deletions charts/azure-metrics-exporter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ containerSecurityContext:

# -- registry secret names as an array
imagePullSecrets: []
# - name: pull-secret-name

service:
type: ClusterIP
Expand Down Expand Up @@ -279,6 +280,3 @@ verticalPodAutoscaler:
# Specifies whether recommended updates are applied when a Pod is started and whether recommended updates
# are applied during the life of a Pod. Possible values are "Off", "Initial", "Recreate", and "Auto".
updateMode: Auto

global:
imagePullSecrets: []

0 comments on commit 93cf3be

Please sign in to comment.