comms(mas): fix admin client secret job

This commit is contained in:
Brad Stein 2026-01-01 17:52:18 -03:00
parent ed23d831b9
commit c72e1e1f9b

View File

@ -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