Skip to content

Commit

Permalink
feat(pontoon): able to override busybox image (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaellzc authored Nov 22, 2021
1 parent d970282 commit 99dba82
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion charts/pontoon/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
name: pontoon
home: https://github.com/mozilla/pontoon
version: 1.5.0
version: 1.6.0
# Pontoon no longer cuts releases.
# See https://github.com/mozilla/pontoon/releases/tag/2018-12-19
# and https://hub.docker.com/r/skillsnetwork/pontoon/tags
Expand Down
3 changes: 2 additions & 1 deletion charts/pontoon/templates/pontoon-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ spec:
{{- if or .Values.ssh.config .Values.ssh.privateKeys }}
initContainers:
- name: copy-ssh-secrets
image: "busybox"
image: "{{ .Values.ssh.image.repository }}:{{ .Values.ssh.image.tag }}"
imagePullPolicy: {{ .Values.ssh.image.pullPolicy }}
command:
- "cp"
- "-r"
Expand Down
3 changes: 2 additions & 1 deletion charts/pontoon/templates/pontoon-sync-projects-cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ spec:
{{- if or (or .Values.ssh.config .Values.ssh.privateKeys) .Values.syncProjectCronjob.initContainers }}
initContainers:
- name: copy-ssh-secrets
image: "busybox"
image: "{{ .Values.ssh.image.repository }}:{{ .Values.ssh.image.tag }}"
imagePullPolicy: {{ .Values.ssh.image.pullPolicy }}
command:
- "cp"
- "-r"
Expand Down
3 changes: 2 additions & 1 deletion charts/pontoon/templates/pontoon-worker-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ spec:
{{- if or .Values.ssh.config .Values.ssh.privateKeys }}
initContainers:
- name: copy-ssh-secrets
image: "busybox"
image: "{{ .Values.ssh.image.repository }}:{{ .Values.ssh.image.tag }}"
imagePullPolicy: {{ .Values.ssh.image.pullPolicy }}
command:
- "cp"
- "-r"
Expand Down
5 changes: 5 additions & 0 deletions charts/pontoon/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ ssh:
config: ""
mountPath: "/home/pontoon/.ssh"

image:
repository: busybox
pullPolicy: IfNotPresent
tag: "latest"

replicaCount: 1
image:
repository: skillsnetwork/pontoon
Expand Down

0 comments on commit 99dba82

Please sign in to comment.