Skip to content

Commit df0fe04

Browse files
committed
fix: explicit clusterproviderstrategy is now recommended, instead of advisable
Signed-off-by: Calum Murray <[email protected]>
1 parent aa8f458 commit df0fe04

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/kubernetes-mcp-server/cmd/root.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ func (m *MCPServerOptions) Run() error {
290290

291291
strategy := m.StaticConfig.ClusterProviderStrategy
292292
if strategy == "" {
293-
strategy = "auto-detect (it is advisable to set this explicitly in your Config)"
293+
strategy = "auto-detect (it is recommended to set this explicitly in your Config)"
294294
}
295295

296296
klog.V(1).Infof(" - ClusterProviderStrategy: %s", strategy)

pkg/kubernetes-mcp-server/cmd/root_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ func TestDisableMultiCluster(t *testing.T) {
282282
ioStreams, out := testStream()
283283
rootCmd := NewMCPServer(ioStreams)
284284
rootCmd.SetArgs([]string{"--version", "--port=1337", "--log-level=1"})
285-
if err := rootCmd.Execute(); !strings.Contains(out.String(), " - ClusterProviderStrategy: auto-detect (it is advisable to set this explicitly in your Config)") {
285+
if err := rootCmd.Execute(); !strings.Contains(out.String(), " - ClusterProviderStrategy: auto-detect (it is recommended to set this explicitly in your Config)") {
286286
t.Fatalf("Expected ClusterProviderStrategy kubeconfig, got %s %v", out, err)
287287
}
288288
})

0 commit comments

Comments
 (0)