-
Notifications
You must be signed in to change notification settings - Fork 859
refactor: refactor the domain / cli commands for active-active's cluster-attr #7299
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: refactor the domain / cli commands for active-active's cluster-attr #7299
Conversation
Signed-off-by: David Porter <[email protected]>
|
||
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} |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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) { |
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
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
1270692
into
cadence-workflow:master
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