• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

qiniu / kube-ovn
26%

Build:
DEFAULT BRANCH: master
Repo Added 08 Dec 2025 06:14AM UTC
Token eZn0lkr6bEXaz8OBOQsFftVHeSle3skLw regen
Build 69 Last
Files 212
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH master
branch: SELECT
CHANGE BRANCH
x
Sync Branches
  • No branch selected
  • bgp-lb-eip
  • dependabot/github_actions/dot-github/workflows/aquasecurity/trivy-action-0.34.0
  • dependabot/go_modules/github.com/cert-manager/cert-manager-1.19.3
  • dependabot/go_modules/github.com/containerd/containerd/v2-2.2.4
  • dependabot/go_modules/github.com/containernetworking/plugins-1.9.0
  • dependabot/go_modules/github.com/moby/spdystream-0.5.1
  • dependabot/go_modules/github.com/osrg/gobgp/v4-4.5.0
  • dependabot/go_modules/go.opentelemetry.io/otel/sdk-1.40.0
  • dependabot/go_modules/go.opentelemetry.io/otel/sdk-1.43.0
  • dependabot/go_modules/google.golang.org/grpc-1.79.3
  • master
  • release-1.14
  • release-1.14.17-dev
  • release-1.15

30 May 2026 07:40AM UTC coverage: 25.647% (+0.9%) from 24.77%
26678429311

push

github

web-flow
fix(controller): skip in-pod cleanup when VPC NAT gateway CRD is deleted (#6784)

* fix(controller): skip EIP pod cleanup when VPC NAT gateway CRD is gone

When deleting an IptablesEIP, the controller calls deleteEipInPod and
delEipQoSInPod to clean up iptables/tc rules in the NAT gateway pod.
Previously, both functions checked only whether the pod existed: if the
pod was missing for any reason the call returned an error and the
reconciler retried indefinitely, causing the EIP to get stuck.

The correct sentinel is the VpcNatGateway CRD, not its pod:
- If the CRD is gone the gateway (and its pod) have been deleted; there
  is nothing to clean up, so return nil and let the EIP deletion proceed.
- If the CRD still exists but the pod is temporarily absent (e.g. being
  recreated), return the error so the reconciler retries until the pod
  is ready.

Signed-off-by: jimyag <git@jimyag.com>

* fix(controller): apply CRD-based sentinel to FIP/DNAT/SNAT pod cleanup

deleteFipInPod, deleteDnatInPod and deleteSnatInPod had the same pattern
inconsistency as the recently fixed EIP functions: they checked the pod
directly as the termination sentinel rather than the VpcNatGateway CRD.

Old behaviour: pod not found (regardless of CRD state) → return nil
               (skip cleanup silently even if gateway is being recreated)
New behaviour: CRD not found → return nil (gateway truly gone, nothing
               to clean up); CRD exists + pod not found → return error
               so the reconciler retries until the pod is ready.

This uses the natGwDeleted helper introduced for the EIP fix and applies
the same lower-verbosity klog.V(4) for transient pod-not-found events to
avoid noisy logs during rolling updates.

Signed-off-by: jimyag <git@jimyag.com>

* test(controller): add unit tests for natGwDeleted sentinel logic

Add unit tests covering the new CRD-first sentinel pattern introduced in
deleteEipInPod, delEipQoSInPod, deleteFipInPod, deleteDnatInPod, and
delete... (continued)

63 of 82 new or added lines in 2 files covered. (76.83%)

2935 existing lines in 34 files now uncovered.

14772 of 57597 relevant lines covered (25.65%)

0.3 hits per line

Relevant lines Covered
Build:
Build:
57597 RELEVANT LINES 14772 COVERED LINES
0.3 HITS PER LINE
Source Files on master
  • Tree
  • List 212
  • Changed 36
  • Source Changed 0
  • Coverage Changed 36
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
26678429311 master fix(controller): skip in-pod cleanup when VPC NAT gateway CRD is deleted (#6784) * fix(controller): skip EIP pod cleanup when VPC NAT gateway CRD is gone When deleting an IptablesEIP, the controller calls deleteEipInPod and delEipQoSInPod to cle... push 30 May 2026 08:01AM UTC web-flow github
25.65
26255710817 dependabot/go_modules/github.com/containerd/containerd/v2-2.2.4 chore(deps): bump github.com/containerd/containerd/v2 Bumps [github.com/containerd/containerd/v2](https://github.com/containerd/containerd) from 2.2.3 to 2.2.4. - [Release notes](https://github.com/containerd/containerd/releases) - [Changelog](ht... Pull #53 21 May 2026 10:06PM UTC web-flow github
24.77
25724121515 release-1.15 fix: use status variable instead of hardcoded ConditionTrue in loopOvn0Check (#6719) The alreadySet check hardcoded condition.Status == ConditionTrue, so when ping succeeded (status == ConditionFalse) the condition was never detected as already s... push 12 May 2026 09:00AM UTC changluyi github
23.76
25449360325 dependabot/go_modules/github.com/osrg/gobgp/v4-4.5.0 chore(deps): bump github.com/osrg/gobgp/v4 from 4.4.0 to 4.5.0 Bumps [github.com/osrg/gobgp/v4](https://github.com/osrg/gobgp) from 4.4.0 to 4.5.0. - [Release notes](https://github.com/osrg/gobgp/releases) - [Commits](https://github.com/osrg/gobg... Pull #49 06 May 2026 05:04PM UTC web-flow github
24.77
24711652188 master fix(deps): update module kubevirt.io/api to v1.8.2 (#6658) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> push 21 Apr 2026 08:22AM UTC web-flow github
24.77
24705523285 bgp-lb-eip feat(controller/speaker): add BGP LB EIP support via non-ovn subnet VIP 1. add new BGP LB VIP type in VIP CRD 2. allow LB svc use the annotation VIP 3. add e2e and ut Signed-off-by: zbb88888 <jmdxjsjgcxy@gmail.com> Pull #46 21 Apr 2026 05:24AM UTC zbb88888 github
24.77
24703429115 bgp-lb-eip fix(controller): promote bgpVipIndexName to package-level const and correct comment - Move bgpVipIndexName from function-scoped (Run) to package-level const so both controller.go (indexer registration) and vip.go (ByIndex call) reference the sa... Pull #46 21 Apr 2026 04:08AM UTC zbb88888 github
24.77
24702718461 bgp-lb-eip fix(test): update needReconcileBgpLbVipService test for NotFound behavior VIP NotFound now returns (false, nil) instead of (true, nil). The Service is re-enqueued via the bgpVipAnnotation indexer when the VIP gets its IP, so no spurious reconcile... Pull #46 21 Apr 2026 03:41AM UTC zbb88888 github
24.77
24701916200 bgp-lb-eip fix(test): update needReconcileBgpLbVipService test for NotFound behavior VIP NotFound now returns (false, nil) instead of (true, nil). The Service is re-enqueued via the bgpVipAnnotation indexer when the VIP gets its IP, so no spurious reconcile... Pull #46 21 Apr 2026 03:10AM UTC zbb88888 github
24.77
24676971530 bgp-lb-eip feat(controller/speaker): add BGP LB EIP support via IptablesEIP type=lbSvc - Extend IptablesEIP CRD with spec.type field; add IptablesEIPTypeLbSvc const - Add handleAddLbSvcEip: IPAM-only allocation, no NAT GW pod involved - Add --enable-bgp-lb-... Pull #46 20 Apr 2026 05:34PM UTC zbb88888 github
24.79
See All Builds (69)

Badge your Repo: kube-ovn

We detected this repo isn’t badged! Grab the embed code to the right, add it to your repo to show off your code coverage, and when the badge is live hit the refresh button to remove this message.

Could not find badge in README.

Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

Refresh
  • Settings
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc