[Flaking-Test] VPA - test/e2e/v1/admission_controller.go
Author: irbekrmCreated Sep 3, 2026Updated Sep 14, 2026
Labelsarea/vertical-pod-autoscalerneeds-triage
The 'accepts valid and rejects invalid VPA object' test here flaked:
[38;5;9m[FAILED] Admission controller did not inspect the object
Expected
<string>: VerticalPodAutoscaler.autoscaling.k8s.io "cert-vpa-invalid" is invalid: [spec.resourcePolicy.containerPolicies[0].minAllowed.requests: Invalid value: "object": spec.resourcePolicy.containerPolicies[0].minAllowed.requests in body must be of type integer,string: "object", <nil>: Invalid value: "": "spec.resourcePolicy.containerPolicies[0].minAllowed.requests" must validate at least one schema (anyOf), spec.resourcePolicy.containerPolicies[0].minAllowed.requests: Invalid value: "object": spec.resourcePolicy.containerPolicies[0].minAllowed.requests in body must be of type integer: "object", <nil>: Invalid value: null: some validation rules were not checked because the object was invalid; correct the existing errors to complete validation]
to match regular expression
<string>: .*admission webhook .*vpa.* denied the request: for an unrelated PR https://github.com/kubernetes/autoscaler/pull/10175 and succeeded on the next run.
It seems that in this case the webhook validation was not hit and the error was returned from the API server?
Source: kubernetes/autoscaler