-
Bug
-
Resolution: Done
-
Normal
-
None
-
4.13, 4.12, 4.14, 4.15, 4.16, 4.17, 4.18
-
None
-
Quality / Stability / Reliability
-
False
-
-
2
-
Important
-
None
-
None
-
None
-
None
-
OSDOCS Sprint 269
-
1
-
None
-
None
-
None
-
None
-
None
-
None
-
None
Description of problem:
The docs talking about VerticalPodAutoscaler .spec.updatePolicy.updateMode list a number of options for the value that are all listed in lower case. However, using the lower case value will result in an error. This appears to be confirmed by the upstream const definitions shown here: https://github.com/kubernetes/autoscaler/blob/master/vertical-pod-autoscaler/pkg/apis/autoscaling.k8s.io/v1/types.go#L157-L174
Version-Release number of selected component (if applicable):
OCP 4.12 - Current. Also appears as far back as 4.5
How reproducible:
Always
Steps to Reproduce:
Create a VPA as apiVersion: autoscaling.k8s.io/v1 kind: VerticalPodAutoscaler metadata: name: vpa-recommnender spec: targetRef: apiVersion: "apps/v1" kind: DaemonSet name: datadog updatePolicy: updateMode: "off"
Actual results:
Error from server: error when creating "dd-vpa.yam": admission webhook "vpa.k8s.io" denied the request: unexpected UpdateMode value off
Expected results:
vertical pod autoscaler to be created as implied by the docs.
Additional info:
changing "off" to "Off" produces the expected result