Fix namespace on flux-pause

Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
This commit is contained in:
Marcus Noble 2023-06-08 10:29:45 +01:00
parent 80ee8996de
commit 4b3373f76f
Signed by: AverageMarcus
GPG Key ID: B8F2DB8A7AEBAF78

View File

@ -50,9 +50,9 @@ do
printf "Pausing '${RESOURCE}'..." printf "Pausing '${RESOURCE}'..."
if [[ "${VERBOSE}" == "true" ]]; then if [[ "${VERBOSE}" == "true" ]]; then
echo "" echo ""
flux suspend kustomization ${RESOURCE} || true flux suspend kustomization ${NAMESPACES} ${RESOURCE} || true
else else
flux suspend kustomization ${RESOURCE} &> /dev/null || true flux suspend kustomization ${NAMESPACES} ${RESOURCE} &> /dev/null || true
printf " ✅" printf " ✅"
fi fi
echo "" echo ""