Skip to content

Commit

Permalink
Fix hypershift conditionals (#503)
Browse files Browse the repository at this point in the history
* Fix hypershift conditionals

Signed-off-by: Raul Sevilla <rsevilla@redhat.com>

* Fix typo

Signed-off-by: Raul Sevilla <rsevilla@redhat.com>

Signed-off-by: Raul Sevilla <rsevilla@redhat.com>
  • Loading branch information
rsevilla87 authored Oct 27, 2022
1 parent 5459ed7 commit b874d25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions workloads/router-perf-v2/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit b874d25

Please sign in to comment.