Skip to content

Commit

Permalink
fix krew url (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpinsonneau authored Apr 18, 2024
1 parent 1294400 commit 535cb61
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ release: clean ## Generate tar.gz containing krew plugin and display krew update
$(MAKE) KREW_PLUGIN=true kubectl-commands
tar -czf netobserv-cli.tar.gz LICENSE ./build/netobserv
@echo "### Generating krew index yaml"
IMAGE_ORG=${IMAGE_ORG} \
VERSION=$(VERSION) \
./scripts/krew.sh

Expand Down
5 changes: 2 additions & 3 deletions scripts/krew.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@
SHA=$(sha256sum netobserv-cli.tar.gz | awk '{print $1}')

URL="<URL>"
if [[ $VERSION = +([[:digit:]]).+([[:digit:]]).+([[:digit:]]) ]]; then
URL="https://github.com/netobserv/network-observability-cli/releases/download/v${VERSION}/netobserv-cli.tar.gz"
if [[ $VERSION = v+([[:digit:]]).+([[:digit:]]).+([[:digit:]]) ]]; then
URL="https://github.com/${IMAGE_ORG}/network-observability-cli/releases/download/${VERSION}/netobserv-cli.tar.gz"
fi


indexYaml='
apiVersion: krew.googlecontainertools.github.com/v1alpha2
kind: Plugin
Expand Down

0 comments on commit 535cb61

Please sign in to comment.