From 986f8255adca58549c8c20747380a8820dc40a7f Mon Sep 17 00:00:00 2001 From: Louis Chan Date: Tue, 6 Sep 2022 11:02:15 +0800 Subject: [PATCH] Specify imagePullPolicy: Always --- authgear/templates/analytic-cronjob.yaml | 3 +++ authgear/templates/audit-log-cronjob.yaml | 1 + authgear/templates/authgear-admin-server.yaml | 1 + authgear/templates/authgear-background.yaml | 1 + authgear/templates/authgear-images-server.yaml | 1 + authgear/templates/authgear-main-server.yaml | 1 + authgear/templates/authgear-portal-server.yaml | 1 + authgear/templates/authgear-resolver-server.yaml | 1 + authgear/templates/upload-stripe-cronjob.yaml | 1 + authgear/templates/usage-record-cronjob.yaml | 1 + 10 files changed, 12 insertions(+) diff --git a/authgear/templates/analytic-cronjob.yaml b/authgear/templates/analytic-cronjob.yaml index 6447f48..f5e3153 100644 --- a/authgear/templates/analytic-cronjob.yaml +++ b/authgear/templates/analytic-cronjob.yaml @@ -46,6 +46,7 @@ spec: containers: - name: authgear-analytic-cronjob-weekly image: {{ .Values.authgear.portalServer.image | quote }} + imagePullPolicy: Always command: - sh - /bin/entrypoint.sh @@ -119,6 +120,7 @@ spec: containers: - name: authgear-analytic-cronjob-monthly image: {{ .Values.authgear.portalServer.image | quote }} + imagePullPolicy: Always command: - sh - /bin/entrypoint.sh @@ -182,6 +184,7 @@ spec: containers: - name: authgear-analytic-cronjob-daily image: {{ .Values.authgear.portalServer.image | quote }} + imagePullPolicy: Always command: - sh - /bin/entrypoint.sh diff --git a/authgear/templates/audit-log-cronjob.yaml b/authgear/templates/audit-log-cronjob.yaml index 92f1c52..c7651ad 100644 --- a/authgear/templates/audit-log-cronjob.yaml +++ b/authgear/templates/audit-log-cronjob.yaml @@ -15,6 +15,7 @@ spec: containers: - name: authgear-audit-log-cronjob image: {{ .Values.authgear.mainServer.image | quote }} + imagePullPolicy: Always args: ["authgear", "audit", "database", "maintain"] env: - name: DATABASE_URL diff --git a/authgear/templates/authgear-admin-server.yaml b/authgear/templates/authgear-admin-server.yaml index c44eb8e..386d896 100644 --- a/authgear/templates/authgear-admin-server.yaml +++ b/authgear/templates/authgear-admin-server.yaml @@ -23,6 +23,7 @@ spec: containers: - name: authgear-admin-server image: {{ .Values.authgear.mainServer.image | quote }} + imagePullPolicy: Always args: ["authgear", "start", "admin"] {{ if .Values.authgear.appCustomResources.path }} volumeMounts: diff --git a/authgear/templates/authgear-background.yaml b/authgear/templates/authgear-background.yaml index faa5328..40d515b 100644 --- a/authgear/templates/authgear-background.yaml +++ b/authgear/templates/authgear-background.yaml @@ -22,6 +22,7 @@ spec: containers: - name: authgear-background image: {{ .Values.authgear.mainServer.image | quote }} + imagePullPolicy: Always args: ["authgear", "background"] {{ if .Values.authgear.appCustomResources.path }} volumeMounts: diff --git a/authgear/templates/authgear-images-server.yaml b/authgear/templates/authgear-images-server.yaml index fe35bf2..6203074 100644 --- a/authgear/templates/authgear-images-server.yaml +++ b/authgear/templates/authgear-images-server.yaml @@ -42,6 +42,7 @@ spec: containers: - name: authgear-images-server image: {{ .Values.authgear.mainServer.image | quote }} + imagePullPolicy: Always args: ["authgear", "images", "start"] {{- if $has_volumes }} volumeMounts: diff --git a/authgear/templates/authgear-main-server.yaml b/authgear/templates/authgear-main-server.yaml index 3ca1a2c..489b6af 100644 --- a/authgear/templates/authgear-main-server.yaml +++ b/authgear/templates/authgear-main-server.yaml @@ -62,6 +62,7 @@ spec: containers: - name: authgear-main-server image: {{ .Values.authgear.mainServer.image | quote }} + imagePullPolicy: Always args: ["authgear", "start", "main"] {{ if .Values.authgear.appCustomResources.path }} volumeMounts: diff --git a/authgear/templates/authgear-portal-server.yaml b/authgear/templates/authgear-portal-server.yaml index 7622518..dccc90e 100644 --- a/authgear/templates/authgear-portal-server.yaml +++ b/authgear/templates/authgear-portal-server.yaml @@ -160,6 +160,7 @@ spec: protocol: TCP - name: authgear-portal-server image: {{ .Values.authgear.portalServer.image | quote }} + imagePullPolicy: Always volumeMounts: - name: volume-ingress-template mountPath: /app/configmap/ingress-template diff --git a/authgear/templates/authgear-resolver-server.yaml b/authgear/templates/authgear-resolver-server.yaml index ec598c4..810977e 100644 --- a/authgear/templates/authgear-resolver-server.yaml +++ b/authgear/templates/authgear-resolver-server.yaml @@ -23,6 +23,7 @@ spec: containers: - name: authgear-resolver-server image: {{ .Values.authgear.mainServer.image | quote }} + imagePullPolicy: Always args: ["authgear", "start", "resolver"] {{ if .Values.authgear.appCustomResources.path }} volumeMounts: diff --git a/authgear/templates/upload-stripe-cronjob.yaml b/authgear/templates/upload-stripe-cronjob.yaml index 4d2251f..28fb660 100644 --- a/authgear/templates/upload-stripe-cronjob.yaml +++ b/authgear/templates/upload-stripe-cronjob.yaml @@ -16,6 +16,7 @@ spec: containers: - name: authgear-upload-stripe-cronjob image: {{ .Values.authgear.portalServer.image | quote }} + imagePullPolicy: Always args: ["authgear-portal", "pricing", "upload-usage-to-stripe", "--all"] env: - name: DATABASE_URL diff --git a/authgear/templates/usage-record-cronjob.yaml b/authgear/templates/usage-record-cronjob.yaml index 2d89d2f..ef35a63 100644 --- a/authgear/templates/usage-record-cronjob.yaml +++ b/authgear/templates/usage-record-cronjob.yaml @@ -36,6 +36,7 @@ spec: containers: - name: authgear-usage-record-cronjob image: {{ .Values.authgear.portalServer.image | quote }} + imagePullPolicy: Always command: - sh - /bin/entrypoint.sh