Skip to content

Commit d87653f

Browse files
committed
refactor label anno manager
1 parent 55975fe commit d87653f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

xset/revisionowner/revision_owner.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ func (r *revisionOwner) GetGroupVersionKind() schema.GroupVersionKind {
5252
func (r *revisionOwner) GetMatchLabels(parent metav1.Object) map[string]string {
5353
obj := parent.(v1alpha1.XSetObject)
5454
xsetSpec := r.XSetController.GetXSetSpec(obj)
55+
// that's ok to return nil, manager will use nothingSelector instead
5556
return xsetSpec.Selector.MatchLabels
5657
}
5758

0 commit comments

Comments
 (0)