User Group CRD¶
A UserGroup custom resource manages Harbor user groups via
/api/v2.0/usergroups.
Quick Start¶
apiVersion: harbor.harbor-operator.io/v1alpha1
kind: UserGroup
metadata:
name: developers
spec:
harborConnectionRef:
name: my-harbor
kind: HarborConnection
groupType: 2
Key Fields¶
-
metadata.name (string, required) The Harbor user group name managed by this CR.
-
spec.groupType (int, required) Group type: 1 = LDAP, 2 = HTTP, 3 = OIDC.
-
spec.ldapGroupDN (string, optional) LDAP DN for LDAP groups.
-
spec.creationPolicy (string, optional) Controls whether the group is created, adopted, or either. When omitted, uses the operator's default creation policy (
Createunless configured otherwise).
Common Fields¶
UserGroup embeds HarborSpecBase. See Common Spec Fields
for the shared connection, deletion, and reconciliation controls, or jump to the
generated HarborSpecBase reference.
Behavior¶
-
Create / Update Creates or updates the user group in Harbor.
-
Delete Deletes the user group in Harbor when the CR is deleted.