code: func (a customResourceStrategy) GetAttrs(obj runtime.Object) (labels.Set, fields.Set, error) {
  	accessor, err := meta.Accessor(obj)
  	if err != nil {
  		return nil, nil, err
  	}
  	return labels.Set(accessor.GetLabels()), objectMetaFieldsSet(accessor, a.namespaceScoped), nil
  }
docs: // GetAttrs returns labels and fields of a given object for filtering purposes.