|
67 | 67 | - name: Create Kind cluster |
68 | 68 | uses: helm/kind-action@main |
69 | 69 |
|
| 70 | + - name: Setup upterm session |
| 71 | + uses: owenthereal/action-upterm@v1 |
| 72 | + with: |
| 73 | + limit-access-to-actor: true |
| 74 | + wait-timeout-minutes: 5 |
| 75 | + |
70 | 76 | - name: Clean runner |
71 | 77 | run: | |
72 | 78 | # Remove cache because permissions can get fucked up preventing kluctl from creating it's cache directory |
@@ -99,28 +105,43 @@ jobs: |
99 | 105 | echo "=== Node pod logs ===" |
100 | 106 | kubectl logs -l app.kubernetes.io/name=csi -n nix-csi --tail -1 |
101 | 107 |
|
102 | | - - name: Debug on failure |
| 108 | + - name: Cluster state all |
103 | 109 | if: failure() |
104 | 110 | run: | |
105 | | - echo "=== Cluster state ===" |
106 | | - kubectl get all -A |
| 111 | + echo "=== Cluster state all ===" |
| 112 | + kubectl get all -A || true |
107 | 113 |
|
108 | | - echo "=== Cache pod logs ===" |
109 | | - kubectl logs -l app.kubernetes.io/name=cache -n nix-csi --tail -1 || true |
| 114 | + - name: Cluster state configmaps |
| 115 | + if: failure() |
| 116 | + run: | |
| 117 | + echo "=== Cluster configmaps ===" |
| 118 | + kubectl get configmaps -A || true |
| 119 | +
|
| 120 | + - name: Cluster state secrets |
| 121 | + if: failure() |
| 122 | + run: | |
| 123 | + kubectl get secrets -A || true |
110 | 124 |
|
111 | | - echo "=== Cache pod describe ===" |
| 125 | + - name: Cache |
| 126 | + if: failure() |
| 127 | + run: | |
| 128 | + kubectl logs -l app.kubernetes.io/name=cache -n nix-csi --tail -1 || true |
112 | 129 | kubectl describe pod -l app.kubernetes.io/name=cache-n nix-csi || true |
113 | 130 |
|
114 | | - echo "=== Node pod logs ===" |
| 131 | + - name: Node |
| 132 | + if: failure() |
| 133 | + run: | |
115 | 134 | kubectl logs -l app.kubernetes.io/name=csi -n nix-csi --tail -1 || true |
116 | | -
|
117 | | - echo "=== Node pod describe ===" |
118 | 135 | kubectl describe pod -l app.kubernetes.io/name=csi -n nix-csi || true |
119 | 136 |
|
120 | | - echo "=== Init pod logs ===" |
| 137 | + - name: Init |
| 138 | + if: failure() |
| 139 | + run: | |
121 | 140 | kubectl logs -l app.kubernetes.io/name=init -n nix-csi --tail -1 || true |
122 | 141 |
|
123 | | - echo "=== Events ===" |
| 142 | + - name: Events |
| 143 | + if: failure() |
| 144 | + run: | |
124 | 145 | kubectl get events -n nix-csi --sort-by='.lastTimestamp' |
125 | 146 |
|
126 | 147 | test-kind-nocache: |
|
0 commit comments