Browse Source

registry: look for the oc executable in /usr/local/bin and ~/bin

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Giuseppe Scrivano 7 years ago
parent
commit
50cb68ca28
1 changed files with 2 additions and 2 deletions
  1. 2 2
      roles/openshift_hosted/tasks/registry/registry.yml

+ 2 - 2
roles/openshift_hosted/tasks/registry/registry.yml

@@ -135,7 +135,7 @@
 
 - name: Determine the latest version of the OpenShift registry deployment
   command: |
-    oc get deploymentconfig {{ openshift_hosted_registry_name }} \
+    {{ openshift.common.client_binary }} get deploymentconfig {{ openshift_hosted_registry_name }} \
            --namespace {{ openshift_hosted_registry_namespace }} \
            --config {{ openshift.common.config_base }}/master/admin.kubeconfig \
            -o jsonpath='{ .status.latestVersion }'
@@ -143,7 +143,7 @@
 
 - name: Sanity-check that the OpenShift registry rolled out correctly
   command: |
-    oc get replicationcontroller {{ openshift_hosted_registry_name }}-{{ openshift_hosted_registry_latest_version.stdout }} \
+    {{ openshift.common.client_binary }} get replicationcontroller {{ openshift_hosted_registry_name }}-{{ openshift_hosted_registry_latest_version.stdout }} \
            --namespace {{ openshift_hosted_registry_namespace }} \
            --config {{ openshift.common.config_base }}/master/admin.kubeconfig \
            -o jsonpath='{ .metadata.annotations.openshift\.io/deployment\.phase }'