matrix-synapse: Fix signing-key job updates

No longer attempts to modify the signing-key job after it's first
created
This commit is contained in:
Alexander Olofsson 2021-03-20 20:54:35 +01:00
parent c302e50a1b
commit d10f9a6e44
No known key found for this signature in database
GPG key ID: D439C9470CB04C73
2 changed files with 12 additions and 7 deletions

View file

@ -69,9 +69,9 @@ spec:
- -c
- |
echo "Generating signing key..."
/usr/local/bin/generate_signing_key.py -o /synapse/keys/signing.key
image: "{{ .Values.image.repository }}:{{ include "matrix-synapse.imageTag" . }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
generate_signing_key.py -o /synapse/keys/signing.key
image: "{{ .Values.signingkey.job.generateImage.repository }}:{{ default .Values.signingkey.job.generateImage.tag "latest" }}"
imagePullPolicy: {{ .Values.signingkey.job.generateImage.pullPolicy }}
name: signing-key-generate
resources:
{{- toYaml .Values.signingkey.resources | nindent 12 }}
@ -88,8 +88,8 @@ spec:
env:
- name: SECRET_NAME
value: {{ $secretName }}
image: "{{ .Values.signingkey.job.image.repository }}:{{ default .Values.signingkey.job.image.tag "latest" }}"
imagePullPolicy: {{ .Values.signingkey.job.image.pullPolicy }}
image: "{{ .Values.signingkey.job.publishImage.repository }}:{{ default .Values.signingkey.job.publishImage.tag "latest" }}"
imagePullPolicy: {{ .Values.signingkey.job.publishImage.pullPolicy }}
name: signing-key-upload
resources:
{{- toYaml .Values.signingkey.resources | nindent 12 }}

View file

@ -31,9 +31,14 @@ signingkey:
job:
enabled: true
image:
generateImage:
repository: matrixdotorg/synapse
#tag: latest
pullPolicy: IfNotPresent
publishImage:
repository: bitnami/kubectl
# tag: ''
# tag: latest
pullPolicy: IfNotPresent
## Specify an existing signing key secret, will need to be created in advance.