Skip to content

Comments

[release-0.49] Optimize init map#556

Merged
kubevirt-bot merged 3 commits intok8snetworkplumbingwg:release-0.49from
kubevirt-bot:cherry-pick-555-to-release-0.49
Aug 5, 2025
Merged

[release-0.49] Optimize init map#556
kubevirt-bot merged 3 commits intok8snetworkplumbingwg:release-0.49from
kubevirt-bot:cherry-pick-555-to-release-0.49

Conversation

@kubevirt-bot
Copy link
Collaborator

This is an automated cherry-pick of #555

/assign RamLavi

NONE

RamLavi added 3 commits August 5, 2025 12:38
Currently kubemacpool scans all pods cluster-wide and performs expensive
IsPodManaged() checks for each pod during startup. This causes slow
initialization in large clusters with many unmanaged namespaces.

Pre-compute managed namespaces once per webhook type and only scan pods
from those namespaces, eliminating redundant API calls and reducing
startup time.

Signed-off-by: Ram Lavi <ralavi@redhat.com>
Currently kubemacpool scans all VMs cluster-wide and performs expensive
IsVMManaged() checks for each VM during startup. This causes slow
initialization in large clusters with many unmanaged namespaces.

Pre-compute managed namespaces once per webhook type and only scan VMs
from those namespaces, eliminating redundant API calls and reducing
startup time.

Signed-off-by: Ram Lavi <ralavi@redhat.com>
To anticipate big clusters with 10K VMs, increasing the readiness probe
settle time to 3m.

Signed-off-by: Ram Lavi <ralavi@redhat.com>
@qinqon
Copy link
Member

qinqon commented Aug 5, 2025

/lgtm
/approve

@kubevirt-bot
Copy link
Collaborator Author

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: qinqon

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kubevirt-bot kubevirt-bot merged commit 3b702ac into k8snetworkplumbingwg:release-0.49 Aug 5, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants