Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-54694

VPA updateMode values show lower cased options which won't work in cluster

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Normal Normal
    • None
    • 4.13, 4.12, 4.14, 4.15, 4.16, 4.17, 4.18
    • Documentation / Node
    • None
    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • 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
      
      

              ocp-docs-bot OCP DocsBot
              rhn-gps-cdouglas Charles (Chuck) Douglas
              None
              None
              Paul Rozehnal Paul Rozehnal
              None
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: