Skip to content
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

Add ability to override ports and IPs for source cluster. #53

Merged
merged 3 commits into from
Jun 26, 2024

Conversation

Miles-Garnsey
Copy link
Member

Fixes #50

Copy link
Contributor

@adejanovski adejanovski left a comment

Choose a reason for hiding this comment

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

I'd really like the flags to be self explanatory, so it would be great if you could apply my suggestion before merging.
Thanks!

cmd/kubectl-k8ssandra/register/command.go Outdated Show resolved Hide resolved
@Miles-Garnsey Miles-Garnsey merged commit 00b5fae into k8ssandra:main Jun 26, 2024
2 checks passed
SourceNamespace: cmd.Flag("source-namespace").Value.String(),
DestNamespace: cmd.Flag("dest-namespace").Value.String(),
ServiceAccount: cmd.Flag("serviceaccount-name").Value.String(),
OverrideSourceIP: cmd.Flag("override-src-ip").Value.String(),
Copy link
Collaborator

@burmanm burmanm Jul 15, 2024

Choose a reason for hiding this comment

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

issue: How is this supposed to work when there's no such flag registered in the RegisterClusterCmd? The register above says:

RegisterClusterCmd.Flags().String("oride-src-ip"

Thus, using the parameter name oride-src-ip and this one uses override-src-portto get the value?

Copy link
Member Author

Choose a reason for hiding this comment

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

Oops, looks like you're right indeed. I've pushed a fix here #56

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.

k8ssandra-client: Allow override of control plane IP address in registration command
3 participants