comms(mas): fix admin client secret job
This commit is contained in:
parent
ed23d831b9
commit
c72e1e1f9b
@ -33,7 +33,7 @@ subjects:
|
||||
apiVersion: batch/v1
|
||||
kind: Job
|
||||
metadata:
|
||||
name: mas-admin-client-secret-ensure-1
|
||||
name: mas-admin-client-secret-ensure-2
|
||||
namespace: comms
|
||||
spec:
|
||||
backoffLimit: 2
|
||||
@ -52,7 +52,7 @@ spec:
|
||||
- |
|
||||
set -euo pipefail
|
||||
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:
|
||||
- name: work
|
||||
mountPath: /work
|
||||
@ -72,4 +72,3 @@ spec:
|
||||
volumeMounts:
|
||||
- name: work
|
||||
mountPath: /work
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user