Skip to content

Commit

Permalink
increase waiting time for operator upgrade and installation (#2064)
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Fan <[email protected]>
  • Loading branch information
Daniel-Fan authored Jun 28, 2024
1 parent 4efefef commit 070c1fb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cp3pt0-deployment/common/utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ function wait_for_csv() {
local namespace=$1
local package_name=$2
local condition="${OC} get subscription.operators.coreos.com -l operators.coreos.com/${package_name}.${namespace}='' -n ${namespace} -o yaml -o jsonpath='{.items[*].status.installedCSV}'"
local retries=60
local retries=180
local sleep_time=10
local total_time_mins=$(( sleep_time * retries / 60))
local wait_message="Waiting for operator ${package_name} CSV in namespace ${namespace} to be bound to Subscription"
Expand Down Expand Up @@ -483,8 +483,8 @@ function wait_for_operator_upgrade() {
local install_mode=$4
local condition="${OC} get subscription.operators.coreos.com -l operators.coreos.com/${package_name}.${namespace}='' -n ${namespace} -o yaml -o jsonpath='{.items[*].status.installedCSV}' | grep -w $channel"

local retries=20
local sleep_time=30
local retries=120
local sleep_time=20
local total_time_mins=$(( sleep_time * retries / 60))
local wait_message="Waiting for operator ${package_name} to be upgraded"
local success_message="Operator ${package_name} is upgraded to latest version in channel ${channel}"
Expand Down

0 comments on commit 070c1fb

Please sign in to comment.