From 4513299c34b045d1d4685a60ecc8429a2b49de73 Mon Sep 17 00:00:00 2001 From: Utkarshjh <167739637+Utkarshjh@users.noreply.github.com> Date: Thu, 28 Nov 2024 14:05:29 +0530 Subject: [PATCH] Aws fsxn abc post install hook changes --- .../templates/postinstallupgradehook.yaml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/helm/trident-operator/templates/postinstallupgradehook.yaml b/helm/trident-operator/templates/postinstallupgradehook.yaml index 6eb617fdf..103b2b155 100644 --- a/helm/trident-operator/templates/postinstallupgradehook.yaml +++ b/helm/trident-operator/templates/postinstallupgradehook.yaml @@ -1,4 +1,4 @@ -{{- if .Values.anfConfigurator.enabled }} +{{- if or .Values.anfConfigurator.enabled .Values.ontapConfigurator.enabled }} apiVersion: v1 kind: Service metadata: @@ -23,6 +23,18 @@ metadata: "helm.sh/hook-delete-policy": hook-succeeded, hook-failed spec: restartPolicy: Never + {{- if .Values.affinity }} + affinity: +{{ toYaml .Values.affinity | nindent 4 }} + {{- end }} + {{- if .Values.nodeSelector }} + nodeSelector: +{{ toYaml .Values.nodeSelector | nindent 4 }} + {{- end }} + {{- if .Values.tolerations }} + tolerations: +{{ toYaml .Values.tolerations | nindent 4 }} + {{- end }} initContainers: - name: init-container-1 image: {{ include "trident.image" $ }} @@ -34,7 +46,7 @@ spec: - check - operator - --timeout - - "7200" # Keeping it 12mins as AKS extension script has an upper limit of 15mins. + - "7200" # Keeping it 12 mins as AKS extension script has an upper limit of 15 mins. env: - name: POD_NAMESPACE valueFrom: