|
6 | 6 | set -e |
7 | 7 | trap 'echo "Demo ran into error"; trap - SIGTERM && kill -- -$$; exit 1' ERR SIGINT SIGTERM EXIT |
8 | 8 |
|
9 | | -# install experimental CRDs with config field support |
10 | | -kubectl apply -f "$(dirname "${BASH_SOURCE[0]}")/../../manifests/experimental.yaml" |
| 9 | +# install standard CRDs |
| 10 | +echo "Install standard CRDs..." |
| 11 | +kubectl apply -f "$(dirname "${BASH_SOURCE[0]}")/../../manifests/standard.yaml" |
11 | 12 |
|
12 | | -# wait for experimental CRDs to be available |
| 13 | +# wait for standard CRDs to be available |
13 | 14 | kubectl wait --for condition=established --timeout=60s crd/clusterextensions.olm.operatorframework.io |
14 | 15 |
|
15 | | -# enable 'SingleOwnNamespaceInstallSupport' feature gate |
16 | | -kubectl patch deployment -n olmv1-system operator-controller-controller-manager --type='json' -p='[{"op": "add", "path": "/spec/template/spec/containers/0/args/-", "value": "--feature-gates=SingleOwnNamespaceInstallSupport=true"}]' |
17 | | - |
18 | | -# wait for operator-controller to become available |
| 16 | +# Ensure controller is healthy |
19 | 17 | kubectl rollout status -n olmv1-system deployment/operator-controller-controller-manager |
20 | 18 |
|
21 | 19 | # create install namespace |
@@ -60,17 +58,6 @@ kubectl delete clusterextension argocd-operator --ignore-not-found=true |
60 | 58 | kubectl delete namespace argocd-system argocd --ignore-not-found=true |
61 | 59 | kubectl delete clusterrolebinding argocd-installer-crb --ignore-not-found=true |
62 | 60 |
|
63 | | -# remove feature gate from deployment |
64 | | -echo "Removing feature gate from operator-controller..." |
65 | | -kubectl patch deployment -n olmv1-system operator-controller-controller-manager --type='json' -p='[{"op": "remove", "path": "/spec/template/spec/containers/0/args", "value": "--feature-gates=SingleOwnNamespaceInstallSupport=true"}]' || true |
66 | | - |
67 | | -# restore standard CRDs |
68 | | -echo "Restoring standard CRDs..." |
69 | | -kubectl apply -f "$(dirname "${BASH_SOURCE[0]}")/../../manifests/base.yaml" |
70 | | - |
71 | | -# wait for standard CRDs to be available |
72 | | -kubectl wait --for condition=established --timeout=60s crd/clusterextensions.olm.operatorframework.io |
73 | | - |
74 | 61 | # wait for operator-controller to become available with standard config |
75 | 62 | kubectl rollout status -n olmv1-system deployment/operator-controller-controller-manager |
76 | 63 |
|
|
0 commit comments