Skip to content

Commit

Permalink
Merge pull request #247 from shay1760/remove-code
Browse files Browse the repository at this point in the history
clean: remove krew installation
  • Loading branch information
subhamkrai authored Feb 19, 2024
2 parents 6bffddf + a9410da commit 5016e2c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
3 changes: 2 additions & 1 deletion .commitlintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
"operator",
"osd",
"test",
"tests"
"tests",
"clean"
]
],
"body-leading-blank": [
Expand Down
13 changes: 0 additions & 13 deletions tests/github-action-helper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,6 @@ set -xeEo pipefail
: "${FUNCTION:=${1}}"
: "${BLOCK:=$(sudo lsblk --paths | awk '/14G/ || /75G/ {print $1}' | head -1)}"

# source https://krew.sigs.k8s.io/docs/user-guide/setup/install/
install_krew() {
cd "$(mktemp -d)"
OS="$(uname | tr '[:upper:]' '[:lower:]')"
ARCH="$(uname -m | sed -e 's/x86_64/amd64/' -e 's/\(arm\)\(64\)\?.*/\1\2/' -e 's/aarch64$/arm64/')"
KREW="krew-${OS}_${ARCH}"
curl -fsSLO "https://github.com/kubernetes-sigs/krew/releases/latest/download/${KREW}.tar.gz"
tar zxvf "${KREW}.tar.gz"
./"${KREW}" install krew
cp "$HOME"/.krew/bin/kubectl-krew /usr/local/bin/
kubectl krew install rook-ceph
}

# source https://github.com/rook/rook
use_local_disk() {
BLOCK_DATA_PART=${BLOCK}1
Expand Down

0 comments on commit 5016e2c

Please sign in to comment.