-
Notifications
You must be signed in to change notification settings - Fork 869
feat: adds cluster-attributes to start cli command #7494
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -226,6 +226,8 @@ const ( | |
| FlagNumReadPartitions = "num_read_partitions" | ||
| FlagNumWritePartitions = "num_write_partitions" | ||
| FlagCronOverlapPolicy = "cron_overlap_policy" | ||
| FlagClusterAttributeScope = "cluster_attribute_scope" | ||
| FlagClusterAttributeName = "cluster_attribute_name" | ||
|
|
||
| FlagClustersUsage = "Clusters (example: --clusters clusterA,clusterB or --cl clusterA --cl clusterB)" | ||
| ) | ||
|
|
@@ -445,6 +447,16 @@ func getFlagsForStart() []cli.Flag { | |
| Name: FirstRunAtTime, | ||
| Usage: "Optional workflow's first run start time in RFC3339 format, like \"1970-01-01T00:00:00Z\". If set, first run of the workflow will start at the specified time.", | ||
| }, | ||
| &cli.StringFlag{ | ||
| Name: FlagClusterAttributeScope, | ||
| Usage: "Optional cluster attribute to specify how to select the active cluster. Examples might be 'region' or 'location'", | ||
| Aliases: []string{"cascope"}, | ||
| }, | ||
| &cli.StringFlag{ | ||
| Name: FlagClusterAttributeName, | ||
| Usage: "Optional cluster attribute to be set for the workflow, used to determine, in active-active domains. This specifies which attribute to tie the workflow to, for example, if the scope is 'region' and the name is 'Lisbon' or 'San Francisco'", | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. NIT: As the command will fail if one of these two isn't specified I'd recommend adding something like NIT: I think rephrasing to remove some commas is possible, e.g:
(This doesn't actually reduce the number of commas but I think is more clear 😅 ). |
||
| Aliases: []string{"caname"}, | ||
| }, | ||
| } | ||
| } | ||
|
|
||
|
|
||
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.
NIT: As the command will fail if one of these two isn't specified I'd recommend adding something like