Skip to content

Commit

Permalink
shellbash
Browse files Browse the repository at this point in the history
  • Loading branch information
njtran committed May 3, 2024
1 parent 7779181 commit b2d5ff6
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/test-kind.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,12 @@ jobs:
- name: Kind Cluster
uses: helm/[email protected]
- name: check kind cluster
shell: bash
run: |
kubectl config current-context
kubectl get nodes
- name: Enable the actionlint matcher
shell: bash
run: echo "::add-matcher::.github/actionlint-matcher.json"
- run: K8S_VERSION=${{ matrix.k8sVersion }} make presubmit
- name: Send coverage
Expand All @@ -33,11 +35,13 @@ jobs:
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: goveralls -coverprofile=coverage.out -service=github
- name: install pyroscope dependency
shell: bash
run: |
curl -fL https://github.com/grafana/pyroscope/releases/download/v1.1.5/profilecli_1.1.5_linux_amd64.tar.gz | tar xvz
chmod +x profilecli
sudo mv profilecli /usr/local/bin
- name: test
shell: bash
run: |

Check failure on line 45 in .github/workflows/test-kind.yaml

View workflow job for this annotation

GitHub Actions / presubmit (1.29.x)

shellcheck reported issue in this script: SC2086:info:4:6: Double quote to prevent globbing and word splitting

Check failure on line 45 in .github/workflows/test-kind.yaml

View workflow job for this annotation

GitHub Actions / presubmit (1.24.x)

shellcheck reported issue in this script: SC2086:info:4:6: Double quote to prevent globbing and word splitting

Check failure on line 45 in .github/workflows/test-kind.yaml

View workflow job for this annotation

GitHub Actions / presubmit (1.25.x)

shellcheck reported issue in this script: SC2086:info:4:6: Double quote to prevent globbing and word splitting

Check failure on line 45 in .github/workflows/test-kind.yaml

View workflow job for this annotation

GitHub Actions / presubmit (1.26.x)

shellcheck reported issue in this script: SC2086:info:4:6: Double quote to prevent globbing and word splitting

Check failure on line 45 in .github/workflows/test-kind.yaml

View workflow job for this annotation

GitHub Actions / presubmit (1.27.x)

shellcheck reported issue in this script: SC2086:info:4:6: Double quote to prevent globbing and word splitting

Check failure on line 45 in .github/workflows/test-kind.yaml

View workflow job for this annotation

GitHub Actions / presubmit (1.28.x)

shellcheck reported issue in this script: SC2086:info:4:6: Double quote to prevent globbing and word splitting

Check failure on line 45 in .github/workflows/test-kind.yaml

View workflow job for this annotation

GitHub Actions / presubmit (1.29.x)

shellcheck reported issue in this script: SC2086:info:4:6: Double quote to prevent globbing and word splitting
kubectl cluster-info
kubectl get storageclass standard
Expand All @@ -48,11 +52,13 @@ jobs:
ls ./karpenter/
cd ./karpenter/
- name: install kwok and controller
shell: bash
run: |
make toolchain
make install-kwok
KWOK_REPO=kind.local make apply
- name: install prometheus and grafana
shell: bash
run: |
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
helm repo add grafana https://grafana.github.io/helm-charts
Expand All @@ -66,6 +72,7 @@ jobs:
echo "Installed prometheus"
kubectl --namespace prometheus get pods -l "release=prometheus"
- name: enable profiling
shell: bash
run: |
kubectl annotate -n kube-system pods profiles.grafana.com/memory.scrape="true" -l app.kubernetes.io/name="karpenter"
kubectl annotate -n kube-system pods profiles.grafana.com/memory.port="8000" -l app.kubernetes.io/name="karpenter"
Expand All @@ -77,6 +84,7 @@ jobs:
kubectl annotate -n kube-system pods profiles.grafana.com/goroutine.port="8000" -l app.kubernetes.io/name="karpenter"
# Testing out pyroscope for profiling
- name: apply pyroscope
shell: bash
run: |
helm -n kube-system install pyroscope grafana/pyroscope
#Setup Metrics Endpoint
Expand All @@ -99,6 +107,7 @@ jobs:
path: /metrics
EOF
- name: apply nodepool
shell: bash
run: |
# Setup node pool
cat <<EOF | envsubst | kubectl apply -f -
Expand Down Expand Up @@ -128,11 +137,13 @@ jobs:
expireAfter: 720h # 30 * 24h = 720h
EOF
- name: ping cluster
shell: bash
run: |
kubectl get pods -n kube-system | grep karpenter
kubectl get nodepools
kubectl get pods -A
- name: cleanup
shell: bash
run: |
kubectl delete nodepools --all
make delete
Expand Down

0 comments on commit b2d5ff6

Please sign in to comment.