Skip to content

fix(webhook): stop attaching an instance's first interface twice - #29

Merged
scotwells merged 1 commit into
mainfrom
fix/pod-webhook-duplicate-default-network
Sep 18, 2026
Merged

scotwells merged 1 commit into
mainfrom
fix/pod-webhook-duplicate-default-network

Conversation

@scotwells

Copy link
Copy Markdown
Collaborator

Pods with injected interfaces no longer get their first interface attached twice. The webhook named it in v1.multus-cni.io/default-network and also listed it in k8s.v1.cni.cncf.io/networks, so Multus attached the same NAD as eth0 and net1 with the same IP, and paid a second galactic ADD (~0.25s per pod on the staging Kata node).

Closes #28

  • k8s.v1.cni.cncf.io/networks now carries only the instance's remaining interfaces, plus anything the Pod already asked for. A single-interface instance gets no networks annotation.
  • Any existing entry naming the default network is dropped from that list.

🤖 Generated with Claude Code

https://claude.ai/code/session_01SYmkahHLMsqf3f8DYcsRaQ

The pod webhook set v1.multus-cni.io/default-network to the first
interface and also listed it in k8s.v1.cni.cncf.io/networks, so Multus
attached the same NAD as eth0 and net1. Only the remaining interfaces
are now listed, and the networks annotation is omitted when there are
none.

Closes #28

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SYmkahHLMsqf3f8DYcsRaQ
@scotwells
scotwells requested a review from a team as a code owner September 18, 2026 21:23
@scotwells
scotwells merged commit 260f797 into main Sep 18, 2026
8 checks passed
@scotwells
scotwells deleted the fix/pod-webhook-duplicate-default-network branch September 18, 2026 21:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Instances get their VPC interface attached twice

2 participants