k8s-and-chill/rendered/envs/production/ocis/rolebinding-ocis-secret-init.yaml
Felix Wolf e813bd0a36 fix(ocis): Move secret generation to PreSync init Job
Removes all 13 Helm-generated secrets from rendered output and instead
generates them at deploy time via an init Job. The Job creates secrets
with random credentials only if they don't already exist, ensuring
idempotent deploys. Runs as ArgoCD PreSync hook so secrets are ready
before oCIS pods start.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-06 13:18:00 +02:00

17 lines
416 B
YAML

apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
annotations:
a8r.io/repository: ssh://git@git.tr1ceracop.de:222/gitea_admin/k8s-and-chill.git
argocd.argoproj.io/hook: PreSync
name: ocis-secret-init
namespace: ocis
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: ocis-secret-init
subjects:
- kind: ServiceAccount
name: ocis-secret-init
namespace: ocis