Skip to content

Commit

Permalink
hack: allow pp-cm-helper.sh to restart DS
Browse files Browse the repository at this point in the history
  • Loading branch information
snir911 committed Sep 24, 2024
1 parent f720685 commit 2dc4267
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion hack/pp-cm-helper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,12 @@ function applyCM() {
echo "Waiting for ConfigMap to be created..."
sleep 1
done
echo && echo "###### Done"
${CLI} get cm peer-pods-cm -n openshift-sandboxed-containers-operator -o jsonpath='{.data}' | jq
if ${CLI} get ds/peerpodconfig-ctrl-caa-daemon -n openshift-sandboxed-containers-operator > /dev/null 2>&1; then
[[ -n $YES ]] || (read -r -p "Restart DeamonSet so that CM will be taken into account? [y/N] " && [[ "$REPLY" =~ ^[Yy]$ ]]) || exit 0
${CLI} set env ds/peerpodconfig-ctrl-caa-daemon -n openshift-sandboxed-containers-operator REBOOT="$(date)"
fi
echo && echo "###### Done"
}

function initialization() {
Expand Down

0 comments on commit 2dc4267

Please sign in to comment.