You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/e2e.yml
+82-1Lines changed: 82 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -165,7 +165,88 @@ jobs:
165
165
echo "Collecting cluster events..."
166
166
kubectl get events -A --sort-by='.lastTimestamp' > bootstrap-pod-logs/events.txt 2>&1 || true
167
167
echo "✓ Saved events.txt"
168
-
168
+
169
+
# Get all clusters
170
+
echo "Getting list of workload clusters..."
171
+
kubectl get clusters -A > bootstrap-pod-logs/clusters.txt 2>&1 || true
172
+
173
+
# Collect logs from workload cluster (where konnector-agent actually runs)
174
+
echo "===== Collecting logs from WORKLOAD CLUSTER ====="
175
+
mkdir -p bootstrap-pod-logs/workload-cluster
176
+
177
+
# Find the workload cluster name (starts with "quick-start")
178
+
WORKLOAD_CLUSTER=$(kubectl get clusters -A -o jsonpath='{.items[?(@.metadata.name contains "quick-start")].metadata.name}' 2>/dev/null | head -n 1)
179
+
WORKLOAD_NAMESPACE=$(kubectl get clusters -A -o jsonpath='{.items[?(@.metadata.name contains "quick-start")].metadata.namespace}' 2>/dev/null | head -n 1)
180
+
181
+
if [[ -n "$WORKLOAD_CLUSTER" && -n "$WORKLOAD_NAMESPACE" ]]; then
182
+
echo "Found workload cluster: $WORKLOAD_CLUSTER in namespace $WORKLOAD_NAMESPACE"
183
+
184
+
# Get workload cluster kubeconfig from secret
185
+
echo "Retrieving workload cluster kubeconfig..."
186
+
if kubectl get secret -n "$WORKLOAD_NAMESPACE" "${WORKLOAD_CLUSTER}-kubeconfig" -o jsonpath='{.data.value}' 2>/dev/null | base64 -d > bootstrap-pod-logs/workload-cluster/kubeconfig.yaml; then
0 commit comments