Explorar el Código

Merge pull request #1642 from wshearn/fix_serviceaccounts

Add namespace flag to oc create
Brenton Leanhardt hace 9 años
padre
commit
2f6fc58b92
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      roles/openshift_serviceaccounts/tasks/main.yml

+ 2 - 1
roles/openshift_serviceaccounts/tasks/main.yml

@@ -9,7 +9,8 @@
 - name: create the service account
   shell: >
        echo {{ lookup('template', '../templates/serviceaccount.j2')
-               | from_yaml | to_json | quote }} | {{ openshift.common.client_binary }}  create -f -
+       | from_yaml | to_json | quote }} | {{ openshift.common.client_binary }}
+       -n {{ openshift_serviceaccounts_namespace }} create -f -
   when: item.1.rc != 0
   with_together:
   - openshift_serviceaccounts_names