Skip to content

Add flags for charts to deploy on k3s/rke2 clusters#329

Open
dahuang-purestorage wants to merge 3 commits intomasterfrom
update-charts-for-k3s
Open

Add flags for charts to deploy on k3s/rke2 clusters#329
dahuang-purestorage wants to merge 3 commits intomasterfrom
update-charts-for-k3s

Conversation

@dahuang-purestorage
Copy link
Contributor

Signed-off-by: dahuang dahuang@purestorage.com

What this PR does / why we need it:
Current charts fails to deploy on k3s cluster with issues on CSI charts. This PR adds the missing sock and annotation for successfully deployment.

  • Adding mount path for containerd.sock
  • Adding NoSchedule tolerations
  • Update CSIDriver version to v1

Which issue(s) this PR fixes (optional)
Closes #
It doesn't fix any PR but it's related work to PWX-21842

Special notes for your reviewer:
Testing notes:

  • Tested using using command: helm install --debug --namespace kube-system --generate-name . on k3s cluster.

Signed-off-by: dahuang <dahuang@purestorage.com>
Copy link
Contributor

@zoxpx zoxpx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd suggest you isolate the needed expression as a variable:

{{- $isK3s := .Capabilities.KubeVersion.GitVersion | toString | regexFind "(k3s|rke2)" }}

... and use the variable in {{ if... }} expressions.

Signed-off-by: dahuang <dahuang@purestorage.com>
Signed-off-by: dahuang <dahuang@purestorage.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments