Potential usages for the Github CI of the operator:
- name: Dump Diagnostics
if: failure()
run: |
mkdir -p diagnostics
kubectl get events -A > diagnostics/events.txt
kubectl logs -n my-namespace -l app=my-operator > diagnostics/operator.log
kubectl get pods -A -o wide > diagnostics/pods.txt
# ... specific describes ...
- name: Upload Artifacts
if: failure()
uses: actions/upload-artifact@v4
with:
name: diagnostics-dump
path: diagnostics/
Potential usages for the Github CI of the operator: