Skip to content

Commit

Permalink
feat: saleor image name
Browse files Browse the repository at this point in the history
  • Loading branch information
JannikZed committed Feb 9, 2022
1 parent cae8155 commit 2bd75c1
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 7 deletions.
2 changes: 1 addition & 1 deletion charts/saleor/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ type: application

# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
version: 0.1.20
version: 0.1.21

dependencies:
- name: postgresql
Expand Down
6 changes: 5 additions & 1 deletion charts/saleor/templates/celery_deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@ spec:
- name: {{ .Chart.Name }}
securityContext:
runAsUser: 999
image: "{{ .Values.image.repository }}:{{ .Values.appVersion }}"
{{- if .Values.image.imageName }}
image: "{{ lower .Values.image.imageName }}"
{{- else }}
image: "{{ lower .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
{{- end }}
imagePullPolicy: {{ .Values.image.pullPolicy }}
env:
{{- range .Values.global.env }}
Expand Down
6 changes: 5 additions & 1 deletion charts/saleor/templates/saleor_deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@ spec:
- name: {{ .Chart.Name }}
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
image: "{{ .Values.image.repository }}:{{ .Values.appVersion }}"
{{- if .Values.image.imageName }}
image: "{{ lower .Values.image.imageName }}"
{{- else }}
image: "{{ lower .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
{{- end }}
imagePullPolicy: {{ .Values.image.pullPolicy }}
env:
{{- range .Values.global.env }}
Expand Down
7 changes: 3 additions & 4 deletions charts/saleor/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,11 @@
# Declare variables to be passed into your templates.

image:
# image name overrides repository and tag.
imageName: ""
repository: registry.gitlab.com/trieb.work/saleor
pullPolicy: IfNotPresent

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application.
appVersion: 3.0-triebwork11
tag: "3.0.0"

fullnameOverride: saleor-api

Expand Down

0 comments on commit 2bd75c1

Please sign in to comment.