@@ -125,50 +125,7 @@ jobs:
125125 - name : Debug failed deployment
126126 if : failure()
127127 run : |
128- echo "=== Deployment failed - collecting debug information ==="
129- kubectl get pods -o wide
130- kubectl get jobs -o wide
131- kubectl get services -o wide
132- kubectl get events --sort-by='.lastTimestamp' | tail -20 || true
133-
134- # Check Knative installation status
135- echo "=== Knative Installation Status ==="
136- kubectl get pods -n knative-serving -o wide || echo "Knative Serving not installed"
137- kubectl get pods -n knative-eventing -o wide || echo "Knative Eventing not installed"
138- kubectl get pods -n kourier-system -o wide || echo "Kourier not installed"
139- # Check Knative CRDs
140- echo "=== Knative CRDs Status ==="
141- kubectl get crd | grep knative || echo "No Knative CRDs found"
142- kubectl get crd sinkbindings.sources.knative.dev || echo "SinkBinding CRD not found"
143-
144- # Check Traefik status
145- echo "=== Traefik Status ==="
146- kubectl get pods -n kube-system -l app.kubernetes.io/name=traefik -o wide || echo "No Traefik pods found"
147- kubectl get crd | grep traefik || echo "No Traefik CRDs found"
148- kubectl get crd middlewares.traefik.io || echo "Middleware CRD not found"
149- kubectl get crd ingressroutes.traefik.io || echo "IngressRoute CRD not found"
150-
151- # Check notification system final status
152- echo "=== Notification System Final Status ==="
153- kubectl get deployments -l app.kubernetes.io/name=eoapi-notifier -o wide || echo "No eoapi-notifier deployment"
154- kubectl get pods -l app.kubernetes.io/name=eoapi-notifier -o wide || echo "No eoapi-notifier pods"
155- kubectl get ksvc -n eoapi -o wide || echo "No Knative services in eoapi namespace"
156- kubectl get ksvc eoapi-cloudevents-sink -n eoapi -o wide || echo "No eoapi-cloudevents-sink Knative service"
157- kubectl get pods -l serving.knative.dev/service=eoapi-cloudevents-sink -n eoapi -o wide || echo "No CloudEvents sink pods"
158- # Check SinkBinding resources
159- echo "=== SinkBinding Resources ==="
160- kubectl get sinkbindings -A -o wide || echo "No SinkBinding resources found"
161-
162- # Show notification logs if they exist
163- echo "=== eoapi-notifier Logs ==="
164- kubectl logs -l app.kubernetes.io/name=eoapi-notifier --tail=20 || echo "No eoapi-notifier logs"
165- echo "=== Knative CloudEvents Sink Logs ==="
166- kubectl logs -l serving.knative.dev/service=eoapi-cloudevents-sink -n eoapi --tail=20 || echo "No CloudEvents sink logs"
167- # Show Knative system logs if there are issues
168- echo "=== Knative Serving Controller Logs ==="
169- kubectl logs -n knative-serving -l app=controller --tail=20 || echo "No Knative Serving controller logs"
170- echo "=== Knative Eventing Controller Logs ==="
171- kubectl logs -n knative-eventing -l app=eventing-controller --tail=20 || echo "No Knative Eventing controller logs"
128+ ./scripts/debug-deployment.sh
172129
173130
174131 - name : Cleanup
0 commit comments