-
Notifications
You must be signed in to change notification settings - Fork 456
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
fix issue 4803: The two names should have a containment relationship #4807
Conversation
Signed-off-by: liwenjian <[email protected]>
Pull Request Test Coverage Report for Build 12248656302Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
pkg/webhook/static_ip.go
Outdated
if name == ipCR.Spec.PodName { | ||
// The IP's spec podName does not equal the Pod name in the request; | ||
// The two names have a containment relationship. | ||
if strings.Contains(ipCR.Spec.PodName, name) { |
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.
We need to check ipCR.Spec.PodType
first to make sure it's a vm type.
Signed-off-by: liwenjian <[email protected]>
Thanks! @QEDQCD |
…4807) * fix issue 4803: The two names should have a containment relationship Signed-off-by: liwenjian <[email protected]> * fix issue 4803: The two names should have a containment relationship Signed-off-by: liwenjian <[email protected]> --------- Signed-off-by: liwenjian <[email protected]> Co-authored-by: liwenjian <[email protected]>
Pull Request
What type of this PR
Examples of user facing changes:
Which issue(s) this PR fixes
Fixes #(4803)