File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/main/java/cd/go/contrib/elasticagent Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 17
17
package cd .go .contrib .elasticagent ;
18
18
19
19
import io .fabric8 .kubernetes .client .ConfigBuilder ;
20
- import io .fabric8 .kubernetes .client .DefaultKubernetesClient ;
21
20
import io .fabric8 .kubernetes .client .KubernetesClient ;
21
+ import io .fabric8 .kubernetes .client .KubernetesClientBuilder ;
22
22
23
23
import java .util .concurrent .TimeUnit ;
24
24
@@ -80,7 +80,7 @@ private KubernetesClient createClientFor(PluginSettings pluginSettings) {
80
80
.withCaCertData (pluginSettings .getCaCertData ())
81
81
.withNamespace (pluginSettings .getNamespace ());
82
82
83
- return new DefaultKubernetesClient ( configBuilder .build ());
83
+ return new KubernetesClientBuilder (). withConfig ( configBuilder .build ()). build ( );
84
84
}
85
85
86
86
public void clearOutExistingClient () {
You can’t perform that action at this time.
0 commit comments