瀏覽代碼

Merge pull request #10477 from mgleung/add-calico-pull-secret

Add pull secret to the Calico controllers
Scott Dodson 6 年之前
父節點
當前提交
832d4a4d5a
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      roles/calico/templates/calicov3.yml.j2

+ 4 - 0
roles/calico/templates/calicov3.yml.j2

@@ -472,6 +472,10 @@ spec:
       labels:
         k8s-app: calico-kube-controllers
     spec:
+{% if calico_image_credentials is defined %}
+      imagePullSecrets:
+        - name: calico-pull-secret
+{% endif %}
       # The controllers must run in the host network namespace so that
       # it isn't governed by policy that would prevent it from working.
       hostNetwork: true