Browse Source

Merge pull request #10091 from sdodson/unique-secrets

Hash the registry hostname to generate unique secret names
OpenShift Merge Robot 6 years ago
parent
commit
48e291a9cc
1 changed files with 1 additions and 1 deletions
  1. 1 1
      roles/openshift_examples/tasks/main.yml

+ 1 - 1
roles/openshift_examples/tasks/main.yml

@@ -64,7 +64,7 @@
 
 - name: Create imagestream import secrets for any additional registries
   command: >
-      {{ openshift_client_binary }} create secret docker-registry imagestreamsecret
+      {{ openshift_client_binary }} create secret docker-registry o-a-{{ item.host | hash('md5') }}
       --docker-server={{ item.host }} --docker-username={{ item.user }}
       --docker-email=openshift@openshift.com --docker-password={{ item.password }}
       --config={{ openshift.common.config_base }}/master/admin.kubeconfig -n openshift