Skip to content

Commit 2da6001

Browse files
author
Sunil Thaha
authored
Merge pull request #2239 from vprashar2929/ci-must-gath-dep
ci: ensure that must-gather runs for both K8s deployment
2 parents 842091a + 27d3396 commit 2da6001

File tree

1 file changed

+32
-13
lines changed

1 file changed

+32
-13
lines changed

.github/k8s/action.yaml

Lines changed: 32 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,25 @@ runs:
138138
fi
139139
done
140140
141+
- name: Run must gather
142+
shell: bash
143+
run: |
144+
echo "::group::Get pods in kepler namespace"
145+
kubectl get pods -n kepler || true
146+
echo "::endgroup::"
147+
148+
echo "::group::Get pods in monitoring namespace"
149+
kubectl get pods -n monitoring || true
150+
echo "::endgroup::"
151+
152+
echo "::group::Get logs for kepler daemonset"
153+
kubectl logs daemonset/kepler -n kepler || true
154+
echo "::endgroup::"
155+
156+
echo "::group::Fetch metrics from localhost:28282"
157+
curl -s http://localhost:28282/metrics || true
158+
echo "::endgroup::"
159+
141160
- name: Remove existing Kepler deployment
142161
shell: bash
143162
run: |
@@ -179,29 +198,29 @@ runs:
179198
echo "Helm deployment metrics endpoint is working"
180199
echo "::endgroup::"
181200
182-
- name: Cleanup Helm deployment
183-
shell: bash
184-
run: |
185-
echo "::group::Cleanup Helm deployment"
186-
helm uninstall kepler-helm-test -n kepler-helm
187-
kubectl delete namespace kepler-helm
188-
echo "::endgroup::"
189-
190-
- name: Run must gather
201+
- name: Run must gather for Helm deployment
191202
shell: bash
192203
run: |
193204
echo "::group::Get pods in kepler namespace"
194-
kubectl get pods -n kepler || true
205+
kubectl get pods -n kepler-helm || true
195206
echo "::endgroup::"
196207
197208
echo "::group::Get pods in monitoring namespace"
198209
kubectl get pods -n monitoring || true
199210
echo "::endgroup::"
200211
201212
echo "::group::Get logs for kepler daemonset"
202-
kubectl logs daemonset/kepler -n kepler || true
213+
kubectl logs daemonset/kepler-helm-test -n kepler-helm || true
203214
echo "::endgroup::"
204215
205-
echo "::group::Fetch metrics from localhost:28282"
206-
curl -s http://localhost:28282/metrics || true
216+
echo "::group::Fetch metrics from localhost:28283"
217+
curl -s http://localhost:28283/metrics || true
218+
echo "::endgroup::"
219+
220+
- name: Cleanup Helm deployment
221+
shell: bash
222+
run: |
223+
echo "::group::Cleanup Helm deployment"
224+
helm uninstall kepler-helm-test -n kepler-helm
225+
kubectl delete namespace kepler-helm
207226
echo "::endgroup::"

0 commit comments

Comments
 (0)