Pass account name to comply to VM creation admission control.
VMI admitter needs the account name in order to restrict
VMI creation with kubevirt.io labels
@@ -140,7 +140,7 @@ func main() {
// Having no generics is lots of fun
for name, obj := range vms {
- causes := validating_webhook.ValidateVirtualMachineSpec(k8sfield.NewPath("spec"), &obj.Spec, config)
+ causes := validating_webhook.ValidateVirtualMachineSpec(k8sfield.NewPath("spec"), &obj.Spec, config, "user-account")
handleCauses(causes, name, "vm")
handleError(dumpObject(name, *obj))
}
