Skip to content

Commit 835699b

Browse files
committed
Also allow nodeSelector tpl
Signed-off-by: Trey Dockendorf <tdockendorf@osc.edu>
1 parent b4a238b commit 835699b

3 files changed

Lines changed: 6 additions & 2 deletions

File tree

helm/oauth2-proxy/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ kubeVersion: ">=1.16.0-0"
3131
annotations:
3232
artifacthub.io/changes: |
3333
- kind: added
34-
description: Add tpl support for ingress.labels and ingress.extraPaths
34+
description: Add tpl support for ingress.labels, ingress.extraPaths and nodeSelector
3535
links:
3636
- name: GitHub PR
3737
url: https://github.com/oauth2-proxy/manifests/pull/400

helm/oauth2-proxy/ci/tpl-values.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,3 +82,7 @@ serviceMonitor:
8282

8383
customLabels:
8484
test-labels/test: "{{ $.Release.Name }}"
85+
86+
nodeOS: linux
87+
nodeSelector:
88+
kubernetes.io/os: "{{ .Values.nodeOS }}"

helm/oauth2-proxy/templates/deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ spec:
421421
{{- end }}
422422
{{- with .Values.nodeSelector }}
423423
nodeSelector:
424-
{{- toYaml . | nindent 8 }}
424+
{{- tpl (toYaml .) $ | nindent 8 }}
425425
{{- end }}
426426
{{- with .Values.tolerations }}
427427
tolerations:

0 commit comments

Comments
 (0)