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