Skip to content

Commit

Permalink
Make worker image configurable (#162)
Browse files Browse the repository at this point in the history
This commit makes the worker image for permissions-api configurable
separately from the API image.

Signed-off-by: John Schaeffer <[email protected]>
  • Loading branch information
jnschaeffer authored Aug 22, 2023
1 parent a34eab6 commit ba2939b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chart/permissions-api/templates/deployment-worker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 8 additions & 0 deletions chart/permissions-api/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ba2939b

Please sign in to comment.