Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add debug logs to save logs for easier searching #430

Merged
merged 6 commits into from
May 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions .github/actions/debug-output/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,18 @@ runs:
- name: Print basic debug info for a k8s cluster
run: |
echo "::group::kubectl get all"
uds zarf tools kubectl get all -A
uds zarf tools kubectl get all -A | tee /tmp/debug-k-get-all.log
echo "::endgroup::"
echo "::group::kubectl get pv,pvc"
uds zarf tools kubectl get pv,pvc -A
uds zarf tools kubectl get pv,pvc -A | tee /tmp/debug-k-get-pv-pvc.log
echo "::endgroup::"
echo "::group::kubectl get package"
uds zarf tools kubectl get package -A
uds zarf tools kubectl get package -A | tee /tmp/debug-k-get-package.log
echo "::endgroup::"
echo "::group::kubectl get events"
uds zarf tools kubectl get events -A --sort-by='.lastTimestamp'
uds zarf tools kubectl get events -A --sort-by='.lastTimestamp' | tee /tmp/debug-k-get-events.log
mjnagel marked this conversation as resolved.
Show resolved Hide resolved
echo "::endgroup::"
echo "::group::kubectl describe nodes"
uds zarf tools kubectl describe nodes k3d-uds-server-0 | tee /tmp/debug-k-describe-node.log
echo "::endgroup::"
shell: bash
2 changes: 2 additions & 0 deletions .github/actions/save-logs/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,7 @@ runs:
path: |
/tmp/zarf-*.log
/tmp/uds-*.log
/tmp/maru-*.log
/tmp/debug-*.log
/tmp/uds-containerd-logs
/tmp/k3d-uds-*.log