From 681f090edf50b3493a434c985c968983d60f7b16 Mon Sep 17 00:00:00 2001 From: Sushil Tiwari Date: Tue, 19 Nov 2024 18:15:19 +0545 Subject: [PATCH] Add pullpolicy set to IfNotPresent --- .../templates/argo-hooks/hook-job.yaml | 2 +- deploy/helm/ifrcgo-helm/values.yaml | 26 +++++++++---------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/deploy/helm/ifrcgo-helm/templates/argo-hooks/hook-job.yaml b/deploy/helm/ifrcgo-helm/templates/argo-hooks/hook-job.yaml index 429f52b6b7..908ecb131c 100644 --- a/deploy/helm/ifrcgo-helm/templates/argo-hooks/hook-job.yaml +++ b/deploy/helm/ifrcgo-helm/templates/argo-hooks/hook-job.yaml @@ -6,7 +6,7 @@ apiVersion: batch/v1 kind: Job metadata: - {{- if $hook.preservehistory }} + {{- if $hook.preserveHistory }} generateName: {{ template "ifrcgo-helm.fullname" $ }}-{{ $hookName }}- {{- else }} name: {{ template "ifrcgo-helm.fullname" $ }}-{{ $hookName }} diff --git a/deploy/helm/ifrcgo-helm/values.yaml b/deploy/helm/ifrcgo-helm/values.yaml index e2d9977327..77d062485d 100644 --- a/deploy/helm/ifrcgo-helm/values.yaml +++ b/deploy/helm/ifrcgo-helm/values.yaml @@ -80,7 +80,7 @@ api: image: name: 'SET-BY-CHARTPRESS' tag: 'set-by-chartpress' - pullPolicy: 'ifNotPresent' + pullPolicy: 'IfNotPresent' resources: requests: cpu: "2" @@ -109,6 +109,18 @@ celery: cpu: "2" memory: 4Gi +argoHooks: + # NOTE: Make sure keys are lowercase + database-migration: + enabled: true + hook: PostSync + preserveHistory: true + command: ["./manage.py", "migrate"] + collect-static: + enabled: true + hook: PostSync + command: ["./manage.py", "collectstatic", "--noinput"] + cronjobs: - command: 'index_and_notify' schedule: '*/5 * * * *' @@ -192,15 +204,3 @@ sshBastion: thenav56.pub: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIN/f/A3qkaTHSdbKn8Hv75YiJvRMEXvWT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hqz0HnAV28qMXbMEsrMIrtwl7IjcrorgdduHghZvWFbaJZNtXOfgnf1IYNXkZ9eWPS+Bz9nWMhE= ifrcds\paola.yela@5CG41911RT - -argoHooks: - # NOTE: Make sure keys are lowercase - database-migration: - enabled: true - hook: PostSync - preservehistory: true - command: ["./manage.py", "migrate"] - collect-static: - enabled: true - hook: PostSync - command: ["./manage.py", "collectstatic", "--noinput"] \ No newline at end of file