-
Notifications
You must be signed in to change notification settings - Fork 88
add vtbackup extraflags support #720
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
Conversation
2a84146 to
2008e1e
Compare
frouioui
left a comment
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 a good start, thank you. Could you add a test for this please?
2008e1e to
89242c4
Compare
I added a test. Not a lot of examples to work with, and also wasn't really able to execute on my laptop, so hopefully it works well. I may have to work on an alternate development / test environment if it has issues. Resolved comments. Made things a bit cleaner. Thank you. |
mattlord
left a comment
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.
LGTM! Just a couple of tiny nits/suggestions. @jdoupe can you please merge in origin/main? I think the tests might then pass.
| if !strings.Contains(joined, "--foo=bar") { | ||
| f.Fatalf("vtbackup args missing --foo=bar: %v", args) | ||
| } | ||
| if !strings.Contains(joined, "--baz=qux") { | ||
| f.Fatalf("vtbackup args missing --baz=qux: %v", args) | ||
| } |
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.
| if !strings.Contains(joined, "--foo=bar") { | |
| f.Fatalf("vtbackup args missing --foo=bar: %v", args) | |
| } | |
| if !strings.Contains(joined, "--baz=qux") { | |
| f.Fatalf("vtbackup args missing --baz=qux: %v", args) | |
| } | |
| require.Contains(t, joined, "--foo=bar", "vtbackup args missing --foo=bar: %v", args) | |
| require.Contains(t, joined, "--baz=qux", "vtbackup args missing --baz=qux: %v", args) |
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 blindly updated this, however, I'll note that "require" is currently only also used in test/integration/framework/fixture.go. The strings form I used originally is used elsewhere.
Am I to assume this is just the direction you want to move, and thus the suggested change?
a0d1816 to
da9317f
Compare
Rebased instead... just to be sure. |
Signed-off-by: Jeremy Doupe <[email protected]>
da9317f to
f9b8dc4
Compare
|
@jdoupe it looks like the test is failing. Reach out to me in the Vitess Slack and I'll be happy to walk through how you can run the tests locally to see what's failing and why. |
Signed-off-by: Jeremy Doupe <[email protected]>
2d024ff to
3b2dd63
Compare
mattlord
left a comment
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.
LGTM! Thanks, @jdoupe !
I'm curious if you've also done any local testing with Minikube or anything as well? It's worth doing IMO: https://vitess.io/docs/24.0/get-started/operator/
But not required.
I have! And I'm also running this in production on two small clusters. (patched version of v2.15.1) |
Addresses #719