Files
devops-infra-helm-charts-gcp/helm-templates/conntrack-adjuster/templates/_helpers.tpl
T
2026-08-26 03:39:42 +05:30

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 }}