@@ -107,15 +107,15 @@ func InitManagementClusterAndWatchControllerLogs(ctx context.Context, input Init
107
107
GetLister : client ,
108
108
ClientSet : input .ClusterProxy .GetClientSet (),
109
109
Deployment : deployment ,
110
- LogPath : filepath .Join (input .LogFolder , "controllers" ),
110
+ LogPath : filepath .Join (input .LogFolder , "logs" , deployment . GetNamespace () ),
111
111
})
112
112
113
113
if ! input .DisableMetricsCollection {
114
114
framework .WatchPodMetrics (ctx , framework.WatchPodMetricsInput {
115
115
GetLister : client ,
116
116
ClientSet : input .ClusterProxy .GetClientSet (),
117
117
Deployment : deployment ,
118
- MetricsPath : filepath .Join (input .LogFolder , "controllers" ),
118
+ MetricsPath : filepath .Join (input .LogFolder , "metrics" , deployment . GetNamespace () ),
119
119
})
120
120
}
121
121
}
@@ -163,14 +163,14 @@ func UpgradeManagementClusterAndWait(ctx context.Context, input UpgradeManagemen
163
163
GetLister : client ,
164
164
ClientSet : input .ClusterProxy .GetClientSet (),
165
165
Deployment : deployment ,
166
- LogPath : filepath .Join (input .LogFolder , "controllers" ),
166
+ LogPath : filepath .Join (input .LogFolder , "logs" , deployment . GetNamespace () ),
167
167
})
168
168
169
169
framework .WatchPodMetrics (ctx , framework.WatchPodMetricsInput {
170
170
GetLister : client ,
171
171
ClientSet : input .ClusterProxy .GetClientSet (),
172
172
Deployment : deployment ,
173
- MetricsPath : filepath .Join (input .LogFolder , "controllers" ),
173
+ MetricsPath : filepath .Join (input .LogFolder , "metrics" , deployment . GetNamespace () ),
174
174
})
175
175
}
176
176
}
0 commit comments