func (c *FakePodGroups) Watch(opts v1.ListOptions) (watch.Interface, error) {
	return c.Fake.
		InvokesWatch(testing.NewWatchAction(podgroupsResource, c.ns, opts))
}
Watch returns a watch.Interface that watches the requested podGroups.
package fake
import (
	podgroupv1 "github.com/tenstack/batch-scheduler/pkg/apis/podgroup/v1"
	v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
	labels "k8s.io/apimachinery/pkg/labels"
	schema "k8s.io/apimachinery/pkg/runtime/schema"
	types "k8s.io/apimachinery/pkg/types"
	watch "k8s.io/apimachinery/pkg/watch"
	testing "k8s.io/client-go/testing"
)
type FakePodGroups struct {
	Fake *FakeBatchV1
	ns   string
}
var podgroupsResource = schema.GroupVersionResource{Group: "batch.scheduler.tencent.com", Version: "v1", Resource: "podgroups"}
var podgroupsKind = schema.GroupVersionKind{Group: "batch.scheduler.tencent.com", Version: "v1", Kind: "PodGroup"}
func (c *FakePodGroups) Get(name string, options v1.GetOptions) (result *podgroupv1.PodGroup, err error) {
	obj, err := c.Fake.
		Invokes(testing.NewGetAction(podgroupsResource, c.ns, name), &podgroupv1.PodGroup{})
	if obj == nil {
		return nil, err
	}
	return obj.(*podgroupv1.PodGroup), err
}
func (c *FakePodGroups) List(opts v1.ListOptions) (result *podgroupv1.PodGroupList, err error) {
	obj, err := c.Fake.
		Invokes(testing.NewListAction(podgroupsResource, podgroupsKind, c.ns, opts), &podgroupv1.PodGroupList{})
	if obj == nil {
		return nil, err
	}
	label, _, _ := testing.ExtractFromListOptions(opts)
	if label == nil {
		label = labels.Everything()
	}
	list := &podgroupv1.PodGroupList{ListMeta: obj.(*podgroupv1.PodGroupList).ListMeta}
	for _, item := range obj.(*podgroupv1.PodGroupList).Items {
		if label.Matches(labels.Set(item.Labels)) {
			list.Items = append(list.Items, item)
		}
	}
	return list, err
}