Skip to content

Commit

Permalink
refactor: Force same image repository and tag for wagtail and crons (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
microamp committed May 16, 2024
1 parent 35525ce commit b7a8df2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
4 changes: 2 additions & 2 deletions helm/templates/cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ spec:
name: django-configmap
containers:
- name: {{ .name | quote }}
image: "{{ .image.repository }}:{{ default $.Chart.AppVersion .image.tag }}"
imagePullPolicy: {{ .image.pullPolicy }}
image: "{{ $.Values.wagtail.image.repository }}:{{ default $.Chart.AppVersion $.Values.wagtail.image.tag }}"
imagePullPolicy: {{ $.Values.wagtail.image.pullPolicy }}
volumeMounts:
- name: settings-local-volume
mountPath: /app/ietf/settings/local.py
Expand Down
8 changes: 0 additions & 8 deletions helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -208,18 +208,10 @@ cronjob:
- name: mgmt-hourly
schedule: "0 * * * *" # "At minute 0."
timeZone: "Etc/UTC"
image:
repository: "ghcr.io/ietf-tools/www"
pullPolicy: IfNotPresent
# tag: "v2.1.10"
command: ["python", "/app/manage.py", "publish_scheduled"]
- name: mgmt-weekly
schedule: "30 0 * * 0" # "At 00:30 on Sunday."
timeZone: "Etc/UTC"
image:
repository: "ghcr.io/ietf-tools/www"
pullPolicy: IfNotPresent
# tag: "v2.1.10"
command: ["python", "/app/manage.py", "update_index"]

# -------------------------------------------------------------
Expand Down

0 comments on commit b7a8df2

Please sign in to comment.