From c9468849b6a54998ebc7beba1f5028c77bff25a0 Mon Sep 17 00:00:00 2001 From: monicastanciu Date: Thu, 7 Sep 2023 12:02:02 +0300 Subject: [PATCH] Add the ability to enable/disable daemonset creation --- charts/aws-ebs-csi-driver/templates/_node.tpl | 2 ++ charts/aws-ebs-csi-driver/values.yaml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/charts/aws-ebs-csi-driver/templates/_node.tpl b/charts/aws-ebs-csi-driver/templates/_node.tpl index bd2224b844..b3740a1945 100644 --- a/charts/aws-ebs-csi-driver/templates/_node.tpl +++ b/charts/aws-ebs-csi-driver/templates/_node.tpl @@ -1,4 +1,5 @@ {{- define "node" }} +{{- if or (eq (default true .Values.node.enableLinux) true) }} kind: DaemonSet apiVersion: apps/v1 metadata: @@ -222,3 +223,4 @@ spec: {{- toYaml . | nindent 8 }} {{- end }} {{- end }} +{{- end }} diff --git a/charts/aws-ebs-csi-driver/values.yaml b/charts/aws-ebs-csi-driver/values.yaml index 5a6ff4f32f..af32cb8f6b 100644 --- a/charts/aws-ebs-csi-driver/values.yaml +++ b/charts/aws-ebs-csi-driver/values.yaml @@ -336,6 +336,8 @@ node: name: ebs-csi-node-sa annotations: {} automountServiceAccountToken: true + # Enable the linux daemonset creation + enableLinux: true enableWindows: false # The "maximum number of attachable volumes" per node volumeAttachLimit: