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
+16-16Lines changed: 16 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -165,40 +165,40 @@ 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
169
# Get all clusters
170
170
echo "Getting list of workload clusters..."
171
171
kubectl get clusters -A > bootstrap-pod-logs/clusters.txt 2>&1 || true
172
-
172
+
173
173
# Collect logs from workload cluster (where konnector-agent actually runs)
174
174
echo "===== Collecting logs from WORKLOAD CLUSTER ====="
175
175
mkdir -p bootstrap-pod-logs/workload-cluster
176
-
176
+
177
177
# Find the workload cluster name (starts with "quick-start")
178
178
WORKLOAD_CLUSTER=$(kubectl get clusters -A -o jsonpath='{.items[?(@.metadata.name contains "quick-start")].metadata.name}' 2>/dev/null | head -n 1)
179
179
WORKLOAD_NAMESPACE=$(kubectl get clusters -A -o jsonpath='{.items[?(@.metadata.name contains "quick-start")].metadata.namespace}' 2>/dev/null | head -n 1)
180
-
180
+
181
181
if [[ -n "$WORKLOAD_CLUSTER" && -n "$WORKLOAD_NAMESPACE" ]]; then
182
182
echo "Found workload cluster: $WORKLOAD_CLUSTER in namespace $WORKLOAD_NAMESPACE"
183
-
183
+
184
184
# Get workload cluster kubeconfig from secret
185
185
echo "Retrieving workload cluster kubeconfig..."
186
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