deckhouse / virtualization

Virtualization module for Deckhouse Kubernetes Platform
https://deckhouse.io/modules/virtualization/stable/
Other
25 stars 1 forks source link

feat(vm,vmclass): sizingPolicy compatibility validation #359

Closed eofff closed 1 month ago

eofff commented 1 month ago

Description

Add VirtualMachine webhook to validate sizingPolicy compatibility

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

The VirtualMachine resource settings (cpu/memory) must match the specified sizing policy

What is the expected result?

Creating or upgrading a VirtualMachine that does not matched with the sizing policy will not be allowed.

Checklist