Skip to content

Commit bdc4b33

Browse files
committed
e2e: cleanup controller log and metric output path
1 parent a24665d commit bdc4b33

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/framework/clusterctl/clusterctl_helpers.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,15 +107,15 @@ func InitManagementClusterAndWatchControllerLogs(ctx context.Context, input Init
107107
GetLister: client,
108108
ClientSet: input.ClusterProxy.GetClientSet(),
109109
Deployment: deployment,
110-
LogPath: filepath.Join(input.LogFolder, "controllers"),
110+
LogPath: filepath.Join(input.LogFolder, "logs", deployment.GetNamespace()),
111111
})
112112

113113
if !input.DisableMetricsCollection {
114114
framework.WatchPodMetrics(ctx, framework.WatchPodMetricsInput{
115115
GetLister: client,
116116
ClientSet: input.ClusterProxy.GetClientSet(),
117117
Deployment: deployment,
118-
MetricsPath: filepath.Join(input.LogFolder, "controllers"),
118+
MetricsPath: filepath.Join(input.LogFolder, "metrics", deployment.GetNamespace()),
119119
})
120120
}
121121
}
@@ -163,14 +163,14 @@ func UpgradeManagementClusterAndWait(ctx context.Context, input UpgradeManagemen
163163
GetLister: client,
164164
ClientSet: input.ClusterProxy.GetClientSet(),
165165
Deployment: deployment,
166-
LogPath: filepath.Join(input.LogFolder, "controllers"),
166+
LogPath: filepath.Join(input.LogFolder, "logs", deployment.GetNamespace()),
167167
})
168168

169169
framework.WatchPodMetrics(ctx, framework.WatchPodMetricsInput{
170170
GetLister: client,
171171
ClientSet: input.ClusterProxy.GetClientSet(),
172172
Deployment: deployment,
173-
MetricsPath: filepath.Join(input.LogFolder, "controllers"),
173+
MetricsPath: filepath.Join(input.LogFolder, "metrics", deployment.GetNamespace()),
174174
})
175175
}
176176
}

0 commit comments

Comments
 (0)