Skip to content

Commit

Permalink
related to namespace changes, we don't want to usage a configbuilder
Browse files Browse the repository at this point in the history
as that could clobber an openshift configuration
  • Loading branch information
shawkins committed Mar 3, 2022
1 parent 9e5d116 commit 0ca1325
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
import io.fabric8.kubernetes.api.model.metrics.v1beta1.PodMetrics;
import io.fabric8.kubernetes.api.model.metrics.v1beta1.PodMetricsList;
import io.fabric8.kubernetes.client.ClientContext;
import io.fabric8.kubernetes.client.ConfigBuilder;
import io.fabric8.kubernetes.client.dsl.PodMetricOperation;

import java.util.Map;
Expand All @@ -27,9 +26,7 @@ public class PodMetricOperationsImpl extends MetricOperationsImpl<PodMetrics, Po

public PodMetricOperationsImpl(ClientContext clientContext) {
// default to any namespace
this(HasMetadataOperationsImpl.defaultContext(clientContext)
.withConfig(new ConfigBuilder(clientContext.getConfiguration()).withNamespace(null).build())
.withNamespace(null));
this(HasMetadataOperationsImpl.defaultContext(clientContext).withNamespace(null));
}

public PodMetricOperationsImpl(OperationContext context) {
Expand Down

0 comments on commit 0ca1325

Please sign in to comment.