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

fix issue 4803: The two names should have a containment relationship #4807

Merged
merged 2 commits into from
Dec 10, 2024

Conversation

QEDQCD
Copy link
Contributor

@QEDQCD QEDQCD commented Dec 9, 2024

Pull Request

What type of this PR

Examples of user facing changes:

  • Bug fixes

Which issue(s) this PR fixes

Fixes #(4803)

@dosubot dosubot bot added size:XS This PR changes 0-9 lines, ignoring generated files. bug Something isn't working labels Dec 9, 2024
@coveralls
Copy link

coveralls commented Dec 10, 2024

Pull Request Test Coverage Report for Build 12248656302

Warning: 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

  • 0 of 3 (0.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.001%) to 18.674%

Changes Missing Coverage Covered Lines Changed/Added Lines %
pkg/webhook/static_ip.go 0 3 0.0%
Totals Coverage Status
Change from base Build 12195383681: -0.001%
Covered Lines: 8682
Relevant Lines: 46492

💛 - Coveralls

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) {
Copy link
Collaborator

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.

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Dec 10, 2024
@oilbeater oilbeater merged commit ac81ac2 into kubeovn:master Dec 10, 2024
67 of 68 checks passed
@oilbeater
Copy link
Collaborator

Thanks! @QEDQCD

zhangzujian pushed a commit that referenced this pull request Dec 11, 2024
…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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working lgtm This PR has been approved by a maintainer size:XS This PR changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants