keycloak: make MAS secret job idempotent
This commit is contained in:
parent
e9fb11af40
commit
6c99eb452e
@ -8,14 +8,15 @@ metadata:
|
||||
apiVersion: batch/v1
|
||||
kind: Job
|
||||
metadata:
|
||||
name: mas-secrets-ensure-4
|
||||
name: mas-secrets-ensure-5
|
||||
namespace: sso
|
||||
spec:
|
||||
backoffLimit: 2
|
||||
backoffLimit: 0
|
||||
ttlSecondsAfterFinished: 3600
|
||||
template:
|
||||
spec:
|
||||
serviceAccountName: mas-secrets-ensure
|
||||
restartPolicy: OnFailure
|
||||
restartPolicy: Never
|
||||
volumes:
|
||||
- name: work
|
||||
emptyDir: {}
|
||||
@ -95,7 +96,8 @@ spec:
|
||||
--from-file=encryption=/work/encryption \
|
||||
--from-file=matrix_shared_secret=/work/matrix_shared_secret \
|
||||
--from-file=keycloak_client_secret=/work/keycloak_client_secret \
|
||||
--from-file=rsa_key=/work/rsa_key >/dev/null
|
||||
--from-file=rsa_key=/work/rsa_key \
|
||||
--dry-run=client -o yaml | kubectl -n comms apply -f - >/dev/null
|
||||
volumeMounts:
|
||||
- name: work
|
||||
mountPath: /work
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user