File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -15,21 +15,25 @@ release=$1
15
15
url=https://github.com/operator-framework/operator-lifecycle-manager/releases/download/${release}
16
16
namespace=olm
17
17
18
- kubectl apply -f ${url} /crds.yaml
19
- kubectl apply -f ${url} /olm.yaml
18
+ kubectl apply -f " ${url} /crds.yaml"
19
+ kubectl wait --for=condition=Established -f " ${url} /crds.yaml"
20
+ kubectl apply -f " ${url} /olm.yaml"
20
21
21
22
# wait for deployments to be ready
22
23
kubectl rollout status -w deployment/olm-operator --namespace=" ${namespace} "
23
24
kubectl rollout status -w deployment/catalog-operator --namespace=" ${namespace} "
24
25
25
- retries=50
26
- until [[ $retries == 0 || $new_csv_phase == " Succeeded " ]]; do
26
+ retries=30
27
+ until [[ $retries == 0 ]]; do
27
28
new_csv_phase=$( kubectl get csv -n " ${namespace} " packageserver -o jsonpath=' {.status.phase}' 2> /dev/null || echo " Waiting for CSV to appear" )
28
29
if [[ $new_csv_phase != " $csv_phase " ]]; then
29
30
csv_phase=$new_csv_phase
30
31
echo " Package server phase: $csv_phase "
31
32
fi
32
- sleep 1
33
+ if [[ " $new_csv_phase " == " Succeeded" ]]; then
34
+ break
35
+ fi
36
+ sleep 10
33
37
retries=$(( retries - 1 ))
34
38
done
35
39
You can’t perform that action at this time.
0 commit comments