44#
55trap ' trap - SIGTERM && kill -- -"$$"' SIGINT SIGTERM EXIT
66
7- # # until we cut a release containing the new API, we need to deploy local artifacts
8- make kind-clean
9- make run
10- #
11- # # use the install script from the latest github release
12- # curl -L -s https://github.com/operator-framework/operator-controller/releases/latest/download/ install.sh | bash
13- #
7+ kind delete cluster
8+ kind create cluster
9+ kubectl cluster-info --context kind-kind
10+ sleep 10
11+
12+ # use the install script from the latest github release
13+ curl -L -s https://github.com/operator-framework/operator-controller/releases/latest/download/install.sh | bash
1414
1515# inspect crds (clustercatalog)
1616kubectl get crds -A
@@ -24,19 +24,19 @@ kubectl patch -n olmv1-system deploy/catalogd-controller-manager --type='json' -
2424
2525# ... waiting for new deployment for catalogd controller to become available
2626kubectl rollout status -n olmv1-system deploy/catalogd-controller-manager
27+ kubectl wait --for=condition=Available -n olmv1-system deploy/catalogd-controller-manager --timeout=1m
2728# ... checking clustercatalog is serving
2829kubectl wait --for=condition=Serving clustercatalog/operatorhubio --timeout=60s
2930# ... checking clustercatalog is finished unpacking (progressing gone back to true)
3031kubectl wait --for=condition=Progressing=True clustercatalog/operatorhubio --timeout=60s
3132
32- sleep 30
3333
3434# port forward the catalogd-service service to interact with the HTTP server serving catalog contents
3535(kubectl -n olmv1-system port-forward svc/catalogd-service 8081:443)&
3636
3737
3838# check what 'packages' are available in this catalog
39- curl -f -k ' https://localhost:8081/catalogs/operatorhubio/api/v1/metas?schema=olm.package' | jq -s ' .[] | .name'
39+ curl -f --retry-all-errors --retry 10 - k ' https://localhost:8081/catalogs/operatorhubio/api/v1/metas?schema=olm.package' | jq -s ' .[] | .name'
4040# check what channels are included in the wavefront package
4141curl -f -k ' https://localhost:8081/catalogs/operatorhubio/api/v1/metas?schema=olm.channel&package=wavefront' | jq -s ' .[] |.name'
4242# check what bundles are included in the wavefront package
0 commit comments