Skip to content

Commit

Permalink
Merge pull request #70 from vector-im/bbz/image-pull-secret-support
Browse files Browse the repository at this point in the history
Add imagePullSecret support
  • Loading branch information
benbz authored Jun 27, 2023
2 parents 13ed03d + 49fa094 commit d1dca9f
Show file tree
Hide file tree
Showing 7 changed files with 37 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,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.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.6.0
version: 0.6.1

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
6 changes: 6 additions & 0 deletions templates/haproxy-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ spec:
- labelSelector:
matchLabels: {{ include "jitsi.haproxy.selectorLabels" $ | nindent 16 }}
topologyKey: topology.kubernetes.io/zone
{{- if $.Values.haproxy.imagePullSecrets }}
imagePullSecrets:
{{- range $secretName := $.Values.haproxy.imagePullSecrets }}
- name: {{ $secretName }}
{{- end }}
{{- end }}
containers:
- env:
- name: MY_POD_IP
Expand Down
6 changes: 6 additions & 0 deletions templates/jicofo-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ spec:
serviceAccountName: {{ (($.Values.global).serviceAccount) }}
{{- else }}
automountServiceAccountToken: false
{{- end }}
{{- if $.Values.jicofo.imagePullSecrets }}
imagePullSecrets:
{{- range $secretName := $.Values.jicofo.imagePullSecrets }}
- name: {{ $secretName }}
{{- end }}
{{- end }}
containers:
- env:
Expand Down
6 changes: 6 additions & 0 deletions templates/jvb-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ spec:
automountServiceAccountToken: false
{{- with $.Values.jvb.extraPodSpec }}
{{- toYaml . | nindent 6 }}
{{- end }}
{{- if $.Values.jvb.imagePullSecrets }}
imagePullSecrets:
{{- range $secretName := $.Values.jvb.imagePullSecrets }}
- name: {{ $secretName }}
{{- end }}
{{- end }}
containers:
{{ if $.Values.jvb.monitoringEnable -}}
Expand Down
6 changes: 6 additions & 0 deletions templates/prosody-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ spec:
serviceAccountName: {{ (($.Values.global).serviceAccount) }}
{{- else }}
automountServiceAccountToken: false
{{- end }}
{{- if $.Values.prosody.imagePullSecrets }}
imagePullSecrets:
{{- range $secretName := $.Values.prosody.imagePullSecrets }}
- name: {{ $secretName }}
{{- end }}
{{- end }}
volumes:
- name: prosody
Expand Down
6 changes: 6 additions & 0 deletions templates/sysctl-jvb-daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ spec:
automountServiceAccountToken: false
{{- end }}
hostNetwork: yes
{{- if $.Values.sysctljvb.imagePullSecrets }}
imagePullSecrets:
{{- range $secretName := $.Values.sysctljvb.imagePullSecrets }}
- name: {{ $secretName }}
{{- end }}
{{- end }}
containers:
- name: sysctl-jvb
image: {{ $.Values.sysctljvb.image }}
Expand Down
6 changes: 6 additions & 0 deletions templates/web-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ spec:
serviceAccountName: {{ (($.Values.global).serviceAccount) }}
{{- else }}
automountServiceAccountToken: false
{{- end }}
{{- if $.Values.web.imagePullSecrets }}
imagePullSecrets:
{{- range $secretName := $.Values.web.imagePullSecrets }}
- name: {{ $secretName }}
{{- end }}
{{- end }}
containers:
- env:
Expand Down

0 comments on commit d1dca9f

Please sign in to comment.