-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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 replicaset helper functions #804
Conversation
Update test names Fix names Update test YAML Update label
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.
Thanks for your contribution! LGTM other than the one nit about when to defer
. I think we can merge this in once that is addressed!
Separately, I kicked off a build so we get one test cycle in the meantime.
options := NewKubectlOptions("", "", uniqueID) | ||
configData := fmt.Sprintf(EXAMPLE_REPLICASET_YAML_TEMPLATE, uniqueID, uniqueID) | ||
KubectlApplyFromString(t, options, configData) | ||
defer KubectlDeleteFromString(t, options, configData) |
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: the delete defer should be before the apply, so that it always runs even if the apply fails with error (which could partially deploy things).
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.
FYI The kubernetes tests passed. Since the tests passed, and the issue mentioned above is very minor, I'll go ahead and merge this in (but would appreciate if you can address the above comment in a follow up PR!).
Awesome thanks! I'll put up PR for that fix here in a second |
Closes #793.
Thanks ahead of time for reviewing!