Skip to content

Commit

Permalink
kludged script update to demo
Browse files Browse the repository at this point in the history
Signed-off-by: Jordan Keister <jordan@nimblewidget.com>
  • Loading branch information
grokspawn committed Nov 16, 2023
1 parent a7cd270 commit 96d157e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
Binary file modified docs/demo.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 9 additions & 4 deletions hack/scripts/generate-asciidemo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,22 @@ function run() {

# port forward the catalogd-catalogserver service
typeline -x "# port forward the catalogd-catalogserver service to interact with the HTTP server serving catalog contents"
typline "kubectl -n catalogd-system port-forward svc/catalogd-catalogserver 8080:80"
typeline -x "kubectl -n catalogd-system port-forward svc/catalogd-catalogserver 8080:80"
(kubectl -n catalogd-system port-forward svc/catalogd-catalogserver 8080:80)&

# inspect packages
typeline -x "# check what 'packages' are available in this catalog"
typeline "curl http://localhost:8080/catalogs/operatorhubio/all.json | jq -s '.[] | select(.schema == \"olm.package\") | .name'"
typeline -x "curl http://localhost:8080/catalogs/operatorhubio/all.json | jq -s '.[] | select(.schema == \"olm.package\") | .name'"
curl http://localhost:8080/catalogs/operatorhubio/all.json | jq -s '.[] | select(.schema == "olm.package") | .name'
# inspect channels
typeline -x "# check what channels are included in the wavefront package"
typeline "curl http://localhost:8080/catalogs/operatorhubio/all.json | jq -s '.[] | select(.schema == \"olm.channel\") | select(.package == \"wavefront\") | .name'"
typeline -x "curl http://localhost:8080/catalogs/operatorhubio/all.json | jq -s '.[] | select(.schema == \"olm.channel\") | select(.package == \"wavefront\") | .name'"
curl http://localhost:8080/catalogs/operatorhubio/all.json | jq -s '.[] | select(.schema == "olm.channel") | select(.package == "wavefront") | .name'
# inspect bundles
typeline -x "# check what bundles are included in the wavefront package"
typeline "curl http://localhost:8080/catalogs/operatorhubio/all.json | jq -s '.[] | select(.schema == \"olm.bundle\") | select(.package == \"ack-acm-controller\") | .name'"
typeline -x "curl http://localhost:8080/catalogs/operatorhubio/all.json | jq -s '.[] | select(.schema == \"olm.bundle\") | select(.package == \"ack-acm-controller\") | .name'"
curl http://localhost:8080/catalogs/operatorhubio/all.json | jq -s '.[] | select(.schema == "olm.bundle") | select(.package == "ack-acm-controller") | .name'
}

trap "trap - SIGTERM && kill -- -$$" SIGINT SIGTERM EXIT
run

0 comments on commit 96d157e

Please sign in to comment.