File tree Expand file tree Collapse file tree 3 files changed +23
-8
lines changed Expand file tree Collapse file tree 3 files changed +23
-8
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ if [ -z "${METAL3_DEV_ENV}" ]; then
1919 # TODO -- come up with a plan for continuously updating this
2020 # Note we only do this in the case where METAL3_DEV_ENV is
2121 # unset, to enable developer testing of local checkouts
22- git reset 01530d036cce1ff0b4675768777af7a6c6de7487 --hard
22+ git reset cb83ca7ae9cfabe827d7a784b28e537e098070ae --hard
2323
2424 popd
2525fi
Original file line number Diff line number Diff line change @@ -361,6 +361,8 @@ function generate_ocp_install_config() {
361361 NETWORK_TYPE=OVNKubernetes
362362 fi
363363
364+ OCP_VERSION=$( openshift_version $OCP_DIR )
365+
364366 cat > " ${outdir} /install-config.yaml" << EOF
365367apiVersion: v1
366368baseDomain: ${BASE_DOMAIN}
409411$( node_map_to_install_config_hosts $NUM_WORKERS $(( NUM_MASTERS + NUM_ARBITERS )) worker)
410412$( node_map_to_install_config_hosts $NUM_ARBITERS $NUM_MASTERS arbiter)
411413$( node_map_to_install_config_hosts $NUM_MASTERS 0 master)
414+ EOF
415+ fi
416+
417+ if ! is_lower_version " $( openshift_version $OCP_DIR ) " " 4.21" ; then
418+ cat >> " ${outdir} /install-config.yaml" << EOF
419+ bmcVerifyCA: |
420+ $( sudo sed ' s/^/ /' " ${WORKING_DIR} /virtualbmc/sushy-tools/cert.pem" )
412421EOF
413422 fi
414423
@@ -455,8 +464,12 @@ function generate_ocp_host_manifest() {
455464
456465 encoded_username=$( echo -n " $username " | base64)
457466 encoded_password=$( echo -n " $password " | base64)
458- # Heads up, "verify_ca" in ironic driver config, and "disableCertificateVerification" in BMH have opposite meaning
459- disableCertificateVerification=$( [ " $verify_ca " = " False" ] && echo " true" || echo " false" )
467+ if is_lower_version " $( openshift_version $OCP_DIR ) " " 4.21" ; then
468+ # Heads up, "verify_ca" in ironic driver config, and "disableCertificateVerification" in BMH have opposite meaning
469+ disableCertificateVerification=$( [ " $verify_ca " = " False" ] && echo " true" || echo " false" )
470+ else
471+ disableCertificateVerification=false
472+ fi
460473
461474 secret=" ---
462475apiVersion: v1
Original file line number Diff line number Diff line change @@ -268,13 +268,15 @@ function node_map_to_install_config_hosts() {
268268EOF
269269
270270 if [[ " $driver_prefix " == " redfish" ]]; then
271- # Set disableCertificateVerification
272- # Heads up, "verify ca" in ironic driver config, and "disableCertificateVerification" in BMH have opposite meaning
273- verify_ca=$( node_val ${idx} " driver_info.redfish_verify_ca" )
274- disable_certificate_verification=$( [ " $verify_ca " = " False" ] && echo " true" || echo " false" )
275- cat << EOF
271+ # Set disableCertificateVerification on older versions
272+ if is_lower_version " $( openshift_version $OCP_DIR ) " " 4.21" ; then
273+ # Heads up, "verify ca" in ironic driver config, and "disableCertificateVerification" in BMH have opposite meaning
274+ verify_ca=$( node_val ${idx} " driver_info.redfish_verify_ca" )
275+ disable_certificate_verification=$( [ " $verify_ca " = " False" ] && echo " true" || echo " false" )
276+ cat << EOF
276277 disableCertificateVerification: ${disable_certificate_verification}
277278EOF
279+ fi
278280 fi
279281
280282
You can’t perform that action at this time.
0 commit comments