File tree 1 file changed +5
-2
lines changed
clusterloader2/pkg/prometheus 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -194,8 +194,11 @@ func (pc *PrometheusController) applyManifests(manifestGlob string) error {
194
194
195
195
// exposeAPIServerMetrics configures anonymous access to the apiserver metrics.
196
196
func (pc * PrometheusController ) exposeAPIServerMetrics () error {
197
- klog .Info ("Exposing kube-apiserver metrics in kubemark cluster" )
198
- // This has to be done in the kubemark cluster, thus we need to create a new client.
197
+ klog .Info ("Exposing kube-apiserver metrics in the cluster" )
198
+ // We need to get a client to the cluster where the test is being executed on,
199
+ // not the cluster that the prometheus is running in. Usually, there is only
200
+ // once cluster, but in case of kubemark we have two and thus we need to
201
+ // create a new client here.
199
202
clientSet , err := framework .NewMultiClientSet (
200
203
pc .clusterLoaderConfig .ClusterConfig .KubeConfigPath , numK8sClients )
201
204
if err != nil {
You can’t perform that action at this time.
0 commit comments