From 4be9cf822d2d640e87590a1c7f969eb34b7a11f3 Mon Sep 17 00:00:00 2001 From: Henry Li Date: Fri, 10 Nov 2023 13:13:58 -0500 Subject: [PATCH] fixed upgrade_operator not deleting opreq label (#1615) Signed-off-by: Henry H Li --- cp3pt0-deployment/common/utils.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cp3pt0-deployment/common/utils.sh b/cp3pt0-deployment/common/utils.sh index 582554cff..797c44651 100644 --- a/cp3pt0-deployment/common/utils.sh +++ b/cp3pt0-deployment/common/utils.sh @@ -1188,7 +1188,7 @@ function update_operator() { # Retrieve the latest version of the subscription ${OC} get subscription.operators.coreos.com ${sub_name} -n ${ns} -o yaml > sub.yaml - if [ -z "$remove_opreq_label" ]; then + if [ ! -z "$remove_opreq_label" ]; then ${YQ} eval 'del(.metadata.labels["operator.ibm.com/opreq-control"])' sub.yaml fi