Skip to content

Commit 08d3b8b

Browse files
authored
🌱 Do not update dev deployment, when capi-operator is running. (#1714)
1 parent bd6d67a commit 08d3b8b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

hack/update-operator-dev-deployment.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,14 @@ tag="$(echo -n "$tag" | tr -c 'a-zA-Z0-9_.-' '-')"
8383

8484
image="$image_path/caph-staging:$tag"
8585

86+
# Fail if cluster-api-operator is running
87+
if kubectl get pods -A | grep -q cluster-api-operator; then
88+
echo "Error: cluster-api-operator is running!"
89+
echo "Changes to caph deployment and its CRDs would be reverted."
90+
echo "Hint: Scale down replicas of the cluster-api-operator deployment."
91+
exit 1
92+
fi
93+
8694
# run in background
8795
{
8896
make generate-manifests

0 commit comments

Comments
 (0)