diff --git a/helm/keycloak/transition-scripts/set-patroni-dr-active.sh b/helm/keycloak/transition-scripts/set-patroni-dr-active.sh index 9cbe3f5c..0ce4a0d9 100755 --- a/helm/keycloak/transition-scripts/set-patroni-dr-active.sh +++ b/helm/keycloak/transition-scripts/set-patroni-dr-active.sh @@ -11,6 +11,6 @@ if ! check_kube_context "api-golddr-devops-gov-bc-ca"; then exit 1 fi -OUTPUT=$(oc rsh -n ${NAMESPACE} sso-patroni-0 curl -s -o /dev/null -w "%{http_code}" -XPATCH -d '{"standby_cluster":null}' http://localhost:8008/config) +OUTPUT=$(kubectl -n ${NAMESPACE} exec sso-patroni-0 -- curl -s -o /dev/null -w "%{http_code}" -XPATCH -d '{"standby_cluster":null}' http://localhost:8008/config) echo "::set-output name=patroniconfig::${OUTPUT}"