Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🌱 demo install from published tag #217

Merged
merged 2 commits into from
Nov 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
grokspawn marked this conversation as resolved.
Show resolved Hide resolved
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