Skip to content

Commit 4513299

Browse files
authored
Aws fsxn abc post install hook changes
1 parent c9aa7fa commit 4513299

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

helm/trident-operator/templates/postinstallupgradehook.yaml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{- if .Values.anfConfigurator.enabled }}
1+
{{- if or .Values.anfConfigurator.enabled .Values.ontapConfigurator.enabled }}
22
apiVersion: v1
33
kind: Service
44
metadata:
@@ -23,6 +23,18 @@ metadata:
2323
"helm.sh/hook-delete-policy": hook-succeeded, hook-failed
2424
spec:
2525
restartPolicy: Never
26+
{{- if .Values.affinity }}
27+
affinity:
28+
{{ toYaml .Values.affinity | nindent 4 }}
29+
{{- end }}
30+
{{- if .Values.nodeSelector }}
31+
nodeSelector:
32+
{{ toYaml .Values.nodeSelector | nindent 4 }}
33+
{{- end }}
34+
{{- if .Values.tolerations }}
35+
tolerations:
36+
{{ toYaml .Values.tolerations | nindent 4 }}
37+
{{- end }}
2638
initContainers:
2739
- name: init-container-1
2840
image: {{ include "trident.image" $ }}
@@ -34,7 +46,7 @@ spec:
3446
- check
3547
- operator
3648
- --timeout
37-
- "7200" # Keeping it 12mins as AKS extension script has an upper limit of 15mins.
49+
- "7200" # Keeping it 12 mins as AKS extension script has an upper limit of 15 mins.
3850
env:
3951
- name: POD_NAMESPACE
4052
valueFrom:

0 commit comments

Comments
 (0)