Skip to content

Conversation

@davidporter-id-au
Copy link
Member

@davidporter-id-au davidporter-id-au commented Nov 10, 2025

What changed?

it's annoying to manually write a high volume of cluster attributes, so adding via JSON

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 JSON input cluster-attributes - JSON input Nov 10, 2025
@davidporter-id-au davidporter-id-au marked this pull request as ready for review November 10, 2025 22:28
@davidporter-id-au davidporter-id-au changed the title cluster-attributes - JSON input feat: cluster-attributes - JSON input Nov 10, 2025
expected types.ActiveClusters
expectedError error
}{
"valid JSON": {
Copy link
Member

Choose a reason for hiding this comment

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

nit: I would expect another test for invalid json

}

if !c.IsSet(FlagActiveClusterName) && !c.IsSet(FlagActiveClusters) && !c.IsSet(FlagActiveClustersJSON) {
return commoncli.Problem("At least one of the flags --active-cluster-name or --active-clusters must be provided.", nil)
Copy link
Member

Choose a reason for hiding this comment

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

update message to include the new json option

Copy link
Member Author

Choose a reason for hiding this comment

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

oof, these flags are all wrong 🤦

Signed-off-by: David Porter <[email protected]>
@davidporter-id-au davidporter-id-au enabled auto-merge (squash) November 12, 2025 21:54
@davidporter-id-au davidporter-id-au merged commit 8c3a7b2 into cadence-workflow:master Nov 12, 2025
42 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