Skip to content

Use set -euxo pipefail in 03, 05, and 06 scripts#1888

Open
elfosardo wants to merge 1 commit intoopenshift-metal3:masterfrom
elfosardo:euxo-pipefail-them-all
Open

Use set -euxo pipefail in 03, 05, and 06 scripts#1888
elfosardo wants to merge 1 commit intoopenshift-metal3:masterfrom
elfosardo:euxo-pipefail-them-all

Conversation

@elfosardo
Copy link
Copy Markdown
Member

Replace separate set -x / set -e with set -euxo pipefail in 03_build_installer.sh, 05_create_install_config.sh, and 06_create_cluster.sh for consistency with the other main scripts.

Guard environment variables not set by common.sh with :- defaults in 06_create_cluster.sh to avoid nounset errors.

@openshift-ci openshift-ci Bot requested review from dtantsur and mkowalski April 28, 2026 07:25
@openshift-ci
Copy link
Copy Markdown

openshift-ci Bot commented Apr 28, 2026

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign zaneb for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Replace separate set -x / set -e with set -euxo pipefail in
03_build_installer.sh, 05_create_install_config.sh, and
06_create_cluster.sh for consistency with the other main scripts.

Guard optional environment variables with :- defaults in
06_create_cluster.sh, utils.sh, and ocp_install_env.sh to avoid
nounset errors for variables not set by common.sh.
@elfosardo elfosardo force-pushed the euxo-pipefail-them-all branch from 7b2a531 to 5a64d89 Compare April 28, 2026 09:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant