# bp-openbao — Catalyst bootstrap-kit Blueprint. Secret backend. 3-node Raft, region-local. No stretched cluster (per SECURITY.md §5).
#
# Wrapper chart: platform/openbao/chart/
# Catalyst-curated values: platform/openbao/chart/values.yaml
# Reconciled by: Flux on the new Sovereign's k3s control plane.

---
apiVersion: v1
kind: Namespace
metadata:
  name: openbao
  labels:
    catalyst.openova.io/sovereign: otech.omani.works
---
apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: HelmRepository
metadata:
  name: bp-openbao
  namespace: flux-system
spec:
  type: oci
  interval: 15m
  url: oci://ghcr.io/openova-io
  secretRef:
    name: ghcr-pull
---
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
  name: bp-openbao
  namespace: flux-system
spec:
  interval: 15m
  releaseName: openbao
  targetNamespace: openbao
  dependsOn:
    - name: bp-spire
  chart:
    spec:
      chart: bp-openbao
      version: 1.1.1
      sourceRef:
        kind: HelmRepository
        name: bp-openbao
        namespace: flux-system
  # Event-driven install: OpenBao 3-node Raft cluster requires manual
  # unseal via `bao operator init` — pods stay sealed (Ready=False) until
  # an operator runs the unseal flow. Blocking Helm install on Ready=True
  # is structurally wrong for a sealed-by-default secret backend.
  # Replaces PR #221 spec.timeout: 15m.
  install:
    disableWait: true
    remediation:
      retries: 3
  upgrade:
    disableWait: true
    remediation:
      retries: 3
