Skip to content

Conversation

davidporter-id-au
Copy link
Member

@davidporter-id-au davidporter-id-au commented Oct 3, 2025

What changed?

This is changing the cli to update the cluster-attributes for active/active clusters. This allows domains to update the domain by passing in the format <cluster-attr>.<scope>:<name> ie: region.manilla:cluster0,region.newyork:cluster1'

Why?

How did you test it?

Potential risks

Release notes

Documentation Changes

Signed-off-by: David Porter <[email protected]>
@davidporter-id-au davidporter-id-au changed the title Cli refactor: refactor the domain / cli commands for active-active's cluster-attr Oct 3, 2025

if isActiveActiveDomain && len(activeClustersByRegion) == 0 {
return nil, commoncli.Problem("Option --active_clusters_by_region is required for active-active domain.", nil)
out.AttributeScopes[attribute].ClusterAttributes[scope] = types.ActiveClusterInfo{ActiveClusterName: name}
Copy link
Member

Choose a reason for hiding this comment

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

we might check duplication and return an error here

Copy link
Member Author

Choose a reason for hiding this comment

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

yeah, I think my impl is a bit loose. let me add a bit more validation

Signed-off-by: David Porter <[email protected]>
Signed-off-by: David Porter <[email protected]>
Signed-off-by: David Porter <[email protected]>
Signed-off-by: David Porter <[email protected]>
FailoverInfo *FailoverInfo `json:"failoverInfo,omitempty"`
}

func (v *DomainReplicationConfiguration) GetActiveClusters() (o *ActiveClusters) {
Copy link
Member Author

Choose a reason for hiding this comment

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

this is not new, it's just shuffled from below due to my removing and then re-adding it. Happy to put it back in it's previous spot if necessary


activeClusterName := ""
if c.IsSet(FlagActiveClusterName) {
if isActiveActiveDomain {
Copy link
Member Author

Choose a reason for hiding this comment

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

i.. am not actually sure what the behaviour here should be

@davidporter-id-au davidporter-id-au merged commit 1270692 into cadence-workflow:master Oct 7, 2025
55 of 56 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