From 16ceae0b59f1f0344f5740deaf6818b5720ecedd Mon Sep 17 00:00:00 2001 From: Jonathan Sharman Date: Wed, 15 Jun 2022 10:31:17 -0700 Subject: [PATCH] feat: dr Change rsh to exec, requires fewer permissions --- helm/keycloak/transition-scripts/set-patroni-dr-active.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}"