Procházet zdrojové kódy

Merge pull request #87 from pfeifferj/gh-86-add-imagepullsecret-to-chart

NO-JIRA: add imagepullsecret support to chart
openshift-merge-bot[bot] před 1 rokem
rodič
revize
bc6a745111

+ 4 - 0
charts/openshift-console-plugin/templates/deployment.yaml

@@ -16,6 +16,10 @@ spec:
       labels:
             {{- include "openshift-console-plugin.labels" . | nindent 8 }}
     spec:
+      {{- with .Values.plugin.imagePullSecrets }}
+      imagePullSecrets:
+        {{- toYaml . | nindent 8 }}
+      {{- end }}
       containers:
         - name: {{ template "openshift-console-plugin.name" . }}
           image: {{ required "Plugin image must be specified!" .Values.plugin.image }}

+ 1 - 0
charts/openshift-console-plugin/values.yaml

@@ -4,6 +4,7 @@ plugin:
   description: ""
   image: ""
   imagePullPolicy: IfNotPresent
+  imagePullSecrets: []
   replicas: 2
   port: 9443
   securityContext: