Skip to content

Commit

Permalink
Only set bootstrapProvisioningIP when openshift version is <= 4.6 (#1156
Browse files Browse the repository at this point in the history
)
  • Loading branch information
asalkeld authored Dec 3, 2020
1 parent 729965c commit 482cde6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ocp_install_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,12 @@ function baremetal_network_configuration() {
cat <<EOF
provisioningNetwork: "${PROVISIONING_NETWORK_PROFILE}"
provisioningHostIP: "${CLUSTER_PROVISIONING_IP}"
EOF
if printf '%s\n4.6\n' "$(openshift_version)" | sort -V -C; then
cat <<EOF
bootstrapProvisioningIP: "${BOOTSTRAP_PROVISIONING_IP}"
EOF
fi
else
cat <<EOF
provisioningBridge: ${PROVISIONING_NETWORK_NAME}
Expand Down

0 comments on commit 482cde6

Please sign in to comment.