Skip to content

Commit

Permalink
🌱 demo install from published tag (#217)
Browse files Browse the repository at this point in the history
* demo install from published tag

Signed-off-by: Jordan Keister <[email protected]>

* review updates

Signed-off-by: Jordan Keister <[email protected]>

---------

Signed-off-by: Jordan Keister <[email protected]>
  • Loading branch information
grokspawn authored Nov 29, 2023
1 parent 10a0803 commit 1b0517f
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
10 changes: 6 additions & 4 deletions hack/scripts/demo-script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
17 changes: 15 additions & 2 deletions hack/scripts/generate-asciidemo.sh
Original file line number Diff line number Diff line change
@@ -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 )"
Expand All @@ -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} ]
Expand Down

0 comments on commit 1b0517f

Please sign in to comment.