Expand description
Pure credential/volume metadata over the CRD types: which Secrets a
repository’s mover needs. Shared by the controller (envFrom projection,
referent watches) and external tooling (kubectl kopiur doctor), so the
“what credentials does this backend reference” answer cannot fork.
Structs§
- Creds
Secret Ref - A credential Secret a mover Job needs, with the namespace it is sourced from.
namespaceis the resolved source namespace (where the operator reads the Secret when projecting), not the Job’s namespace.Noneonly when neither the reference nor the repository carries one — which projection treats as an actionable error (aClusterRepositoryreference must pin a namespace).
Enums§
- Workload
Identity Cloud - Which cloud IAM plane a workload-identity backend federates with. Drives the cloud-specific mover wiring (the Azure pod label; docs/messages naming the right SA annotation).
Constants§
- DEST_
ENV_ PREFIX - Env-var prefix under which a replication mover receives the destination
backend’s credential Secret (
envFrom.prefix). The source backend’s Secret is delivered unprefixed (kopia reads the plain names atrepository connectand persists them), so the two sides never collide even when both are the same backend family with different keys (issue #200). The mover reads these back to authenticate thekopia repository sync-todestination.
Functions§
- backend_
auth_ secret_ ref - The backend credentials Secret name for an object-store backend, if any.
- backend_
workload_ identity - The backend’s workload-identity binding, if any, with its cloud plane.
- mover_
creds_ secret_ refs - The distinct credential Secrets a mover Job for
backend+encryptionneeds asenvFrom, each with its resolved source namespace: always the encryption-password Secret, plus the backendauthSecret when present and differently named. Deduped by name, order-stable (password first). - mover_
creds_ secrets - The distinct credential Secret names a mover Job for
backend+encryptionneeds asenvFrom: always the encryption-password Secret, plus the backendauthSecret when present and different. Deduped, order-stable (password first). The common single-secret setup (password + keys in one Secret) collapses to one entry. Names-only projection ofmover_creds_secret_refs.