diff --git a/README.md b/README.md index 76b2535..abd3a2e 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ Catalogd is a Kubernetes extension that unpacks [file-based catalog (FBC)](https 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. ## Quickstart DEMO -[![asciicast](https://asciinema.org/a/623959.svg)](https://asciinema.org/a/623959) +[![asciicast](https://asciinema.org/a/624043.svg)](https://asciinema.org/a/624043) ## Quickstart Steps **NOTE:** Procedure steps marked with an asterisk (`*`) are likely to change with future API updates. diff --git a/hack/scripts/demo-script.sh b/hack/scripts/demo-script.sh index 95c79bb..46942b4 100755 --- a/hack/scripts/demo-script.sh +++ b/hack/scripts/demo-script.sh @@ -2,12 +2,14 @@ trap "trap - SIGTERM && kill -- -$$" SIGINT SIGTERM EXIT # Welcome to the catalogd demo -make kind-cluster-cleanup kind delete cluster -make kind-cluster -kubectl cluster-info --context kind-catalogd +kind create cluster +kubectl cluster-info --context kind-kind sleep 10 -make install +# install catalogd on the cluster +# could also `make install` in repo +kubectl apply -f https://github.com/operator-framework/catalogd/releases/latest/download/catalogd.yaml +kubectl wait --for=condition=Available -n catalogd-system deploy/catalogd-controller-manager --timeout=60s sleep 10 # inspect crds (catalog) kubectl get crds -A diff --git a/hack/scripts/generate-asciidemo.sh b/hack/scripts/generate-asciidemo.sh index 5b0a29c..aa72621 100755 --- a/hack/scripts/generate-asciidemo.sh +++ b/hack/scripts/generate-asciidemo.sh @@ -1,7 +1,5 @@ #!/usr/bin/env bash -set -v - trap cleanup SIGINT SIGTERM EXIT SCRIPTPATH="$( cd -- "$(dirname "$0")" > /dev/null 2>&1 ; pwd -P )" @@ -22,6 +20,21 @@ function cleanup() { fi } +function usage() { + echo "$0 [options]" + echo "where options is" + echo " h help (this message)" + exit 1 +} + +set +u +while getopts 'h' flag; do + case "${flag}" in + h) usage ;; + esac + shift +done +set -u WKDIR=$(mktemp -td generate-asciidemo.XXXXX) if [ ! -d ${WKDIR} ]