소스 검색

add imagepullsecret support to chart

Josephine Pfeiffer 1 년 전
부모
커밋
e875b8afe6
2개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      charts/openshift-console-plugin/templates/deployment.yaml
  2. 1 0
      charts/openshift-console-plugin/values.yaml

+ 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: