Skip to content

Commit

Permalink
feat: dr
Browse files Browse the repository at this point in the history
Change rsh to exec, requires fewer permissions
  • Loading branch information
thegentlemanphysicist committed Jun 15, 2022
1 parent ffeb107 commit fedd63c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helm/keycloak/transition-scripts/set-patroni-dr-active.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"

0 comments on commit fedd63c

Please sign in to comment.