Skip to content

add hidden 'get join-command' command for embedded-cluster #5280

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

Merged

Conversation

laverya
Copy link
Member

@laverya laverya commented Apr 16, 2025

What this PR does / why we need it:

Which issue(s) this PR fixes:

Does this PR require a test?

Does this PR require a release note?


Does this PR require documentation?

@laverya laverya added the type::feature New feature or request label Apr 16, 2025
laverya added 2 commits April 16, 2025 17:22
check error codes, test error code handling in both requests
@laverya laverya force-pushed the laverya/sc-122071/be-able-to-automate-joining-nodes-if-you branch from 606f44c to cba3dab Compare April 16, 2025 23:31
@laverya laverya marked this pull request as ready for review April 17, 2025 00:47
@laverya laverya enabled auto-merge (squash) April 17, 2025 00:51
if err != nil {
return err
}
fmt.Println(joinCmd)
Copy link
Member

Choose a reason for hiding this comment

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

i think we should also support a -ojson output as people will want to use this command mostly in ci

Copy link
Member Author

Choose a reason for hiding this comment

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

done

},
}

cmd.Flags().StringVarP(&format, "output", "o", "string", "Output format. One of: string, json")
Copy link
Member

Choose a reason for hiding this comment

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

sorry, but to be consistent with other commands, we should use "" instead of string

Copy link
Member Author

Choose a reason for hiding this comment

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

okay - so "" or string gets string output, json gets json output?

Copy link
Member

Choose a reason for hiding this comment

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

no need for string at all IMO

Copy link
Member Author

Choose a reason for hiding this comment

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

updated again

@laverya laverya merged commit 3122016 into main Apr 17, 2025
94 checks passed
@laverya laverya deleted the laverya/sc-122071/be-able-to-automate-joining-nodes-if-you branch April 17, 2025 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type::feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants