Skip to content

Commit

Permalink
fix: copy metrics from sparrow
Browse files Browse the repository at this point in the history
  • Loading branch information
Fovty committed Apr 15, 2024
1 parent 5cf9052 commit 95dacde
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/end2end.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,24 @@ jobs:
with:
version: 'v1.26.9-k3s1'

- name: Check Metricsserver Deployment
run: |
kubectl -n kube-system rollout status deployment/metrics-server --timeout=60s
STATUS=$(kubectl -n kube-system get deployment metrics-server -o jsonpath={.status.readyReplicas})
if [[ $STATUS -ne 1 ]]
then
echo "Deployment metrics-server not ready"
kubectl -n kube-system get events
exit 1
else
echo "Deployment metrics-server OK"
fi
- name: Setup Helm
run: |
curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
helm version
- name: Install Metrics Server
run: |
kubectl apply -f https://github.com/kubernetes-sigs/metrics-server/releases/latest/download/components.yaml
- name: Get Image Tag
id: version
run: echo "value=commit-$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit 95dacde

Please sign in to comment.