Skip to content

Helm Values: preflight.nodeSelector Does Not Render Correctly #32497

@littlesheng19

Description

@littlesheng19

Is there an existing issue for this?

  • I have searched the existing issues

What happened?

"preflight.nodeSelector" does not seem to work, as it appears to be not addressed in the Helm template.

https://github.com/cilium/cilium/blob/main/install/kubernetes/cilium/templates/cilium-preflight/daemonset.yaml#L30

For example:

$ cat preflight.yaml

operator:
  enabled: false
agent: false
preflight:
  enabled: true
  nodeSelector:
    cnitype: cilium
  tolerations:
  - operator: Exist

And nodeSelector shows <none> as it does not render nodeSelector correctly in daemonset:

k get ds -n cilium 
NAME                      DESIRED   CURRENT   READY   UP-TO-DATE   AVAILABLE   NODE SELECTOR                           AGE
cilium                    52        52        52      52           52          cnitype=cilium,kubernetes.io/os=linux   312d
cilium-pre-flight-check   54        54        52      24           52          <none>                                  49m

Cilium Version

1.15.4

Kernel Version

Linux ip-172-30-236-195.ap-southeast-1.compute.internal 5.10.215-203.850.amzn2.x86_64 #1 SMP Tue Apr 23 20:32:19 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

Kubernetes Version

1.26

Regression

No response

Sysdump

No response

Relevant log output

No response

Anything else?

No response

Cilium Users Document

  • Are you a user of Cilium? Please add yourself to the Users doc

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/agentCilium agent related.area/helmImpacts helm charts and user deployment experiencekind/bugThis is a bug in the Cilium logic.kind/community-reportThis was reported by a user in the Cilium community, eg via Slack.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions