From 17dc59d66891dba689b18aae668a6964eebb8d7a Mon Sep 17 00:00:00 2001 From: James McShane Date: Tue, 26 May 2020 12:32:05 -0500 Subject: [PATCH] Adding node selector Values to chart (#109) * Adding support for node selector with default values * Use the right path for linux node selector --- .../templates/provider-azure-installer-windows.yaml | 4 +++- .../templates/provider-azure-installer.yaml | 4 +++- charts/csi-secrets-store-provider-azure/values.yaml | 4 ++++ 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/charts/csi-secrets-store-provider-azure/templates/provider-azure-installer-windows.yaml b/charts/csi-secrets-store-provider-azure/templates/provider-azure-installer-windows.yaml index c788ab1ed..2ab189bfb 100644 --- a/charts/csi-secrets-store-provider-azure/templates/provider-azure-installer-windows.yaml +++ b/charts/csi-secrets-store-provider-azure/templates/provider-azure-installer-windows.yaml @@ -32,6 +32,8 @@ spec: hostPath: path: "C:\\k\\secrets-store-csi-providers" type: DirectoryOrCreate +{{- with .Values.windows.nodeSelector }} nodeSelector: - beta.kubernetes.io/os: windows +{{ toYaml . | indent 8 }} +{{- end }} {{- end -}} diff --git a/charts/csi-secrets-store-provider-azure/templates/provider-azure-installer.yaml b/charts/csi-secrets-store-provider-azure/templates/provider-azure-installer.yaml index 9b2aed78f..aa667feda 100644 --- a/charts/csi-secrets-store-provider-azure/templates/provider-azure-installer.yaml +++ b/charts/csi-secrets-store-provider-azure/templates/provider-azure-installer.yaml @@ -31,6 +31,8 @@ spec: - name: providervol hostPath: path: "/etc/kubernetes/secrets-store-csi-providers" +{{- with .Values.linux.nodeSelector }} nodeSelector: - beta.kubernetes.io/os: linux +{{ toYaml . | indent 8 }} +{{- end }} {{- end -}} diff --git a/charts/csi-secrets-store-provider-azure/values.yaml b/charts/csi-secrets-store-provider-azure/values.yaml index 98c2f7fc8..3dcc38eaa 100644 --- a/charts/csi-secrets-store-provider-azure/values.yaml +++ b/charts/csi-secrets-store-provider-azure/values.yaml @@ -4,6 +4,8 @@ image: pullPolicy: IfNotPresent linux: + nodeSelector: + beta.kubernetes.io/os: linux enabled: true resources: requests: @@ -14,6 +16,8 @@ linux: memory: 100Mi windows: + nodeSelector: + beta.kubernetes.io/os: windows enabled: false resources: requests: