12 lines
369 B
Smarty
12 lines
369 B
Smarty
{{/*
|
|
Generate the complete node affinity configuration
|
|
*/}}
|
|
{{- define "conntrack-adjuster.nodeAffinity" -}}
|
|
{{- if and .Values.nodeAffinity.enabled .Values.nodeAffinity.nodeSelectorTerms }}
|
|
nodeAffinity:
|
|
requiredDuringSchedulingIgnoredDuringExecution:
|
|
nodeSelectorTerms:
|
|
{{- toYaml .Values.nodeAffinity.nodeSelectorTerms | nindent 4 }}
|
|
{{- end }}
|
|
{{- end }}
|