Skip to content

Conversation

Cali0707
Copy link
Contributor

@Cali0707 Cali0707 commented Oct 6, 2025

This PR builds on top of #348 to allow for a "disabled" strategy, as well as a command line flag for disabling the multi cluster support.

To disable multi-cluster, users can start the server with:

./kubernetes-mcp-server --port 8080 --disable-multi-cluster

Relates to #83

Signed-off-by: Calum Murray <cmurray@redhat.com>
Signed-off-by: Calum Murray <cmurray@redhat.com>
Signed-off-by: Calum Murray <cmurray@redhat.com>
Signed-off-by: Calum Murray <cmurray@redhat.com>
Signed-off-by: Calum Murray <cmurray@redhat.com>
)

const (
flagVersion = "version"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these are nice, but I'd have perhaps done this in a separate PR before. Like a "pre factoring".

But since the change is small, this is adding not too much noise. Just as a general statement


strategy := m.StaticConfig.ClusterProviderStrategy
if strategy == "" {
strategy = "auto-detect (it is advisable to set this explicitly in your Config)"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

advisable? or recommended?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO this should be at most recommended.

@Cali0707 Cali0707 requested review from manusa and matzew October 7, 2025 20:12
…advisable

Signed-off-by: Calum Murray <cmurray@redhat.com>
@Cali0707 Cali0707 force-pushed the disabled-multi-cluster-strategy branch from 823d46c to df0fe04 Compare October 7, 2025 20:32
@matzew
Copy link
Contributor

matzew commented Oct 8, 2025

LGTM

thanks for changing to recommended!

Copy link
Member

@manusa manusa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thx!

@manusa manusa added this to the 0.1.0 milestone Oct 8, 2025
@manusa manusa merged commit a056981 into containers:main Oct 8, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants