Skip to content

Commit

Permalink
fix: task workaround and action update
Browse files Browse the repository at this point in the history
  • Loading branch information
corang committed Feb 7, 2024
1 parent 812ebd7 commit 3c5928f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .github/actions/get-cluster-info/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,20 @@ runs:

- name: Get Pod Logs
run: |
set +e
kubectl get pods --all-namespaces -o custom-columns=NAME:.metadata.name,NAMESPACE:.metadata.namespace --no-headers | while read pod namespace; do
kubectl logs --namespace=$namespace "$pod" > "cluster-info/${pod}.log"
done
set -e
shell: bash

- name: Get Pod Descriptions
run: |
set +e
kubectl get pods --all-namespaces -o custom-columns=NAME:.metadata.name,NAMESPACE:.metadata.namespace --no-headers | while read pod namespace; do
kubectl describe pod --namespace=$namespace "$pod" > "cluster-info/${pod}.desc"
done
set -e
shell: bash

- uses: actions/upload-artifact@v4
Expand Down
4 changes: 2 additions & 2 deletions tasks.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
includes:
- cleanup: ./tasks/cleanup.yaml
- teardown: ./tasks/cleanup.yaml
- create: ./tasks/create.yaml
- deploy: ./tasks/deploy.yaml
- setup: https://raw.githubusercontent.com/defenseunicorns/uds-common-tasks/main/tasks/setup.yaml
Expand Down Expand Up @@ -33,4 +33,4 @@ tasks:

- name: cleanup
actions:
- task: cleanup:destroy
- task: teardown:destroy

0 comments on commit 3c5928f

Please sign in to comment.