Skip to content

Make clusterGroup.isHubCluster optional - #2

Merged
mbaldessari merged 1 commit into
validatedpatterns:mainfrom
mbaldessari:ishubcluster
Jan 19, 2026
Merged

Make clusterGroup.isHubCluster optional#2
mbaldessari merged 1 commit into
validatedpatterns:mainfrom
mbaldessari:ishubcluster

Conversation

@mbaldessari

Copy link
Copy Markdown
Contributor

We can figure out if a node is the hub or not by omparing
global.localClusterDomain and global.hubClusterDomain. If those are the
same we're on the hub, if they are not we're not on the hub.

Keep supporting the clusterGroup.isHubCluster variable with precedence
in order to not break any existing pattern.

Tested on 4.19 and 4.20 with mcg hub/spoke

We can figure out if a node is the hub or not by omparing
global.localClusterDomain and global.hubClusterDomain. If those are the
same we're on the hub, if they are not we're not on the hub.

Keep supporting the clusterGroup.isHubCluster variable with precedence
in order to not break any existing pattern.

Tested on 4.19 and 4.20 with mcg hub/spoke

@dminnear-rh dminnear-rh left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@mbaldessari
mbaldessari merged commit e21b07c into validatedpatterns:main Jan 19, 2026
2 of 3 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.

2 participants