Skip to content

Commit

Permalink
Let "depoly-setup.sh" and "undeploy.sh" fail on error
Browse files Browse the repository at this point in the history
Ignoring errors seems not best. It can make it harder to find problems
with the script.

If a command in the script is known to fail for valid reasons, then that
should be treated specially (for example, with `|| :`). By default,
treat any unexpected failure as fatal and propagate the failure to the
caller.

Fixes: 8844150 ('Add RBAC for cluster resource')
  • Loading branch information
thom311 committed Apr 19, 2024
1 parent 1c54e87 commit fea72a9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion hack/deploy-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# to deploy. It assumes it is capable of login as a
# user who has the cluster-admin role

# set -euxo pipefail
set -eo pipefail

source "$(dirname $0)/common"

Expand Down
3 changes: 2 additions & 1 deletion hack/undeploy.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/bash
#set -euxo pipefail

set -eo pipefail

source "$(dirname $0)/common"

Expand Down

0 comments on commit fea72a9

Please sign in to comment.