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

perf: only cache virt-launcher pods #13

Merged
merged 1 commit into from
May 27, 2024
Merged

Conversation

maiqueb
Copy link
Collaborator

@maiqueb maiqueb commented May 23, 2024

All virt-launcher pods have this label, as can be seen in the virt-controller templating code: [0].

By only caching these pods, our controller will use a lot less memory.

[0] - https://github.com/kubevirt/kubevirt/blob/913c158a951736c1c9a5054a102680996ff07440/pkg/virt-controller/services/template.go#L1509

All virt-launcher pods have this label, as can be seen in the
virt-controller templating code: [0].

By only caching these pods, our controller will use a lot less memory.

[0] - https://github.com/kubevirt/kubevirt/blob/913c158a951736c1c9a5054a102680996ff07440/pkg/virt-controller/services/template.go#L1509

Signed-off-by: Miguel Duarte Barroso <[email protected]>
@maiqueb maiqueb merged commit fcc9c09 into main May 27, 2024
1 check passed
@maiqueb maiqueb deleted the only-have-launcher-pods-cached branch May 27, 2024 14:17
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.

1 participant