Skip to content

Commit

Permalink
fixed upgrade_operator not deleting opreq label (#1615)
Browse files Browse the repository at this point in the history
Signed-off-by: Henry H Li <[email protected]>
  • Loading branch information
bitscuit authored Nov 10, 2023
1 parent 4cdfea7 commit 4be9cf8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cp3pt0-deployment/common/utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 4be9cf8

Please sign in to comment.