Skip to content

Backport: chore(vm): memory limits on Pod for namespaces with quotas (#2309)#2326

Merged
diafour merged 1 commit into
release-1.8from
chore/vm/fix-memory-auto-limits-when-resource-quotas-present-backport
May 6, 2026
Merged

Backport: chore(vm): memory limits on Pod for namespaces with quotas (#2309)#2326
diafour merged 1 commit into
release-1.8from
chore/vm/fix-memory-auto-limits-when-resource-quotas-present-backport

Conversation

@diafour
Copy link
Copy Markdown
Member

@diafour diafour commented May 6, 2026

Description

  • Calculate discount quota from Pod limits.
  • Update 3p-kubevirt to fix regressions: 1) Set proper memory limits when namespace has quotas. 2) Add 60Mi extra to memory limits when cores fraction is specified.

See:

Why do we need it, and what problem does it solve?

Fix regression: kubevirt set increased memory limits after enabling memory hotplug in #2110.

What is the expected result?

Checklist

  • The code is covered by unit tests.
  • e2e tests passed.
  • Documentation updated according to the changes.
  • Changes were tested in the Kubernetes cluster manually.

Changelog entries

section: vm
type: fix
summary: Proper calculation for discount quota from Pod limits. 

…2309)

- Calculate discount quota from Pod limits.
- Update 3p-kubevirt to fix regressions:
 1) Set proper memory limits when namespace has quotas.
 2) Add 60Mi extra to memory limits when cores fraction is specified.

Signed-off-by: Ivan Mikheykin <ivan.mikheykin@flant.com>
@diafour diafour self-assigned this May 6, 2026
@diafour diafour marked this pull request as ready for review May 6, 2026 13:48
@diafour diafour merged commit 80f4477 into release-1.8 May 6, 2026
26 of 29 checks passed
@diafour diafour deleted the chore/vm/fix-memory-auto-limits-when-resource-quotas-present-backport branch May 6, 2026 13:57
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.

2 participants