-
Notifications
You must be signed in to change notification settings - Fork 128
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
Provide minimal test for whereabouts, along with successful vendor of the net-attach-def client for k8s 1.22 #197
Provide minimal test for whereabouts, along with successful vendor of the net-attach-def client for k8s 1.22 #197
Conversation
e84a760
to
13794f7
Compare
Pull Request Test Coverage Report for Build 1910049182
💛 - Coveralls |
f743322
to
a11cacb
Compare
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 added a few questions and also changes I'd like to see. Feedback on my feedback welcome :) Overall looks great!
8953a49
to
4af5833
Compare
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, @dougbtv can you give this a pass when you get a chance as well?
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 solid LGTM. Seems like you guys got this squeaky clean before the submission.
pkg/config/config.go
Outdated
if n.CNIVersion == v { | ||
return fmt.Errorf("CNI version %v does not support more than 1 address per family", n.CNIVersion) | ||
} | ||
if isSupportedVersion, _ := version.GreaterThanOrEqualTo(n.CNIVersion, minimumSupportedVersion); !isSupportedVersion { |
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.
Much nicer!
|
||
// WaitForPodBySelector waits up to timeout seconds for all pods in 'namespace' with given 'selector' to enter provided state | ||
// If no pods are found, return nil. | ||
func WaitForPodBySelector(cs *kubernetes.Clientset, namespace, selector string, timeout int) error { |
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.
Do we call this anywhere? We don't have to remove it, totally ok to have, just making sure I'm reading it correctly.
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.
Good catch! This was left in as part of the more complex e2e test that I'm working on. We can keep it in if it's not a big deal since it will get used eventually, but I'm okay with removing it, too.
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.
No prob at all. Let's keep it!
b0210d4
to
e94f447
Compare
Signed-off-by: Miguel Duarte Barroso <[email protected]>
Signed-off-by: nicklesimba <[email protected]>
Signed-off-by: Miguel Duarte Barroso <[email protected]>
Pass the path to the kubeconfig, and cleanup some variables that are not in use. Also, ensure that the e2e tests are not executed when the `hack/test-go.sh` script is executed - that is for the unit tests only. Signed-off-by: Miguel Duarte Barroso <[email protected]>
This commit is an effort at improving the code readability, while preserving its functionality. It does: - provide properly scoped variables - adds some helper functions to improve readability - removes `Expect`ations from the helper functions - remove redundant comments - they're just one more thing to maintain - use receiver functions when appropriate (aka methods) Signed-off-by: Miguel Duarte Barroso <[email protected]>
e94f447
to
9b0d073
Compare
Worked on top of PR #196.