Merge commit 'fe564d72279f4ab061b961dd528623f0ed272667' as 'cluster-config'

This commit is contained in:
2025-03-30 15:46:16 -05:00
346 changed files with 11754 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
apiVersion: batch/v1
kind: CronJob
metadata:
name: copy-secrets
spec:
schedule: "*/2 * * * *"
concurrencyPolicy: "Forbid"
jobTemplate:
spec:
template:
spec:
serviceAccountName: copy-secrets
containers:
- name: copy-secrets
image: quay.io/gnunn/tools:latest
imagePullPolicy: Always
command:
- /bin/bash
- -c
- |
secrets=$(oc get secrets -l replicate=true --no-headers -o custom-columns=":metadata.name")
while IFS= read -r secret; do
oc get secret $secret -o yaml | oc neat | sed "s/namespace: tenant-secrets/namespace: ${secret}/g" | oc apply -f -
done <<< "$secrets"
restartPolicy: OnFailure