Scan All Schedule CRD¶
A ScanAllSchedule custom resource manages Harbor's scan-all schedule via
/api/v2.0/system/scanAll/schedule.
Quick Start¶
apiVersion: harbor.harbor-operator.io/v1alpha1
kind: ScanAllSchedule
metadata:
name: scanall-daily
spec:
harborConnectionRef:
name: my-harbor
kind: HarborConnection
schedule:
type: Daily
cron: "0 0 0 * * *"
Key Fields¶
-
spec.schedule (object, required) Schedule type and cron expression.
Manualis not supported forScanAllSchedule. For all types exceptNone, Harbor expects a cron expression. -
spec.parameters (map, optional) Additional scan-all parameters.
Common Fields¶
ScanAllSchedule embeds HarborSpecBase. See Common Spec Fields
for the shared connection, deletion, and reconciliation controls, or jump to the
generated HarborSpecBase reference.
Behavior¶
- Create / Update
Only one
ScanAllSchedulemay manage a given Harbor instance. If multiple CRs target the same Harbor instance, the oldest CR remains the owner and later CRs report a conflict. Creates or updates the scan-all schedule in Harbor.