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(controller/subnet): controller crashes on subnets if gateway is u… #4848

Merged
merged 1 commit into from
Dec 24, 2024

Conversation

SkalaNetworks
Copy link
Contributor

This PR references #4841

…nspecified and netpol are disabled

Signed-off-by: SkalaNetworks <[email protected]>
@dosubot dosubot bot added size:S This PR changes 10-29 lines, ignoring generated files. bug Something isn't working labels Dec 18, 2024
@coveralls
Copy link

Pull Request Test Coverage Report for Build 12389891825

Details

  • 0 of 10 (0.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 22.127%

Changes Missing Coverage Covered Lines Changed/Added Lines %
pkg/controller/subnet.go 0 10 0.0%
Totals Coverage Status
Change from base Build 12388778837: 0.0%
Covered Lines: 10164
Relevant Lines: 45935

💛 - Coveralls

for _, np := range policies {
c.enqueueAddNp(np)
// Trigger network policy refresh only if they are enabled, otherwise the lister will be nil
if c.npsLister != nil {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how about using ?

if c.npsLister == nil {
log
return
}

@oilbeater oilbeater merged commit bf52400 into kubeovn:master Dec 24, 2024
67 of 68 checks passed
oilbeater pushed a commit that referenced this pull request Dec 24, 2024
…nspecified and netpol are disabled (#4848)

Signed-off-by: SkalaNetworks <[email protected]>
oilbeater pushed a commit that referenced this pull request Dec 24, 2024
…nspecified and netpol are disabled (#4848)

Signed-off-by: SkalaNetworks <[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 need backport size:S This PR changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants