From 2d189ec8b917115dd5605eb41afd1f8be0a4fbde Mon Sep 17 00:00:00 2001 From: John Schaeffer Date: Tue, 22 Aug 2023 19:11:04 +0000 Subject: [PATCH] Make worker image configurable This commit makes the worker image for permissions-api configurable separately from the API image. Signed-off-by: John Schaeffer --- chart/permissions-api/templates/deployment-worker.yaml | 4 ++-- chart/permissions-api/values.yaml | 8 ++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/chart/permissions-api/templates/deployment-worker.yaml b/chart/permissions-api/templates/deployment-worker.yaml index 29925cd7..4b89e0eb 100644 --- a/chart/permissions-api/templates/deployment-worker.yaml +++ b/chart/permissions-api/templates/deployment-worker.yaml @@ -45,8 +45,8 @@ spec: {{- end }} containers: - name: {{ include "common.names.name" . }} - image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" - imagePullPolicy: {{ .Values.image.pullPolicy }} + image: "{{ .Values.workerImage.repository }}:{{ .Values.workerImage.tag | default .Chart.AppVersion }}" + imagePullPolicy: {{ .Values.workerImage.pullPolicy }} args: - worker - --config diff --git a/chart/permissions-api/values.yaml b/chart/permissions-api/values.yaml index 887df997..0c5a2e3c 100644 --- a/chart/permissions-api/values.yaml +++ b/chart/permissions-api/values.yaml @@ -6,6 +6,14 @@ image: # tag is the image tag to use. Defaults to the chart's app version tag: "" +workerImage: + # repository is the image repository to pull the worker image from + repository: ghcr.io/infratographer/permissions-api + # pullPolicy is the image pull policy for the worker image + pullPolicy: IfNotPresent + # tag is the image tag to use. Defaults to the chart's app version + tag: "" + config: server: # port is the port that the permissions-api container should listen on