Skip to content

Commit 0b27725

Browse files
committed
add debug step
1 parent 1705cc9 commit 0b27725

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

.github/actions/kubectl-wait/action.yml

+12-2
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,22 @@ inputs:
2121
runs:
2222
using: composite
2323
steps:
24+
- name: Set vars
25+
shell: bash
26+
run: |
27+
NAMESPACE_PARAM="${{ inputs.namespace != '' && format('-n {0}', inputs.namespace) || '' }}" >> $GITHUB_ENV
28+
2429
- name: Watch resources
2530
shell: bash
26-
env:
27-
NAMESPACE_PARAM: "${{ inputs.namespace != '' && format('-n {0}', inputs.namespace) || '' }}"
2831
run: |
2932
kubectl get ${{ inputs.wait-resource }} --watch $NAMESPACE_PARAM &
3033
KWPID=$!
3134
kubectl wait --timeout=${{ inputs.wait-timeout }} --all=true --for=condition=${{ inputs.wait-condition }} ${{ inputs.wait-resource }} $NAMESPACE_PARAM
3235
kill $KWPID
36+
37+
- name: Spit resources status after wait
38+
shell: bash
39+
if: always()
40+
run: |
41+
kubectl get ${{ inputs.wait-resource }} $NAMESPACE_PARAM
42+
kubectl describe ${{ inputs.wait-resource }} $NAMESPACE_PARAM

0 commit comments

Comments
 (0)