diff --git a/workloads/router-perf-v2/common.sh b/workloads/router-perf-v2/common.sh index b555c1c4..ab5bc767 100644 --- a/workloads/router-perf-v2/common.sh +++ b/workloads/router-perf-v2/common.sh @@ -58,7 +58,7 @@ deploy_infra(){ } con***REMOVED***gure_ingress_images() { - if [[ ${HYPERSHIFT} ]]; then + if ${HYPERSHIFT}; then export KUBECONFIG=${HYPERSHIFT_MANAGEMENT_KUBECONFIG} NAMESPACE="clusters-${CLUSTER_NAME}" if [[ "$(oc get -n clusters hostedclusters/${CLUSTER_NAME} -o jsonpath='{.spec.infrastructureAvailabilityPolicy}')" == "SingleReplica" ]]; then @@ -71,7 +71,7 @@ con***REMOVED***gure_ingress_images() { oc scale --replicas=0 -n ${NAMESPACE} deploy/cluster-version-operator # Scale the ingress-operator if you are changing any images (it needs to reconcile inorder to propagate new image) - if [[ !${HYPERSHIFT} ]]; then + if [[ ${HYPERSHIFT} == false ]]; then NAMESPACE="openshift-ingress-operator" ***REMOVED*** if [[ ! -z "${INGRESS_OPERATOR_IMAGE}" ]] || [[ ! -z "${HAPROXY_IMAGE}" ]]; then