Skip to content

Commit 37f8129

Browse files
authored
demo was not updated to work with the cert-manager changes made earlier. (#439)
In addition, there are some new waits introduced to give some more signal around some (very) intermittent install failures from the install script. This script now completely eschews installation via locally-defined resources and relies entirely on the latest release's scripts/manifests to install on the local cluster, so that we have fewer scripts to maintain. Signed-off-by: Jordan Keister <[email protected]>
1 parent 480cfeb commit 37f8129

File tree

2 files changed

+23
-18
lines changed

2 files changed

+23
-18
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Catalogd is a Kubernetes extension that unpacks [file-based catalog (FBC)](https
55
Catalogd helps customers discover installable content by hosting catalog metadata for Kubernetes extensions, such as Operators and controllers. For more information on the Operator Lifecycle Manager (OLM) v1 suite of microservices, see the [documentation](https://github.com/operator-framework/operator-controller/tree/main/docs) for the Operator Controller.
66

77
## Quickstart DEMO
8-
[![asciicast](https://asciinema.org/a/624043.svg)](https://asciinema.org/a/624043)
8+
[![asciicast](https://asciinema.org/a/682344.svg)](https://asciinema.org/a/682344)
99

1010
## Quickstart Steps
1111
Procedure steps marked with an asterisk (`*`) are likely to change with future API updates.

hack/scripts/demo-script.sh

Lines changed: 22 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,39 @@
11
#!/usr/bin/env bash
22

3-
trap "trap - SIGTERM && kill -- -$$" SIGINT SIGTERM EXIT
3+
#
44
# Welcome to the catalogd demo
5+
#
6+
trap "trap - SIGTERM && kill -- -$$" SIGINT SIGTERM EXIT
7+
8+
59
kind delete cluster
610
kind create cluster
711
kubectl cluster-info --context kind-kind
812
sleep 10
9-
# install catalogd on the cluster
10-
# could also `make install` in repo
11-
kubectl apply -f https://github.com/operator-framework/catalogd/releases/latest/download/catalogd.yaml
12-
kubectl wait --for=condition=Available -n olmv1-system deploy/catalogd-controller-manager --timeout=60s
13-
sleep 10
1413

15-
# inspect crds (catalog)
14+
# use the install script from the latest github release
15+
curl -L -s https://github.com/operator-framework/catalogd/releases/latest/download/install.sh | bash
16+
17+
# inspect crds (clustercatalog)
1618
kubectl get crds -A
19+
kubectl get clustercatalog -A
1720

18-
# create a catalog
19-
kubectl apply -f config/samples/core_v1alpha1_catalog.yaml
20-
# shows catalog-sample
21-
kubectl get catalog -A
22-
# waiting for catalog to report ready status
23-
time kubectl wait --for=condition=Serving catalog/operatorhubio --timeout=1m
21+
echo "... checking catalogd controller is available"
22+
kubectl wait --for=condition=Available -n olmv1-system deploy/catalogd-controller-manager --timeout=1m
23+
echo "... checking clustercatalog is serving"
24+
kubectl wait --for=condition=Serving clustercatalog/operatorhubio --timeout=60s
25+
echo "... checking clustercatalog is finished unpacking"
26+
kubectl wait --for=condition=Progressing=False clustercatalog/operatorhubio --timeout=60s
2427

2528
# port forward the catalogd-service service to interact with the HTTP server serving catalog contents
26-
(kubectl -n olmv1-system port-forward svc/catalogd-service 8080:80)&
29+
(kubectl -n olmv1-system port-forward svc/catalogd-service 8081:443)&
30+
31+
sleep 3
2732

2833
# check what 'packages' are available in this catalog
29-
curl http://localhost:8080/catalogs/operatorhubio/api/v1/all | jq -s '.[] | select(.schema == "olm.package") | .name'
34+
curl -k https://localhost:8081/catalogs/operatorhubio/api/v1/all | jq -s '.[] | select(.schema == "olm.package") | .name'
3035
# check what channels are included in the wavefront package
31-
curl http://localhost:8080/catalogs/operatorhubio/api/v1/all | jq -s '.[] | select(.schema == "olm.channel") | select(.package == "wavefront") | .name'
36+
curl -k https://localhost:8081/catalogs/operatorhubio/api/v1/all | jq -s '.[] | select(.schema == "olm.channel") | select(.package == "wavefront") | .name'
3237
# check what bundles are included in the wavefront package
33-
curl http://localhost:8080/catalogs/operatorhubio/api/v1/all | jq -s '.[] | select(.schema == "olm.bundle") | select(.package == "wavefront") | .name'
38+
curl -k https://localhost:8081/catalogs/operatorhubio/api/v1/all | jq -s '.[] | select(.schema == "olm.bundle") | select(.package == "wavefront") | .name'
3439

0 commit comments

Comments
 (0)