Skip to content

Commit

Permalink
Only set bootstrapProvisioningIP when openshift version is less than 4.7
Browse files Browse the repository at this point in the history
  • Loading branch information
asalkeld committed Nov 19, 2020
1 parent b4a3cf9 commit 37ed8b0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ocp_install_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,13 @@ function baremetal_network_configuration() {
cat <<EOF
provisioningNetwork: "${PROVISIONING_NETWORK_PROFILE}"
provisioningHostIP: "${CLUSTER_PROVISIONING_IP}"
EOF
version=$(openshift_version | sed "s/\.//")
if [[ $version < 47 ]]; then
cat <<EOF
bootstrapProvisioningIP: "${BOOTSTRAP_PROVISIONING_IP}"
EOF
fi
else
cat <<EOF
provisioningBridge: ${PROVISIONING_NETWORK_NAME}
Expand Down

0 comments on commit 37ed8b0

Please sign in to comment.