Skip to content

Commit a6bcbe7

Browse files
committed
collect fewer logs
1 parent 0ab3bc9 commit a6bcbe7

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

scripts/ci-entrypoint.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -198,13 +198,13 @@ wait_for_nodes() {
198198
sleep 10
199199
done
200200

201-
until "${KUBECTL}" wait --for=condition=Ready node --all --timeout=15m; do
202-
sleep 5
203-
done
204-
until "${KUBECTL}" get nodes -o wide; do
201+
until "${KUBECTL}" wait --for=condition=Ready node --all --timeout=15m > /dev/null; do
205202
sleep 5
206203
done
207204
done
205+
until "${KUBECTL}" get nodes -o wide; do
206+
sleep 5
207+
done
208208
}
209209

210210
# wait_for_pods returns when all pods on the workload cluster are Running.

test/e2e/azure_clusterproxy.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ func initScheme() *runtime.Scheme {
8282
}
8383

8484
func (acp *AzureClusterProxy) CollectWorkloadClusterLogs(ctx context.Context, namespace, name, outputPath string) {
85-
Logf("Dumping workload cluster %s/%s logs", namespace, name)
86-
acp.ClusterProxy.CollectWorkloadClusterLogs(ctx, namespace, name, outputPath)
85+
// Logf("Dumping workload cluster %s/%s logs", namespace, name)
86+
// acp.ClusterProxy.CollectWorkloadClusterLogs(ctx, namespace, name, outputPath)
8787

8888
aboveMachinesPath := strings.Replace(outputPath, "/machines", "", 1)
8989

@@ -92,10 +92,10 @@ func (acp *AzureClusterProxy) CollectWorkloadClusterLogs(ctx context.Context, na
9292
acp.collectNodes(ctx, namespace, name, aboveMachinesPath)
9393
Logf("Fetching nodes took %s", time.Since(start).String())
9494

95-
Logf("Dumping workload cluster %s/%s pod logs", namespace, name)
96-
start = time.Now()
97-
acp.collectPodLogs(ctx, namespace, name, aboveMachinesPath)
98-
Logf("Fetching pod logs took %s", time.Since(start).String())
95+
// Logf("Dumping workload cluster %s/%s pod logs", namespace, name)
96+
// start = time.Now()
97+
// acp.collectPodLogs(ctx, namespace, name, aboveMachinesPath)
98+
// Logf("Fetching pod logs took %s", time.Since(start).String())
9999

100100
Logf("Dumping workload cluster %s/%s Azure activity log", namespace, name)
101101
start = time.Now()

0 commit comments

Comments
 (0)