helm-charts icon indicating copy to clipboard operation
helm-charts copied to clipboard

[BUG]: [csi-vxflexos]: `controller.yaml` template has unnecessary `nodeSelector` field under `spec.template.spec.affinity`

Open Waji-97 opened this issue 9 months ago • 0 comments

Describe the bug The controller.yaml template has an unknown field under spec.template.spec.affinity part of the latest csi-vxflexos Helm Chart.

The exact warning message on helm install

 281201 warnings.go:70] unknown field "spec.template.spec.affinity.nodeSelector"

Upon investigation, found unnecessary nodeSelector field in line 174 of controller.yaml

    spec:
      affinity:
        nodeSelector:  ## ==> cause of the warning
        podAntiAffinity:

After removing the line and executing helm install, the warning message was gone.

Version of Helm and Kubernetes:

  • Kubernetes v1.26.13
  • Helm v3.14.3

Which chart:

  • csi-vxflexos

How to reproduce it (as minimally and precisely as possible): Using helm lint doesn't show any failures. However, installing the chart using helm install will give us the above-mentioned warning message along-with a successful installation of the CSI driver.

Anything else we need to know: The installation of the CSI driver itself doesn't get affected as the above is just a warning message, not an error. I am unsure if this should be considered as a "bug" but I felt like this should be updated over here as well.

Waji-97 avatar May 17 '24 16:05 Waji-97