Skip to content

Commit

Permalink
modified k8s test setup file
Browse files Browse the repository at this point in the history
Signed-off-by: jnjerin <[email protected]>
  • Loading branch information
jnjerin committed Nov 7, 2023
1 parent ff1f408 commit 4cf20a8
Showing 1 changed file with 21 additions and 5 deletions.
26 changes: 21 additions & 5 deletions .github/workflows/test-kubectl-plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,24 @@ jobs:

- name: Install kubectl plugin
run: |
# helm version
# curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
# chmod +x kubectl
# sudo mv ./kubectl /usr/local/bin/kubectl
# set -x; 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
# ls -lh
# ls -lh ./"$KREW/"
# export PATH="$PWD/$KREW/bin:$PATH"
# kubectl krew install hlf
# helm repo add kfs "https://kfsoftware.github.io/hlf-helm-charts" --force-update
# helm install hlf-operator --version=1.9.2 kfs/hlf-operator
# kubectl hlf
helm version
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
chmod +x kubectl
Expand All @@ -40,14 +58,12 @@ jobs:
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
ls -lh
ls -lh ./"$KREW/"
export PATH="$PWD/$KREW/bin:$PATH"
./krew install krew
export PATH="$PWD/$KREW:$PATH"
kubectl krew install hlf
helm repo add kfs "https://kfsoftware.github.io/hlf-helm-charts" --force-update
helm install hlf-operator --version=1.9.2 kfs/hlf-operator
kubectl hlf
kubectl hlf
- name: Install Istio
run: |
Expand Down

0 comments on commit 4cf20a8

Please sign in to comment.