Skip to content

Commit

Permalink
Adding node selector Values to chart (#109)
Browse files Browse the repository at this point in the history
* Adding support for node selector with default values

* Use the right path for linux node selector
  • Loading branch information
jmcshane authored May 26, 2020
1 parent e662ff7 commit 17dc59d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 -}}
Original file line number Diff line number Diff line change
Expand Up @@ -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 -}}
4 changes: 4 additions & 0 deletions charts/csi-secrets-store-provider-azure/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ image:
pullPolicy: IfNotPresent

linux:
nodeSelector:
beta.kubernetes.io/os: linux
enabled: true
resources:
requests:
Expand All @@ -14,6 +16,8 @@ linux:
memory: 100Mi

windows:
nodeSelector:
beta.kubernetes.io/os: windows
enabled: false
resources:
requests:
Expand Down

0 comments on commit 17dc59d

Please sign in to comment.