Common Spec Fields¶
All Harbor-managed custom resources embed HarborSpecBase. That gives every CR
the same baseline controls for selecting a Harbor instance, handling deletion,
and forcing or scheduling reconciliation. Resource guides focus on
resource-specific behavior and link back here for the shared fields.
For the exact generated schema, defaults, and validation markers, see HarborSpecBase in the API reference.
Shared Fields¶
-
spec.harborConnectionRefSelects the Harbor connection object to use. Setnameand, when needed,kindto choose betweenHarborConnectionandClusterHarborConnection. -
spec.deletionPolicyControls what happens when the Kubernetes object is deleted.Deleteattempts Harbor-side cleanup before removing the finalizer.Orphanremoves the finalizer even if Harbor cleanup cannot be completed. -
spec.driftDetectionIntervalEnables periodic drift checks between the desired state in Kubernetes and the current state in Harbor. If omitted or set to0, periodic drift detection is disabled. -
spec.reconcileNonceForces an immediate reconcile when the value changes. Use it when you want to trigger a refresh without changing any functional spec fields.