File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
src/main/java/cd/go/contrib/elasticagent Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -54,4 +54,8 @@ private KubernetesClient createClientFor(PluginSettings pluginSettings) {
54
54
55
55
return new DefaultKubernetesClient (configBuilder .build ());
56
56
}
57
- }
57
+
58
+ public void clearOutExistingClient () {
59
+ this .client = null ;
60
+ }
61
+ }
Original file line number Diff line number Diff line change @@ -96,6 +96,7 @@ public GoPluginApiResponse handle(GoPluginApiRequest request) {
96
96
case REQUEST_CLUSTER_STATUS_REPORT :
97
97
ClusterStatusReportRequest clusterStatusReportRequest = ClusterStatusReportRequest .fromJSON (request .requestBody ());
98
98
clusterProfileProperties = clusterStatusReportRequest .clusterProfileProperties ();
99
+ KubernetesClientFactory .instance ().clearOutExistingClient ();
99
100
refreshInstancesForCluster (clusterProfileProperties );
100
101
return clusterStatusReportRequest .executor ().execute ();
101
102
case REQUEST_ELASTIC_AGENT_STATUS_REPORT :
You can’t perform that action at this time.
0 commit comments