Skip to content

Commit e6ce90b

Browse files
authored
feat: Add nodeSelector, tolerations and affinity to pre-delete-cleanup job template (#714)
## Changes - Update `pre-delete-cleanup` job template to include `nodeSelector`, `tolerations`, and `affinity` fields.
1 parent 61e0655 commit e6ce90b

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

deploy/twingate-operator/templates/pre-delete-cleanup.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,17 @@ spec:
2424
- -c
2525
- |
2626
kubectl delete svc --cascade=foreground --timeout=30s --ignore-not-found -n {{ .Release.Namespace }} {{ $kubernetesAccessGatewayName }}
27+
{{- with .Values.nodeSelector }}
28+
nodeSelector:
29+
{{- toYaml . | nindent 8 }}
30+
{{- end }}
31+
{{- with .Values.affinity }}
32+
affinity:
33+
{{- toYaml . | nindent 8 }}
34+
{{- end }}
35+
{{- with .Values.tolerations }}
36+
tolerations:
37+
{{- toYaml . | nindent 8 }}
38+
{{- end }}
2739
restartPolicy: Never
2840
{{- end }}

0 commit comments

Comments
 (0)