Skip to content

Commit 6e0feb3

Browse files
committed
Add imagePullSecrets support to helm chart
1 parent 56b6b6b commit 6e0feb3

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

charts/sensor-metrics-analyzer/templates/deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ spec:
1616
app.kubernetes.io/name: {{ include "sensor-metrics-analyzer.name" . }}
1717
app.kubernetes.io/instance: {{ .Release.Name }}
1818
spec:
19+
{{- with .Values.imagePullSecrets }}
20+
imagePullSecrets:
21+
{{- toYaml . | nindent 8 }}
22+
{{- end }}
1923
containers:
2024
- name: app
2125
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"

charts/sensor-metrics-analyzer/values.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ image:
55
tag: "0.0.5"
66
pullPolicy: IfNotPresent
77

8+
# Optional image pull secrets for private registries.
9+
# The referenced Secret(s) must already exist in the release namespace.
10+
imagePullSecrets:
11+
- name: quay-secret
12+
813
service:
914
type: ClusterIP
1015
port: 80

0 commit comments

Comments
 (0)