comms(mas): fix admin client secret job
This commit is contained in:
parent
ed23d831b9
commit
c72e1e1f9b
@ -33,7 +33,7 @@ subjects:
|
|||||||
apiVersion: batch/v1
|
apiVersion: batch/v1
|
||||||
kind: Job
|
kind: Job
|
||||||
metadata:
|
metadata:
|
||||||
name: mas-admin-client-secret-ensure-1
|
name: mas-admin-client-secret-ensure-2
|
||||||
namespace: comms
|
namespace: comms
|
||||||
spec:
|
spec:
|
||||||
backoffLimit: 2
|
backoffLimit: 2
|
||||||
@ -52,7 +52,7 @@ spec:
|
|||||||
- |
|
- |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
umask 077
|
umask 077
|
||||||
openssl rand -hex 32 > /work/client_secret
|
dd if=/dev/urandom bs=32 count=1 2>/dev/null | od -An -tx1 | tr -d ' \n' > /work/client_secret
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: work
|
- name: work
|
||||||
mountPath: /work
|
mountPath: /work
|
||||||
@ -72,4 +72,3 @@ spec:
|
|||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: work
|
- name: work
|
||||||
mountPath: /work
|
mountPath: /work
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user