diff --git a/apis/apps/v1beta2/fakes/zz_generated_daemon_set_mock.go b/apis/apps/v1/fakes/zz_generated_daemon_set_mock.go similarity index 86% rename from apis/apps/v1beta2/fakes/zz_generated_daemon_set_mock.go rename to apis/apps/v1/fakes/zz_generated_daemon_set_mock.go index cf5c4590..21be6c4c 100644 --- a/apis/apps/v1beta2/fakes/zz_generated_daemon_set_mock.go +++ b/apis/apps/v1/fakes/zz_generated_daemon_set_mock.go @@ -9,9 +9,9 @@ import ( controller "github.com/rancher/norman/controller" objectclient "github.com/rancher/norman/objectclient" - v1beta2a "github.com/rancher/types/apis/apps/v1beta2" - v1beta2 "k8s.io/api/apps/v1beta2" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" + v1a "github.com/rancher/types/apis/apps/v1" + v1 "k8s.io/api/apps/v1" + v1b "k8s.io/apimachinery/pkg/apis/meta/v1" labels "k8s.io/apimachinery/pkg/labels" watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" @@ -24,7 +24,7 @@ var ( // Ensure, that DaemonSetListerMock does implement DaemonSetLister. // If this is not the case, regenerate this file with moq. -var _ v1beta2a.DaemonSetLister = &DaemonSetListerMock{} +var _ v1a.DaemonSetLister = &DaemonSetListerMock{} // DaemonSetListerMock is a mock implementation of DaemonSetLister. // @@ -32,10 +32,10 @@ var _ v1beta2a.DaemonSetLister = &DaemonSetListerMock{} // // // make and configure a mocked DaemonSetLister // mockedDaemonSetLister := &DaemonSetListerMock{ -// GetFunc: func(namespace string, name string) (*v1beta2.DaemonSet, error) { +// GetFunc: func(namespace string, name string) (*v1.DaemonSet, error) { // panic("mock out the Get method") // }, -// ListFunc: func(namespace string, selector labels.Selector) ([]*v1beta2.DaemonSet, error) { +// ListFunc: func(namespace string, selector labels.Selector) ([]*v1.DaemonSet, error) { // panic("mock out the List method") // }, // } @@ -46,10 +46,10 @@ var _ v1beta2a.DaemonSetLister = &DaemonSetListerMock{} // } type DaemonSetListerMock struct { // GetFunc mocks the Get method. - GetFunc func(namespace string, name string) (*v1beta2.DaemonSet, error) + GetFunc func(namespace string, name string) (*v1.DaemonSet, error) // ListFunc mocks the List method. - ListFunc func(namespace string, selector labels.Selector) ([]*v1beta2.DaemonSet, error) + ListFunc func(namespace string, selector labels.Selector) ([]*v1.DaemonSet, error) // calls tracks calls to the methods. calls struct { @@ -71,7 +71,7 @@ type DaemonSetListerMock struct { } // Get calls GetFunc. -func (mock *DaemonSetListerMock) Get(namespace string, name string) (*v1beta2.DaemonSet, error) { +func (mock *DaemonSetListerMock) Get(namespace string, name string) (*v1.DaemonSet, error) { if mock.GetFunc == nil { panic("DaemonSetListerMock.GetFunc: method is nil but DaemonSetLister.Get was just called") } @@ -106,7 +106,7 @@ func (mock *DaemonSetListerMock) GetCalls() []struct { } // List calls ListFunc. -func (mock *DaemonSetListerMock) List(namespace string, selector labels.Selector) ([]*v1beta2.DaemonSet, error) { +func (mock *DaemonSetListerMock) List(namespace string, selector labels.Selector) ([]*v1.DaemonSet, error) { if mock.ListFunc == nil { panic("DaemonSetListerMock.ListFunc: method is nil but DaemonSetLister.List was just called") } @@ -155,7 +155,7 @@ var ( // Ensure, that DaemonSetControllerMock does implement DaemonSetController. // If this is not the case, regenerate this file with moq. -var _ v1beta2a.DaemonSetController = &DaemonSetControllerMock{} +var _ v1a.DaemonSetController = &DaemonSetControllerMock{} // DaemonSetControllerMock is a mock implementation of DaemonSetController. // @@ -163,16 +163,16 @@ var _ v1beta2a.DaemonSetController = &DaemonSetControllerMock{} // // // make and configure a mocked DaemonSetController // mockedDaemonSetController := &DaemonSetControllerMock{ -// AddClusterScopedFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1beta2a.DaemonSetHandlerFunc) { +// AddClusterScopedFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1a.DaemonSetHandlerFunc) { // panic("mock out the AddClusterScopedFeatureHandler method") // }, -// AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, handler v1beta2a.DaemonSetHandlerFunc) { +// AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, handler v1a.DaemonSetHandlerFunc) { // panic("mock out the AddClusterScopedHandler method") // }, -// AddFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, sync v1beta2a.DaemonSetHandlerFunc) { +// AddFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, sync v1a.DaemonSetHandlerFunc) { // panic("mock out the AddFeatureHandler method") // }, -// AddHandlerFunc: func(ctx context.Context, name string, handler v1beta2a.DaemonSetHandlerFunc) { +// AddHandlerFunc: func(ctx context.Context, name string, handler v1a.DaemonSetHandlerFunc) { // panic("mock out the AddHandler method") // }, // EnqueueFunc: func(namespace string, name string) { @@ -184,7 +184,7 @@ var _ v1beta2a.DaemonSetController = &DaemonSetControllerMock{} // InformerFunc: func() cache.SharedIndexInformer { // panic("mock out the Informer method") // }, -// ListerFunc: func() v1beta2a.DaemonSetLister { +// ListerFunc: func() v1a.DaemonSetLister { // panic("mock out the Lister method") // }, // StartFunc: func(ctx context.Context, threadiness int) error { @@ -201,16 +201,16 @@ var _ v1beta2a.DaemonSetController = &DaemonSetControllerMock{} // } type DaemonSetControllerMock struct { // AddClusterScopedFeatureHandlerFunc mocks the AddClusterScopedFeatureHandler method. - AddClusterScopedFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1beta2a.DaemonSetHandlerFunc) + AddClusterScopedFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1a.DaemonSetHandlerFunc) // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. - AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, handler v1beta2a.DaemonSetHandlerFunc) + AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, handler v1a.DaemonSetHandlerFunc) // AddFeatureHandlerFunc mocks the AddFeatureHandler method. - AddFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, sync v1beta2a.DaemonSetHandlerFunc) + AddFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, sync v1a.DaemonSetHandlerFunc) // AddHandlerFunc mocks the AddHandler method. - AddHandlerFunc func(ctx context.Context, name string, handler v1beta2a.DaemonSetHandlerFunc) + AddHandlerFunc func(ctx context.Context, name string, handler v1a.DaemonSetHandlerFunc) // EnqueueFunc mocks the Enqueue method. EnqueueFunc func(namespace string, name string) @@ -222,7 +222,7 @@ type DaemonSetControllerMock struct { InformerFunc func() cache.SharedIndexInformer // ListerFunc mocks the Lister method. - ListerFunc func() v1beta2a.DaemonSetLister + ListerFunc func() v1a.DaemonSetLister // StartFunc mocks the Start method. StartFunc func(ctx context.Context, threadiness int) error @@ -243,7 +243,7 @@ type DaemonSetControllerMock struct { // ClusterName is the clusterName argument value. ClusterName string // Handler is the handler argument value. - Handler v1beta2a.DaemonSetHandlerFunc + Handler v1a.DaemonSetHandlerFunc } // AddClusterScopedHandler holds details about calls to the AddClusterScopedHandler method. AddClusterScopedHandler []struct { @@ -254,7 +254,7 @@ type DaemonSetControllerMock struct { // ClusterName is the clusterName argument value. ClusterName string // Handler is the handler argument value. - Handler v1beta2a.DaemonSetHandlerFunc + Handler v1a.DaemonSetHandlerFunc } // AddFeatureHandler holds details about calls to the AddFeatureHandler method. AddFeatureHandler []struct { @@ -265,7 +265,7 @@ type DaemonSetControllerMock struct { // Name is the name argument value. Name string // Sync is the sync argument value. - Sync v1beta2a.DaemonSetHandlerFunc + Sync v1a.DaemonSetHandlerFunc } // AddHandler holds details about calls to the AddHandler method. AddHandler []struct { @@ -274,7 +274,7 @@ type DaemonSetControllerMock struct { // Name is the name argument value. Name string // Handler is the handler argument value. - Handler v1beta2a.DaemonSetHandlerFunc + Handler v1a.DaemonSetHandlerFunc } // Enqueue holds details about calls to the Enqueue method. Enqueue []struct { @@ -308,7 +308,7 @@ type DaemonSetControllerMock struct { } // AddClusterScopedFeatureHandler calls AddClusterScopedFeatureHandlerFunc. -func (mock *DaemonSetControllerMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1beta2a.DaemonSetHandlerFunc) { +func (mock *DaemonSetControllerMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1a.DaemonSetHandlerFunc) { if mock.AddClusterScopedFeatureHandlerFunc == nil { panic("DaemonSetControllerMock.AddClusterScopedFeatureHandlerFunc: method is nil but DaemonSetController.AddClusterScopedFeatureHandler was just called") } @@ -317,7 +317,7 @@ func (mock *DaemonSetControllerMock) AddClusterScopedFeatureHandler(ctx context. Enabled func() bool Name string ClusterName string - Handler v1beta2a.DaemonSetHandlerFunc + Handler v1a.DaemonSetHandlerFunc }{ Ctx: ctx, Enabled: enabled, @@ -339,14 +339,14 @@ func (mock *DaemonSetControllerMock) AddClusterScopedFeatureHandlerCalls() []str Enabled func() bool Name string ClusterName string - Handler v1beta2a.DaemonSetHandlerFunc + Handler v1a.DaemonSetHandlerFunc } { var calls []struct { Ctx context.Context Enabled func() bool Name string ClusterName string - Handler v1beta2a.DaemonSetHandlerFunc + Handler v1a.DaemonSetHandlerFunc } lockDaemonSetControllerMockAddClusterScopedFeatureHandler.RLock() calls = mock.calls.AddClusterScopedFeatureHandler @@ -355,7 +355,7 @@ func (mock *DaemonSetControllerMock) AddClusterScopedFeatureHandlerCalls() []str } // AddClusterScopedHandler calls AddClusterScopedHandlerFunc. -func (mock *DaemonSetControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, handler v1beta2a.DaemonSetHandlerFunc) { +func (mock *DaemonSetControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, handler v1a.DaemonSetHandlerFunc) { if mock.AddClusterScopedHandlerFunc == nil { panic("DaemonSetControllerMock.AddClusterScopedHandlerFunc: method is nil but DaemonSetController.AddClusterScopedHandler was just called") } @@ -363,7 +363,7 @@ func (mock *DaemonSetControllerMock) AddClusterScopedHandler(ctx context.Context Ctx context.Context Name string ClusterName string - Handler v1beta2a.DaemonSetHandlerFunc + Handler v1a.DaemonSetHandlerFunc }{ Ctx: ctx, Name: name, @@ -383,13 +383,13 @@ func (mock *DaemonSetControllerMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string - Handler v1beta2a.DaemonSetHandlerFunc + Handler v1a.DaemonSetHandlerFunc } { var calls []struct { Ctx context.Context Name string ClusterName string - Handler v1beta2a.DaemonSetHandlerFunc + Handler v1a.DaemonSetHandlerFunc } lockDaemonSetControllerMockAddClusterScopedHandler.RLock() calls = mock.calls.AddClusterScopedHandler @@ -398,7 +398,7 @@ func (mock *DaemonSetControllerMock) AddClusterScopedHandlerCalls() []struct { } // AddFeatureHandler calls AddFeatureHandlerFunc. -func (mock *DaemonSetControllerMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync v1beta2a.DaemonSetHandlerFunc) { +func (mock *DaemonSetControllerMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync v1a.DaemonSetHandlerFunc) { if mock.AddFeatureHandlerFunc == nil { panic("DaemonSetControllerMock.AddFeatureHandlerFunc: method is nil but DaemonSetController.AddFeatureHandler was just called") } @@ -406,7 +406,7 @@ func (mock *DaemonSetControllerMock) AddFeatureHandler(ctx context.Context, enab Ctx context.Context Enabled func() bool Name string - Sync v1beta2a.DaemonSetHandlerFunc + Sync v1a.DaemonSetHandlerFunc }{ Ctx: ctx, Enabled: enabled, @@ -426,13 +426,13 @@ func (mock *DaemonSetControllerMock) AddFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string - Sync v1beta2a.DaemonSetHandlerFunc + Sync v1a.DaemonSetHandlerFunc } { var calls []struct { Ctx context.Context Enabled func() bool Name string - Sync v1beta2a.DaemonSetHandlerFunc + Sync v1a.DaemonSetHandlerFunc } lockDaemonSetControllerMockAddFeatureHandler.RLock() calls = mock.calls.AddFeatureHandler @@ -441,14 +441,14 @@ func (mock *DaemonSetControllerMock) AddFeatureHandlerCalls() []struct { } // AddHandler calls AddHandlerFunc. -func (mock *DaemonSetControllerMock) AddHandler(ctx context.Context, name string, handler v1beta2a.DaemonSetHandlerFunc) { +func (mock *DaemonSetControllerMock) AddHandler(ctx context.Context, name string, handler v1a.DaemonSetHandlerFunc) { if mock.AddHandlerFunc == nil { panic("DaemonSetControllerMock.AddHandlerFunc: method is nil but DaemonSetController.AddHandler was just called") } callInfo := struct { Ctx context.Context Name string - Handler v1beta2a.DaemonSetHandlerFunc + Handler v1a.DaemonSetHandlerFunc }{ Ctx: ctx, Name: name, @@ -466,12 +466,12 @@ func (mock *DaemonSetControllerMock) AddHandler(ctx context.Context, name string func (mock *DaemonSetControllerMock) AddHandlerCalls() []struct { Ctx context.Context Name string - Handler v1beta2a.DaemonSetHandlerFunc + Handler v1a.DaemonSetHandlerFunc } { var calls []struct { Ctx context.Context Name string - Handler v1beta2a.DaemonSetHandlerFunc + Handler v1a.DaemonSetHandlerFunc } lockDaemonSetControllerMockAddHandler.RLock() calls = mock.calls.AddHandler @@ -567,7 +567,7 @@ func (mock *DaemonSetControllerMock) InformerCalls() []struct { } // Lister calls ListerFunc. -func (mock *DaemonSetControllerMock) Lister() v1beta2a.DaemonSetLister { +func (mock *DaemonSetControllerMock) Lister() v1a.DaemonSetLister { if mock.ListerFunc == nil { panic("DaemonSetControllerMock.ListerFunc: method is nil but DaemonSetController.Lister was just called") } @@ -682,7 +682,7 @@ var ( // Ensure, that DaemonSetInterfaceMock does implement DaemonSetInterface. // If this is not the case, regenerate this file with moq. -var _ v1beta2a.DaemonSetInterface = &DaemonSetInterfaceMock{} +var _ v1a.DaemonSetInterface = &DaemonSetInterfaceMock{} // DaemonSetInterfaceMock is a mock implementation of DaemonSetInterface. // @@ -690,61 +690,61 @@ var _ v1beta2a.DaemonSetInterface = &DaemonSetInterfaceMock{} // // // make and configure a mocked DaemonSetInterface // mockedDaemonSetInterface := &DaemonSetInterfaceMock{ -// AddClusterScopedFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1beta2a.DaemonSetHandlerFunc) { +// AddClusterScopedFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1a.DaemonSetHandlerFunc) { // panic("mock out the AddClusterScopedFeatureHandler method") // }, -// AddClusterScopedFeatureLifecycleFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v1beta2a.DaemonSetLifecycle) { +// AddClusterScopedFeatureLifecycleFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v1a.DaemonSetLifecycle) { // panic("mock out the AddClusterScopedFeatureLifecycle method") // }, -// AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, sync v1beta2a.DaemonSetHandlerFunc) { +// AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, sync v1a.DaemonSetHandlerFunc) { // panic("mock out the AddClusterScopedHandler method") // }, -// AddClusterScopedLifecycleFunc: func(ctx context.Context, name string, clusterName string, lifecycle v1beta2a.DaemonSetLifecycle) { +// AddClusterScopedLifecycleFunc: func(ctx context.Context, name string, clusterName string, lifecycle v1a.DaemonSetLifecycle) { // panic("mock out the AddClusterScopedLifecycle method") // }, -// AddFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, sync v1beta2a.DaemonSetHandlerFunc) { +// AddFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, sync v1a.DaemonSetHandlerFunc) { // panic("mock out the AddFeatureHandler method") // }, -// AddFeatureLifecycleFunc: func(ctx context.Context, enabled func() bool, name string, lifecycle v1beta2a.DaemonSetLifecycle) { +// AddFeatureLifecycleFunc: func(ctx context.Context, enabled func() bool, name string, lifecycle v1a.DaemonSetLifecycle) { // panic("mock out the AddFeatureLifecycle method") // }, -// AddHandlerFunc: func(ctx context.Context, name string, sync v1beta2a.DaemonSetHandlerFunc) { +// AddHandlerFunc: func(ctx context.Context, name string, sync v1a.DaemonSetHandlerFunc) { // panic("mock out the AddHandler method") // }, -// AddLifecycleFunc: func(ctx context.Context, name string, lifecycle v1beta2a.DaemonSetLifecycle) { +// AddLifecycleFunc: func(ctx context.Context, name string, lifecycle v1a.DaemonSetLifecycle) { // panic("mock out the AddLifecycle method") // }, -// ControllerFunc: func() v1beta2a.DaemonSetController { +// ControllerFunc: func() v1a.DaemonSetController { // panic("mock out the Controller method") // }, -// CreateFunc: func(in1 *v1beta2.DaemonSet) (*v1beta2.DaemonSet, error) { +// CreateFunc: func(in1 *v1.DaemonSet) (*v1.DaemonSet, error) { // panic("mock out the Create method") // }, -// DeleteFunc: func(name string, options *v1.DeleteOptions) error { +// DeleteFunc: func(name string, options *v1b.DeleteOptions) error { // panic("mock out the Delete method") // }, -// DeleteCollectionFunc: func(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error { +// DeleteCollectionFunc: func(deleteOpts *v1b.DeleteOptions, listOpts v1b.ListOptions) error { // panic("mock out the DeleteCollection method") // }, -// DeleteNamespacedFunc: func(namespace string, name string, options *v1.DeleteOptions) error { +// DeleteNamespacedFunc: func(namespace string, name string, options *v1b.DeleteOptions) error { // panic("mock out the DeleteNamespaced method") // }, -// GetFunc: func(name string, opts v1.GetOptions) (*v1beta2.DaemonSet, error) { +// GetFunc: func(name string, opts v1b.GetOptions) (*v1.DaemonSet, error) { // panic("mock out the Get method") // }, -// GetNamespacedFunc: func(namespace string, name string, opts v1.GetOptions) (*v1beta2.DaemonSet, error) { +// GetNamespacedFunc: func(namespace string, name string, opts v1b.GetOptions) (*v1.DaemonSet, error) { // panic("mock out the GetNamespaced method") // }, -// ListFunc: func(opts v1.ListOptions) (*v1beta2a.DaemonSetList, error) { +// ListFunc: func(opts v1b.ListOptions) (*v1a.DaemonSetList, error) { // panic("mock out the List method") // }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, -// UpdateFunc: func(in1 *v1beta2.DaemonSet) (*v1beta2.DaemonSet, error) { +// UpdateFunc: func(in1 *v1.DaemonSet) (*v1.DaemonSet, error) { // panic("mock out the Update method") // }, -// WatchFunc: func(opts v1.ListOptions) (watch.Interface, error) { +// WatchFunc: func(opts v1b.ListOptions) (watch.Interface, error) { // panic("mock out the Watch method") // }, // } @@ -755,61 +755,61 @@ var _ v1beta2a.DaemonSetInterface = &DaemonSetInterfaceMock{} // } type DaemonSetInterfaceMock struct { // AddClusterScopedFeatureHandlerFunc mocks the AddClusterScopedFeatureHandler method. - AddClusterScopedFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1beta2a.DaemonSetHandlerFunc) + AddClusterScopedFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1a.DaemonSetHandlerFunc) // AddClusterScopedFeatureLifecycleFunc mocks the AddClusterScopedFeatureLifecycle method. - AddClusterScopedFeatureLifecycleFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v1beta2a.DaemonSetLifecycle) + AddClusterScopedFeatureLifecycleFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v1a.DaemonSetLifecycle) // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. - AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, sync v1beta2a.DaemonSetHandlerFunc) + AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, sync v1a.DaemonSetHandlerFunc) // AddClusterScopedLifecycleFunc mocks the AddClusterScopedLifecycle method. - AddClusterScopedLifecycleFunc func(ctx context.Context, name string, clusterName string, lifecycle v1beta2a.DaemonSetLifecycle) + AddClusterScopedLifecycleFunc func(ctx context.Context, name string, clusterName string, lifecycle v1a.DaemonSetLifecycle) // AddFeatureHandlerFunc mocks the AddFeatureHandler method. - AddFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, sync v1beta2a.DaemonSetHandlerFunc) + AddFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, sync v1a.DaemonSetHandlerFunc) // AddFeatureLifecycleFunc mocks the AddFeatureLifecycle method. - AddFeatureLifecycleFunc func(ctx context.Context, enabled func() bool, name string, lifecycle v1beta2a.DaemonSetLifecycle) + AddFeatureLifecycleFunc func(ctx context.Context, enabled func() bool, name string, lifecycle v1a.DaemonSetLifecycle) // AddHandlerFunc mocks the AddHandler method. - AddHandlerFunc func(ctx context.Context, name string, sync v1beta2a.DaemonSetHandlerFunc) + AddHandlerFunc func(ctx context.Context, name string, sync v1a.DaemonSetHandlerFunc) // AddLifecycleFunc mocks the AddLifecycle method. - AddLifecycleFunc func(ctx context.Context, name string, lifecycle v1beta2a.DaemonSetLifecycle) + AddLifecycleFunc func(ctx context.Context, name string, lifecycle v1a.DaemonSetLifecycle) // ControllerFunc mocks the Controller method. - ControllerFunc func() v1beta2a.DaemonSetController + ControllerFunc func() v1a.DaemonSetController // CreateFunc mocks the Create method. - CreateFunc func(in1 *v1beta2.DaemonSet) (*v1beta2.DaemonSet, error) + CreateFunc func(in1 *v1.DaemonSet) (*v1.DaemonSet, error) // DeleteFunc mocks the Delete method. - DeleteFunc func(name string, options *v1.DeleteOptions) error + DeleteFunc func(name string, options *v1b.DeleteOptions) error // DeleteCollectionFunc mocks the DeleteCollection method. - DeleteCollectionFunc func(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error + DeleteCollectionFunc func(deleteOpts *v1b.DeleteOptions, listOpts v1b.ListOptions) error // DeleteNamespacedFunc mocks the DeleteNamespaced method. - DeleteNamespacedFunc func(namespace string, name string, options *v1.DeleteOptions) error + DeleteNamespacedFunc func(namespace string, name string, options *v1b.DeleteOptions) error // GetFunc mocks the Get method. - GetFunc func(name string, opts v1.GetOptions) (*v1beta2.DaemonSet, error) + GetFunc func(name string, opts v1b.GetOptions) (*v1.DaemonSet, error) // GetNamespacedFunc mocks the GetNamespaced method. - GetNamespacedFunc func(namespace string, name string, opts v1.GetOptions) (*v1beta2.DaemonSet, error) + GetNamespacedFunc func(namespace string, name string, opts v1b.GetOptions) (*v1.DaemonSet, error) // ListFunc mocks the List method. - ListFunc func(opts v1.ListOptions) (*v1beta2a.DaemonSetList, error) + ListFunc func(opts v1b.ListOptions) (*v1a.DaemonSetList, error) // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient // UpdateFunc mocks the Update method. - UpdateFunc func(in1 *v1beta2.DaemonSet) (*v1beta2.DaemonSet, error) + UpdateFunc func(in1 *v1.DaemonSet) (*v1.DaemonSet, error) // WatchFunc mocks the Watch method. - WatchFunc func(opts v1.ListOptions) (watch.Interface, error) + WatchFunc func(opts v1b.ListOptions) (watch.Interface, error) // calls tracks calls to the methods. calls struct { @@ -824,7 +824,7 @@ type DaemonSetInterfaceMock struct { // ClusterName is the clusterName argument value. ClusterName string // Sync is the sync argument value. - Sync v1beta2a.DaemonSetHandlerFunc + Sync v1a.DaemonSetHandlerFunc } // AddClusterScopedFeatureLifecycle holds details about calls to the AddClusterScopedFeatureLifecycle method. AddClusterScopedFeatureLifecycle []struct { @@ -837,7 +837,7 @@ type DaemonSetInterfaceMock struct { // ClusterName is the clusterName argument value. ClusterName string // Lifecycle is the lifecycle argument value. - Lifecycle v1beta2a.DaemonSetLifecycle + Lifecycle v1a.DaemonSetLifecycle } // AddClusterScopedHandler holds details about calls to the AddClusterScopedHandler method. AddClusterScopedHandler []struct { @@ -848,7 +848,7 @@ type DaemonSetInterfaceMock struct { // ClusterName is the clusterName argument value. ClusterName string // Sync is the sync argument value. - Sync v1beta2a.DaemonSetHandlerFunc + Sync v1a.DaemonSetHandlerFunc } // AddClusterScopedLifecycle holds details about calls to the AddClusterScopedLifecycle method. AddClusterScopedLifecycle []struct { @@ -859,7 +859,7 @@ type DaemonSetInterfaceMock struct { // ClusterName is the clusterName argument value. ClusterName string // Lifecycle is the lifecycle argument value. - Lifecycle v1beta2a.DaemonSetLifecycle + Lifecycle v1a.DaemonSetLifecycle } // AddFeatureHandler holds details about calls to the AddFeatureHandler method. AddFeatureHandler []struct { @@ -870,7 +870,7 @@ type DaemonSetInterfaceMock struct { // Name is the name argument value. Name string // Sync is the sync argument value. - Sync v1beta2a.DaemonSetHandlerFunc + Sync v1a.DaemonSetHandlerFunc } // AddFeatureLifecycle holds details about calls to the AddFeatureLifecycle method. AddFeatureLifecycle []struct { @@ -881,7 +881,7 @@ type DaemonSetInterfaceMock struct { // Name is the name argument value. Name string // Lifecycle is the lifecycle argument value. - Lifecycle v1beta2a.DaemonSetLifecycle + Lifecycle v1a.DaemonSetLifecycle } // AddHandler holds details about calls to the AddHandler method. AddHandler []struct { @@ -890,7 +890,7 @@ type DaemonSetInterfaceMock struct { // Name is the name argument value. Name string // Sync is the sync argument value. - Sync v1beta2a.DaemonSetHandlerFunc + Sync v1a.DaemonSetHandlerFunc } // AddLifecycle holds details about calls to the AddLifecycle method. AddLifecycle []struct { @@ -899,7 +899,7 @@ type DaemonSetInterfaceMock struct { // Name is the name argument value. Name string // Lifecycle is the lifecycle argument value. - Lifecycle v1beta2a.DaemonSetLifecycle + Lifecycle v1a.DaemonSetLifecycle } // Controller holds details about calls to the Controller method. Controller []struct { @@ -907,21 +907,21 @@ type DaemonSetInterfaceMock struct { // Create holds details about calls to the Create method. Create []struct { // In1 is the in1 argument value. - In1 *v1beta2.DaemonSet + In1 *v1.DaemonSet } // Delete holds details about calls to the Delete method. Delete []struct { // Name is the name argument value. Name string // Options is the options argument value. - Options *v1.DeleteOptions + Options *v1b.DeleteOptions } // DeleteCollection holds details about calls to the DeleteCollection method. DeleteCollection []struct { // DeleteOpts is the deleteOpts argument value. - DeleteOpts *v1.DeleteOptions + DeleteOpts *v1b.DeleteOptions // ListOpts is the listOpts argument value. - ListOpts v1.ListOptions + ListOpts v1b.ListOptions } // DeleteNamespaced holds details about calls to the DeleteNamespaced method. DeleteNamespaced []struct { @@ -930,14 +930,14 @@ type DaemonSetInterfaceMock struct { // Name is the name argument value. Name string // Options is the options argument value. - Options *v1.DeleteOptions + Options *v1b.DeleteOptions } // Get holds details about calls to the Get method. Get []struct { // Name is the name argument value. Name string // Opts is the opts argument value. - Opts v1.GetOptions + Opts v1b.GetOptions } // GetNamespaced holds details about calls to the GetNamespaced method. GetNamespaced []struct { @@ -946,12 +946,12 @@ type DaemonSetInterfaceMock struct { // Name is the name argument value. Name string // Opts is the opts argument value. - Opts v1.GetOptions + Opts v1b.GetOptions } // List holds details about calls to the List method. List []struct { // Opts is the opts argument value. - Opts v1.ListOptions + Opts v1b.ListOptions } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { @@ -959,18 +959,18 @@ type DaemonSetInterfaceMock struct { // Update holds details about calls to the Update method. Update []struct { // In1 is the in1 argument value. - In1 *v1beta2.DaemonSet + In1 *v1.DaemonSet } // Watch holds details about calls to the Watch method. Watch []struct { // Opts is the opts argument value. - Opts v1.ListOptions + Opts v1b.ListOptions } } } // AddClusterScopedFeatureHandler calls AddClusterScopedFeatureHandlerFunc. -func (mock *DaemonSetInterfaceMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1beta2a.DaemonSetHandlerFunc) { +func (mock *DaemonSetInterfaceMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1a.DaemonSetHandlerFunc) { if mock.AddClusterScopedFeatureHandlerFunc == nil { panic("DaemonSetInterfaceMock.AddClusterScopedFeatureHandlerFunc: method is nil but DaemonSetInterface.AddClusterScopedFeatureHandler was just called") } @@ -979,7 +979,7 @@ func (mock *DaemonSetInterfaceMock) AddClusterScopedFeatureHandler(ctx context.C Enabled func() bool Name string ClusterName string - Sync v1beta2a.DaemonSetHandlerFunc + Sync v1a.DaemonSetHandlerFunc }{ Ctx: ctx, Enabled: enabled, @@ -1001,14 +1001,14 @@ func (mock *DaemonSetInterfaceMock) AddClusterScopedFeatureHandlerCalls() []stru Enabled func() bool Name string ClusterName string - Sync v1beta2a.DaemonSetHandlerFunc + Sync v1a.DaemonSetHandlerFunc } { var calls []struct { Ctx context.Context Enabled func() bool Name string ClusterName string - Sync v1beta2a.DaemonSetHandlerFunc + Sync v1a.DaemonSetHandlerFunc } lockDaemonSetInterfaceMockAddClusterScopedFeatureHandler.RLock() calls = mock.calls.AddClusterScopedFeatureHandler @@ -1017,7 +1017,7 @@ func (mock *DaemonSetInterfaceMock) AddClusterScopedFeatureHandlerCalls() []stru } // AddClusterScopedFeatureLifecycle calls AddClusterScopedFeatureLifecycleFunc. -func (mock *DaemonSetInterfaceMock) AddClusterScopedFeatureLifecycle(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v1beta2a.DaemonSetLifecycle) { +func (mock *DaemonSetInterfaceMock) AddClusterScopedFeatureLifecycle(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v1a.DaemonSetLifecycle) { if mock.AddClusterScopedFeatureLifecycleFunc == nil { panic("DaemonSetInterfaceMock.AddClusterScopedFeatureLifecycleFunc: method is nil but DaemonSetInterface.AddClusterScopedFeatureLifecycle was just called") } @@ -1026,7 +1026,7 @@ func (mock *DaemonSetInterfaceMock) AddClusterScopedFeatureLifecycle(ctx context Enabled func() bool Name string ClusterName string - Lifecycle v1beta2a.DaemonSetLifecycle + Lifecycle v1a.DaemonSetLifecycle }{ Ctx: ctx, Enabled: enabled, @@ -1048,14 +1048,14 @@ func (mock *DaemonSetInterfaceMock) AddClusterScopedFeatureLifecycleCalls() []st Enabled func() bool Name string ClusterName string - Lifecycle v1beta2a.DaemonSetLifecycle + Lifecycle v1a.DaemonSetLifecycle } { var calls []struct { Ctx context.Context Enabled func() bool Name string ClusterName string - Lifecycle v1beta2a.DaemonSetLifecycle + Lifecycle v1a.DaemonSetLifecycle } lockDaemonSetInterfaceMockAddClusterScopedFeatureLifecycle.RLock() calls = mock.calls.AddClusterScopedFeatureLifecycle @@ -1064,7 +1064,7 @@ func (mock *DaemonSetInterfaceMock) AddClusterScopedFeatureLifecycleCalls() []st } // AddClusterScopedHandler calls AddClusterScopedHandlerFunc. -func (mock *DaemonSetInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, sync v1beta2a.DaemonSetHandlerFunc) { +func (mock *DaemonSetInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, sync v1a.DaemonSetHandlerFunc) { if mock.AddClusterScopedHandlerFunc == nil { panic("DaemonSetInterfaceMock.AddClusterScopedHandlerFunc: method is nil but DaemonSetInterface.AddClusterScopedHandler was just called") } @@ -1072,7 +1072,7 @@ func (mock *DaemonSetInterfaceMock) AddClusterScopedHandler(ctx context.Context, Ctx context.Context Name string ClusterName string - Sync v1beta2a.DaemonSetHandlerFunc + Sync v1a.DaemonSetHandlerFunc }{ Ctx: ctx, Name: name, @@ -1092,13 +1092,13 @@ func (mock *DaemonSetInterfaceMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string - Sync v1beta2a.DaemonSetHandlerFunc + Sync v1a.DaemonSetHandlerFunc } { var calls []struct { Ctx context.Context Name string ClusterName string - Sync v1beta2a.DaemonSetHandlerFunc + Sync v1a.DaemonSetHandlerFunc } lockDaemonSetInterfaceMockAddClusterScopedHandler.RLock() calls = mock.calls.AddClusterScopedHandler @@ -1107,7 +1107,7 @@ func (mock *DaemonSetInterfaceMock) AddClusterScopedHandlerCalls() []struct { } // AddClusterScopedLifecycle calls AddClusterScopedLifecycleFunc. -func (mock *DaemonSetInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, lifecycle v1beta2a.DaemonSetLifecycle) { +func (mock *DaemonSetInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, lifecycle v1a.DaemonSetLifecycle) { if mock.AddClusterScopedLifecycleFunc == nil { panic("DaemonSetInterfaceMock.AddClusterScopedLifecycleFunc: method is nil but DaemonSetInterface.AddClusterScopedLifecycle was just called") } @@ -1115,7 +1115,7 @@ func (mock *DaemonSetInterfaceMock) AddClusterScopedLifecycle(ctx context.Contex Ctx context.Context Name string ClusterName string - Lifecycle v1beta2a.DaemonSetLifecycle + Lifecycle v1a.DaemonSetLifecycle }{ Ctx: ctx, Name: name, @@ -1135,13 +1135,13 @@ func (mock *DaemonSetInterfaceMock) AddClusterScopedLifecycleCalls() []struct { Ctx context.Context Name string ClusterName string - Lifecycle v1beta2a.DaemonSetLifecycle + Lifecycle v1a.DaemonSetLifecycle } { var calls []struct { Ctx context.Context Name string ClusterName string - Lifecycle v1beta2a.DaemonSetLifecycle + Lifecycle v1a.DaemonSetLifecycle } lockDaemonSetInterfaceMockAddClusterScopedLifecycle.RLock() calls = mock.calls.AddClusterScopedLifecycle @@ -1150,7 +1150,7 @@ func (mock *DaemonSetInterfaceMock) AddClusterScopedLifecycleCalls() []struct { } // AddFeatureHandler calls AddFeatureHandlerFunc. -func (mock *DaemonSetInterfaceMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync v1beta2a.DaemonSetHandlerFunc) { +func (mock *DaemonSetInterfaceMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync v1a.DaemonSetHandlerFunc) { if mock.AddFeatureHandlerFunc == nil { panic("DaemonSetInterfaceMock.AddFeatureHandlerFunc: method is nil but DaemonSetInterface.AddFeatureHandler was just called") } @@ -1158,7 +1158,7 @@ func (mock *DaemonSetInterfaceMock) AddFeatureHandler(ctx context.Context, enabl Ctx context.Context Enabled func() bool Name string - Sync v1beta2a.DaemonSetHandlerFunc + Sync v1a.DaemonSetHandlerFunc }{ Ctx: ctx, Enabled: enabled, @@ -1178,13 +1178,13 @@ func (mock *DaemonSetInterfaceMock) AddFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string - Sync v1beta2a.DaemonSetHandlerFunc + Sync v1a.DaemonSetHandlerFunc } { var calls []struct { Ctx context.Context Enabled func() bool Name string - Sync v1beta2a.DaemonSetHandlerFunc + Sync v1a.DaemonSetHandlerFunc } lockDaemonSetInterfaceMockAddFeatureHandler.RLock() calls = mock.calls.AddFeatureHandler @@ -1193,7 +1193,7 @@ func (mock *DaemonSetInterfaceMock) AddFeatureHandlerCalls() []struct { } // AddFeatureLifecycle calls AddFeatureLifecycleFunc. -func (mock *DaemonSetInterfaceMock) AddFeatureLifecycle(ctx context.Context, enabled func() bool, name string, lifecycle v1beta2a.DaemonSetLifecycle) { +func (mock *DaemonSetInterfaceMock) AddFeatureLifecycle(ctx context.Context, enabled func() bool, name string, lifecycle v1a.DaemonSetLifecycle) { if mock.AddFeatureLifecycleFunc == nil { panic("DaemonSetInterfaceMock.AddFeatureLifecycleFunc: method is nil but DaemonSetInterface.AddFeatureLifecycle was just called") } @@ -1201,7 +1201,7 @@ func (mock *DaemonSetInterfaceMock) AddFeatureLifecycle(ctx context.Context, ena Ctx context.Context Enabled func() bool Name string - Lifecycle v1beta2a.DaemonSetLifecycle + Lifecycle v1a.DaemonSetLifecycle }{ Ctx: ctx, Enabled: enabled, @@ -1221,13 +1221,13 @@ func (mock *DaemonSetInterfaceMock) AddFeatureLifecycleCalls() []struct { Ctx context.Context Enabled func() bool Name string - Lifecycle v1beta2a.DaemonSetLifecycle + Lifecycle v1a.DaemonSetLifecycle } { var calls []struct { Ctx context.Context Enabled func() bool Name string - Lifecycle v1beta2a.DaemonSetLifecycle + Lifecycle v1a.DaemonSetLifecycle } lockDaemonSetInterfaceMockAddFeatureLifecycle.RLock() calls = mock.calls.AddFeatureLifecycle @@ -1236,14 +1236,14 @@ func (mock *DaemonSetInterfaceMock) AddFeatureLifecycleCalls() []struct { } // AddHandler calls AddHandlerFunc. -func (mock *DaemonSetInterfaceMock) AddHandler(ctx context.Context, name string, sync v1beta2a.DaemonSetHandlerFunc) { +func (mock *DaemonSetInterfaceMock) AddHandler(ctx context.Context, name string, sync v1a.DaemonSetHandlerFunc) { if mock.AddHandlerFunc == nil { panic("DaemonSetInterfaceMock.AddHandlerFunc: method is nil but DaemonSetInterface.AddHandler was just called") } callInfo := struct { Ctx context.Context Name string - Sync v1beta2a.DaemonSetHandlerFunc + Sync v1a.DaemonSetHandlerFunc }{ Ctx: ctx, Name: name, @@ -1261,12 +1261,12 @@ func (mock *DaemonSetInterfaceMock) AddHandler(ctx context.Context, name string, func (mock *DaemonSetInterfaceMock) AddHandlerCalls() []struct { Ctx context.Context Name string - Sync v1beta2a.DaemonSetHandlerFunc + Sync v1a.DaemonSetHandlerFunc } { var calls []struct { Ctx context.Context Name string - Sync v1beta2a.DaemonSetHandlerFunc + Sync v1a.DaemonSetHandlerFunc } lockDaemonSetInterfaceMockAddHandler.RLock() calls = mock.calls.AddHandler @@ -1275,14 +1275,14 @@ func (mock *DaemonSetInterfaceMock) AddHandlerCalls() []struct { } // AddLifecycle calls AddLifecycleFunc. -func (mock *DaemonSetInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v1beta2a.DaemonSetLifecycle) { +func (mock *DaemonSetInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v1a.DaemonSetLifecycle) { if mock.AddLifecycleFunc == nil { panic("DaemonSetInterfaceMock.AddLifecycleFunc: method is nil but DaemonSetInterface.AddLifecycle was just called") } callInfo := struct { Ctx context.Context Name string - Lifecycle v1beta2a.DaemonSetLifecycle + Lifecycle v1a.DaemonSetLifecycle }{ Ctx: ctx, Name: name, @@ -1300,12 +1300,12 @@ func (mock *DaemonSetInterfaceMock) AddLifecycle(ctx context.Context, name strin func (mock *DaemonSetInterfaceMock) AddLifecycleCalls() []struct { Ctx context.Context Name string - Lifecycle v1beta2a.DaemonSetLifecycle + Lifecycle v1a.DaemonSetLifecycle } { var calls []struct { Ctx context.Context Name string - Lifecycle v1beta2a.DaemonSetLifecycle + Lifecycle v1a.DaemonSetLifecycle } lockDaemonSetInterfaceMockAddLifecycle.RLock() calls = mock.calls.AddLifecycle @@ -1314,7 +1314,7 @@ func (mock *DaemonSetInterfaceMock) AddLifecycleCalls() []struct { } // Controller calls ControllerFunc. -func (mock *DaemonSetInterfaceMock) Controller() v1beta2a.DaemonSetController { +func (mock *DaemonSetInterfaceMock) Controller() v1a.DaemonSetController { if mock.ControllerFunc == nil { panic("DaemonSetInterfaceMock.ControllerFunc: method is nil but DaemonSetInterface.Controller was just called") } @@ -1340,12 +1340,12 @@ func (mock *DaemonSetInterfaceMock) ControllerCalls() []struct { } // Create calls CreateFunc. -func (mock *DaemonSetInterfaceMock) Create(in1 *v1beta2.DaemonSet) (*v1beta2.DaemonSet, error) { +func (mock *DaemonSetInterfaceMock) Create(in1 *v1.DaemonSet) (*v1.DaemonSet, error) { if mock.CreateFunc == nil { panic("DaemonSetInterfaceMock.CreateFunc: method is nil but DaemonSetInterface.Create was just called") } callInfo := struct { - In1 *v1beta2.DaemonSet + In1 *v1.DaemonSet }{ In1: in1, } @@ -1359,10 +1359,10 @@ func (mock *DaemonSetInterfaceMock) Create(in1 *v1beta2.DaemonSet) (*v1beta2.Dae // Check the length with: // len(mockedDaemonSetInterface.CreateCalls()) func (mock *DaemonSetInterfaceMock) CreateCalls() []struct { - In1 *v1beta2.DaemonSet + In1 *v1.DaemonSet } { var calls []struct { - In1 *v1beta2.DaemonSet + In1 *v1.DaemonSet } lockDaemonSetInterfaceMockCreate.RLock() calls = mock.calls.Create @@ -1371,13 +1371,13 @@ func (mock *DaemonSetInterfaceMock) CreateCalls() []struct { } // Delete calls DeleteFunc. -func (mock *DaemonSetInterfaceMock) Delete(name string, options *v1.DeleteOptions) error { +func (mock *DaemonSetInterfaceMock) Delete(name string, options *v1b.DeleteOptions) error { if mock.DeleteFunc == nil { panic("DaemonSetInterfaceMock.DeleteFunc: method is nil but DaemonSetInterface.Delete was just called") } callInfo := struct { Name string - Options *v1.DeleteOptions + Options *v1b.DeleteOptions }{ Name: name, Options: options, @@ -1393,11 +1393,11 @@ func (mock *DaemonSetInterfaceMock) Delete(name string, options *v1.DeleteOption // len(mockedDaemonSetInterface.DeleteCalls()) func (mock *DaemonSetInterfaceMock) DeleteCalls() []struct { Name string - Options *v1.DeleteOptions + Options *v1b.DeleteOptions } { var calls []struct { Name string - Options *v1.DeleteOptions + Options *v1b.DeleteOptions } lockDaemonSetInterfaceMockDelete.RLock() calls = mock.calls.Delete @@ -1406,13 +1406,13 @@ func (mock *DaemonSetInterfaceMock) DeleteCalls() []struct { } // DeleteCollection calls DeleteCollectionFunc. -func (mock *DaemonSetInterfaceMock) DeleteCollection(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error { +func (mock *DaemonSetInterfaceMock) DeleteCollection(deleteOpts *v1b.DeleteOptions, listOpts v1b.ListOptions) error { if mock.DeleteCollectionFunc == nil { panic("DaemonSetInterfaceMock.DeleteCollectionFunc: method is nil but DaemonSetInterface.DeleteCollection was just called") } callInfo := struct { - DeleteOpts *v1.DeleteOptions - ListOpts v1.ListOptions + DeleteOpts *v1b.DeleteOptions + ListOpts v1b.ListOptions }{ DeleteOpts: deleteOpts, ListOpts: listOpts, @@ -1427,12 +1427,12 @@ func (mock *DaemonSetInterfaceMock) DeleteCollection(deleteOpts *v1.DeleteOption // Check the length with: // len(mockedDaemonSetInterface.DeleteCollectionCalls()) func (mock *DaemonSetInterfaceMock) DeleteCollectionCalls() []struct { - DeleteOpts *v1.DeleteOptions - ListOpts v1.ListOptions + DeleteOpts *v1b.DeleteOptions + ListOpts v1b.ListOptions } { var calls []struct { - DeleteOpts *v1.DeleteOptions - ListOpts v1.ListOptions + DeleteOpts *v1b.DeleteOptions + ListOpts v1b.ListOptions } lockDaemonSetInterfaceMockDeleteCollection.RLock() calls = mock.calls.DeleteCollection @@ -1441,14 +1441,14 @@ func (mock *DaemonSetInterfaceMock) DeleteCollectionCalls() []struct { } // DeleteNamespaced calls DeleteNamespacedFunc. -func (mock *DaemonSetInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1.DeleteOptions) error { +func (mock *DaemonSetInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1b.DeleteOptions) error { if mock.DeleteNamespacedFunc == nil { panic("DaemonSetInterfaceMock.DeleteNamespacedFunc: method is nil but DaemonSetInterface.DeleteNamespaced was just called") } callInfo := struct { Namespace string Name string - Options *v1.DeleteOptions + Options *v1b.DeleteOptions }{ Namespace: namespace, Name: name, @@ -1466,12 +1466,12 @@ func (mock *DaemonSetInterfaceMock) DeleteNamespaced(namespace string, name stri func (mock *DaemonSetInterfaceMock) DeleteNamespacedCalls() []struct { Namespace string Name string - Options *v1.DeleteOptions + Options *v1b.DeleteOptions } { var calls []struct { Namespace string Name string - Options *v1.DeleteOptions + Options *v1b.DeleteOptions } lockDaemonSetInterfaceMockDeleteNamespaced.RLock() calls = mock.calls.DeleteNamespaced @@ -1480,13 +1480,13 @@ func (mock *DaemonSetInterfaceMock) DeleteNamespacedCalls() []struct { } // Get calls GetFunc. -func (mock *DaemonSetInterfaceMock) Get(name string, opts v1.GetOptions) (*v1beta2.DaemonSet, error) { +func (mock *DaemonSetInterfaceMock) Get(name string, opts v1b.GetOptions) (*v1.DaemonSet, error) { if mock.GetFunc == nil { panic("DaemonSetInterfaceMock.GetFunc: method is nil but DaemonSetInterface.Get was just called") } callInfo := struct { Name string - Opts v1.GetOptions + Opts v1b.GetOptions }{ Name: name, Opts: opts, @@ -1502,11 +1502,11 @@ func (mock *DaemonSetInterfaceMock) Get(name string, opts v1.GetOptions) (*v1bet // len(mockedDaemonSetInterface.GetCalls()) func (mock *DaemonSetInterfaceMock) GetCalls() []struct { Name string - Opts v1.GetOptions + Opts v1b.GetOptions } { var calls []struct { Name string - Opts v1.GetOptions + Opts v1b.GetOptions } lockDaemonSetInterfaceMockGet.RLock() calls = mock.calls.Get @@ -1515,14 +1515,14 @@ func (mock *DaemonSetInterfaceMock) GetCalls() []struct { } // GetNamespaced calls GetNamespacedFunc. -func (mock *DaemonSetInterfaceMock) GetNamespaced(namespace string, name string, opts v1.GetOptions) (*v1beta2.DaemonSet, error) { +func (mock *DaemonSetInterfaceMock) GetNamespaced(namespace string, name string, opts v1b.GetOptions) (*v1.DaemonSet, error) { if mock.GetNamespacedFunc == nil { panic("DaemonSetInterfaceMock.GetNamespacedFunc: method is nil but DaemonSetInterface.GetNamespaced was just called") } callInfo := struct { Namespace string Name string - Opts v1.GetOptions + Opts v1b.GetOptions }{ Namespace: namespace, Name: name, @@ -1540,12 +1540,12 @@ func (mock *DaemonSetInterfaceMock) GetNamespaced(namespace string, name string, func (mock *DaemonSetInterfaceMock) GetNamespacedCalls() []struct { Namespace string Name string - Opts v1.GetOptions + Opts v1b.GetOptions } { var calls []struct { Namespace string Name string - Opts v1.GetOptions + Opts v1b.GetOptions } lockDaemonSetInterfaceMockGetNamespaced.RLock() calls = mock.calls.GetNamespaced @@ -1554,12 +1554,12 @@ func (mock *DaemonSetInterfaceMock) GetNamespacedCalls() []struct { } // List calls ListFunc. -func (mock *DaemonSetInterfaceMock) List(opts v1.ListOptions) (*v1beta2a.DaemonSetList, error) { +func (mock *DaemonSetInterfaceMock) List(opts v1b.ListOptions) (*v1a.DaemonSetList, error) { if mock.ListFunc == nil { panic("DaemonSetInterfaceMock.ListFunc: method is nil but DaemonSetInterface.List was just called") } callInfo := struct { - Opts v1.ListOptions + Opts v1b.ListOptions }{ Opts: opts, } @@ -1573,10 +1573,10 @@ func (mock *DaemonSetInterfaceMock) List(opts v1.ListOptions) (*v1beta2a.DaemonS // Check the length with: // len(mockedDaemonSetInterface.ListCalls()) func (mock *DaemonSetInterfaceMock) ListCalls() []struct { - Opts v1.ListOptions + Opts v1b.ListOptions } { var calls []struct { - Opts v1.ListOptions + Opts v1b.ListOptions } lockDaemonSetInterfaceMockList.RLock() calls = mock.calls.List @@ -1611,12 +1611,12 @@ func (mock *DaemonSetInterfaceMock) ObjectClientCalls() []struct { } // Update calls UpdateFunc. -func (mock *DaemonSetInterfaceMock) Update(in1 *v1beta2.DaemonSet) (*v1beta2.DaemonSet, error) { +func (mock *DaemonSetInterfaceMock) Update(in1 *v1.DaemonSet) (*v1.DaemonSet, error) { if mock.UpdateFunc == nil { panic("DaemonSetInterfaceMock.UpdateFunc: method is nil but DaemonSetInterface.Update was just called") } callInfo := struct { - In1 *v1beta2.DaemonSet + In1 *v1.DaemonSet }{ In1: in1, } @@ -1630,10 +1630,10 @@ func (mock *DaemonSetInterfaceMock) Update(in1 *v1beta2.DaemonSet) (*v1beta2.Dae // Check the length with: // len(mockedDaemonSetInterface.UpdateCalls()) func (mock *DaemonSetInterfaceMock) UpdateCalls() []struct { - In1 *v1beta2.DaemonSet + In1 *v1.DaemonSet } { var calls []struct { - In1 *v1beta2.DaemonSet + In1 *v1.DaemonSet } lockDaemonSetInterfaceMockUpdate.RLock() calls = mock.calls.Update @@ -1642,12 +1642,12 @@ func (mock *DaemonSetInterfaceMock) UpdateCalls() []struct { } // Watch calls WatchFunc. -func (mock *DaemonSetInterfaceMock) Watch(opts v1.ListOptions) (watch.Interface, error) { +func (mock *DaemonSetInterfaceMock) Watch(opts v1b.ListOptions) (watch.Interface, error) { if mock.WatchFunc == nil { panic("DaemonSetInterfaceMock.WatchFunc: method is nil but DaemonSetInterface.Watch was just called") } callInfo := struct { - Opts v1.ListOptions + Opts v1b.ListOptions }{ Opts: opts, } @@ -1661,10 +1661,10 @@ func (mock *DaemonSetInterfaceMock) Watch(opts v1.ListOptions) (watch.Interface, // Check the length with: // len(mockedDaemonSetInterface.WatchCalls()) func (mock *DaemonSetInterfaceMock) WatchCalls() []struct { - Opts v1.ListOptions + Opts v1b.ListOptions } { var calls []struct { - Opts v1.ListOptions + Opts v1b.ListOptions } lockDaemonSetInterfaceMockWatch.RLock() calls = mock.calls.Watch @@ -1678,7 +1678,7 @@ var ( // Ensure, that DaemonSetsGetterMock does implement DaemonSetsGetter. // If this is not the case, regenerate this file with moq. -var _ v1beta2a.DaemonSetsGetter = &DaemonSetsGetterMock{} +var _ v1a.DaemonSetsGetter = &DaemonSetsGetterMock{} // DaemonSetsGetterMock is a mock implementation of DaemonSetsGetter. // @@ -1686,7 +1686,7 @@ var _ v1beta2a.DaemonSetsGetter = &DaemonSetsGetterMock{} // // // make and configure a mocked DaemonSetsGetter // mockedDaemonSetsGetter := &DaemonSetsGetterMock{ -// DaemonSetsFunc: func(namespace string) v1beta2a.DaemonSetInterface { +// DaemonSetsFunc: func(namespace string) v1a.DaemonSetInterface { // panic("mock out the DaemonSets method") // }, // } @@ -1697,7 +1697,7 @@ var _ v1beta2a.DaemonSetsGetter = &DaemonSetsGetterMock{} // } type DaemonSetsGetterMock struct { // DaemonSetsFunc mocks the DaemonSets method. - DaemonSetsFunc func(namespace string) v1beta2a.DaemonSetInterface + DaemonSetsFunc func(namespace string) v1a.DaemonSetInterface // calls tracks calls to the methods. calls struct { @@ -1710,7 +1710,7 @@ type DaemonSetsGetterMock struct { } // DaemonSets calls DaemonSetsFunc. -func (mock *DaemonSetsGetterMock) DaemonSets(namespace string) v1beta2a.DaemonSetInterface { +func (mock *DaemonSetsGetterMock) DaemonSets(namespace string) v1a.DaemonSetInterface { if mock.DaemonSetsFunc == nil { panic("DaemonSetsGetterMock.DaemonSetsFunc: method is nil but DaemonSetsGetter.DaemonSets was just called") } diff --git a/apis/apps/v1beta2/fakes/zz_generated_deployment_mock.go b/apis/apps/v1/fakes/zz_generated_deployment_mock.go similarity index 86% rename from apis/apps/v1beta2/fakes/zz_generated_deployment_mock.go rename to apis/apps/v1/fakes/zz_generated_deployment_mock.go index 63124a34..7dcee5ad 100644 --- a/apis/apps/v1beta2/fakes/zz_generated_deployment_mock.go +++ b/apis/apps/v1/fakes/zz_generated_deployment_mock.go @@ -9,9 +9,9 @@ import ( controller "github.com/rancher/norman/controller" objectclient "github.com/rancher/norman/objectclient" - v1beta2a "github.com/rancher/types/apis/apps/v1beta2" - v1beta2 "k8s.io/api/apps/v1beta2" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" + v1a "github.com/rancher/types/apis/apps/v1" + v1 "k8s.io/api/apps/v1" + v1b "k8s.io/apimachinery/pkg/apis/meta/v1" labels "k8s.io/apimachinery/pkg/labels" watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" @@ -24,7 +24,7 @@ var ( // Ensure, that DeploymentListerMock does implement DeploymentLister. // If this is not the case, regenerate this file with moq. -var _ v1beta2a.DeploymentLister = &DeploymentListerMock{} +var _ v1a.DeploymentLister = &DeploymentListerMock{} // DeploymentListerMock is a mock implementation of DeploymentLister. // @@ -32,10 +32,10 @@ var _ v1beta2a.DeploymentLister = &DeploymentListerMock{} // // // make and configure a mocked DeploymentLister // mockedDeploymentLister := &DeploymentListerMock{ -// GetFunc: func(namespace string, name string) (*v1beta2.Deployment, error) { +// GetFunc: func(namespace string, name string) (*v1.Deployment, error) { // panic("mock out the Get method") // }, -// ListFunc: func(namespace string, selector labels.Selector) ([]*v1beta2.Deployment, error) { +// ListFunc: func(namespace string, selector labels.Selector) ([]*v1.Deployment, error) { // panic("mock out the List method") // }, // } @@ -46,10 +46,10 @@ var _ v1beta2a.DeploymentLister = &DeploymentListerMock{} // } type DeploymentListerMock struct { // GetFunc mocks the Get method. - GetFunc func(namespace string, name string) (*v1beta2.Deployment, error) + GetFunc func(namespace string, name string) (*v1.Deployment, error) // ListFunc mocks the List method. - ListFunc func(namespace string, selector labels.Selector) ([]*v1beta2.Deployment, error) + ListFunc func(namespace string, selector labels.Selector) ([]*v1.Deployment, error) // calls tracks calls to the methods. calls struct { @@ -71,7 +71,7 @@ type DeploymentListerMock struct { } // Get calls GetFunc. -func (mock *DeploymentListerMock) Get(namespace string, name string) (*v1beta2.Deployment, error) { +func (mock *DeploymentListerMock) Get(namespace string, name string) (*v1.Deployment, error) { if mock.GetFunc == nil { panic("DeploymentListerMock.GetFunc: method is nil but DeploymentLister.Get was just called") } @@ -106,7 +106,7 @@ func (mock *DeploymentListerMock) GetCalls() []struct { } // List calls ListFunc. -func (mock *DeploymentListerMock) List(namespace string, selector labels.Selector) ([]*v1beta2.Deployment, error) { +func (mock *DeploymentListerMock) List(namespace string, selector labels.Selector) ([]*v1.Deployment, error) { if mock.ListFunc == nil { panic("DeploymentListerMock.ListFunc: method is nil but DeploymentLister.List was just called") } @@ -155,7 +155,7 @@ var ( // Ensure, that DeploymentControllerMock does implement DeploymentController. // If this is not the case, regenerate this file with moq. -var _ v1beta2a.DeploymentController = &DeploymentControllerMock{} +var _ v1a.DeploymentController = &DeploymentControllerMock{} // DeploymentControllerMock is a mock implementation of DeploymentController. // @@ -163,16 +163,16 @@ var _ v1beta2a.DeploymentController = &DeploymentControllerMock{} // // // make and configure a mocked DeploymentController // mockedDeploymentController := &DeploymentControllerMock{ -// AddClusterScopedFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1beta2a.DeploymentHandlerFunc) { +// AddClusterScopedFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1a.DeploymentHandlerFunc) { // panic("mock out the AddClusterScopedFeatureHandler method") // }, -// AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, handler v1beta2a.DeploymentHandlerFunc) { +// AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, handler v1a.DeploymentHandlerFunc) { // panic("mock out the AddClusterScopedHandler method") // }, -// AddFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, sync v1beta2a.DeploymentHandlerFunc) { +// AddFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, sync v1a.DeploymentHandlerFunc) { // panic("mock out the AddFeatureHandler method") // }, -// AddHandlerFunc: func(ctx context.Context, name string, handler v1beta2a.DeploymentHandlerFunc) { +// AddHandlerFunc: func(ctx context.Context, name string, handler v1a.DeploymentHandlerFunc) { // panic("mock out the AddHandler method") // }, // EnqueueFunc: func(namespace string, name string) { @@ -184,7 +184,7 @@ var _ v1beta2a.DeploymentController = &DeploymentControllerMock{} // InformerFunc: func() cache.SharedIndexInformer { // panic("mock out the Informer method") // }, -// ListerFunc: func() v1beta2a.DeploymentLister { +// ListerFunc: func() v1a.DeploymentLister { // panic("mock out the Lister method") // }, // StartFunc: func(ctx context.Context, threadiness int) error { @@ -201,16 +201,16 @@ var _ v1beta2a.DeploymentController = &DeploymentControllerMock{} // } type DeploymentControllerMock struct { // AddClusterScopedFeatureHandlerFunc mocks the AddClusterScopedFeatureHandler method. - AddClusterScopedFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1beta2a.DeploymentHandlerFunc) + AddClusterScopedFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1a.DeploymentHandlerFunc) // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. - AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, handler v1beta2a.DeploymentHandlerFunc) + AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, handler v1a.DeploymentHandlerFunc) // AddFeatureHandlerFunc mocks the AddFeatureHandler method. - AddFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, sync v1beta2a.DeploymentHandlerFunc) + AddFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, sync v1a.DeploymentHandlerFunc) // AddHandlerFunc mocks the AddHandler method. - AddHandlerFunc func(ctx context.Context, name string, handler v1beta2a.DeploymentHandlerFunc) + AddHandlerFunc func(ctx context.Context, name string, handler v1a.DeploymentHandlerFunc) // EnqueueFunc mocks the Enqueue method. EnqueueFunc func(namespace string, name string) @@ -222,7 +222,7 @@ type DeploymentControllerMock struct { InformerFunc func() cache.SharedIndexInformer // ListerFunc mocks the Lister method. - ListerFunc func() v1beta2a.DeploymentLister + ListerFunc func() v1a.DeploymentLister // StartFunc mocks the Start method. StartFunc func(ctx context.Context, threadiness int) error @@ -243,7 +243,7 @@ type DeploymentControllerMock struct { // ClusterName is the clusterName argument value. ClusterName string // Handler is the handler argument value. - Handler v1beta2a.DeploymentHandlerFunc + Handler v1a.DeploymentHandlerFunc } // AddClusterScopedHandler holds details about calls to the AddClusterScopedHandler method. AddClusterScopedHandler []struct { @@ -254,7 +254,7 @@ type DeploymentControllerMock struct { // ClusterName is the clusterName argument value. ClusterName string // Handler is the handler argument value. - Handler v1beta2a.DeploymentHandlerFunc + Handler v1a.DeploymentHandlerFunc } // AddFeatureHandler holds details about calls to the AddFeatureHandler method. AddFeatureHandler []struct { @@ -265,7 +265,7 @@ type DeploymentControllerMock struct { // Name is the name argument value. Name string // Sync is the sync argument value. - Sync v1beta2a.DeploymentHandlerFunc + Sync v1a.DeploymentHandlerFunc } // AddHandler holds details about calls to the AddHandler method. AddHandler []struct { @@ -274,7 +274,7 @@ type DeploymentControllerMock struct { // Name is the name argument value. Name string // Handler is the handler argument value. - Handler v1beta2a.DeploymentHandlerFunc + Handler v1a.DeploymentHandlerFunc } // Enqueue holds details about calls to the Enqueue method. Enqueue []struct { @@ -308,7 +308,7 @@ type DeploymentControllerMock struct { } // AddClusterScopedFeatureHandler calls AddClusterScopedFeatureHandlerFunc. -func (mock *DeploymentControllerMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1beta2a.DeploymentHandlerFunc) { +func (mock *DeploymentControllerMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1a.DeploymentHandlerFunc) { if mock.AddClusterScopedFeatureHandlerFunc == nil { panic("DeploymentControllerMock.AddClusterScopedFeatureHandlerFunc: method is nil but DeploymentController.AddClusterScopedFeatureHandler was just called") } @@ -317,7 +317,7 @@ func (mock *DeploymentControllerMock) AddClusterScopedFeatureHandler(ctx context Enabled func() bool Name string ClusterName string - Handler v1beta2a.DeploymentHandlerFunc + Handler v1a.DeploymentHandlerFunc }{ Ctx: ctx, Enabled: enabled, @@ -339,14 +339,14 @@ func (mock *DeploymentControllerMock) AddClusterScopedFeatureHandlerCalls() []st Enabled func() bool Name string ClusterName string - Handler v1beta2a.DeploymentHandlerFunc + Handler v1a.DeploymentHandlerFunc } { var calls []struct { Ctx context.Context Enabled func() bool Name string ClusterName string - Handler v1beta2a.DeploymentHandlerFunc + Handler v1a.DeploymentHandlerFunc } lockDeploymentControllerMockAddClusterScopedFeatureHandler.RLock() calls = mock.calls.AddClusterScopedFeatureHandler @@ -355,7 +355,7 @@ func (mock *DeploymentControllerMock) AddClusterScopedFeatureHandlerCalls() []st } // AddClusterScopedHandler calls AddClusterScopedHandlerFunc. -func (mock *DeploymentControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, handler v1beta2a.DeploymentHandlerFunc) { +func (mock *DeploymentControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, handler v1a.DeploymentHandlerFunc) { if mock.AddClusterScopedHandlerFunc == nil { panic("DeploymentControllerMock.AddClusterScopedHandlerFunc: method is nil but DeploymentController.AddClusterScopedHandler was just called") } @@ -363,7 +363,7 @@ func (mock *DeploymentControllerMock) AddClusterScopedHandler(ctx context.Contex Ctx context.Context Name string ClusterName string - Handler v1beta2a.DeploymentHandlerFunc + Handler v1a.DeploymentHandlerFunc }{ Ctx: ctx, Name: name, @@ -383,13 +383,13 @@ func (mock *DeploymentControllerMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string - Handler v1beta2a.DeploymentHandlerFunc + Handler v1a.DeploymentHandlerFunc } { var calls []struct { Ctx context.Context Name string ClusterName string - Handler v1beta2a.DeploymentHandlerFunc + Handler v1a.DeploymentHandlerFunc } lockDeploymentControllerMockAddClusterScopedHandler.RLock() calls = mock.calls.AddClusterScopedHandler @@ -398,7 +398,7 @@ func (mock *DeploymentControllerMock) AddClusterScopedHandlerCalls() []struct { } // AddFeatureHandler calls AddFeatureHandlerFunc. -func (mock *DeploymentControllerMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync v1beta2a.DeploymentHandlerFunc) { +func (mock *DeploymentControllerMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync v1a.DeploymentHandlerFunc) { if mock.AddFeatureHandlerFunc == nil { panic("DeploymentControllerMock.AddFeatureHandlerFunc: method is nil but DeploymentController.AddFeatureHandler was just called") } @@ -406,7 +406,7 @@ func (mock *DeploymentControllerMock) AddFeatureHandler(ctx context.Context, ena Ctx context.Context Enabled func() bool Name string - Sync v1beta2a.DeploymentHandlerFunc + Sync v1a.DeploymentHandlerFunc }{ Ctx: ctx, Enabled: enabled, @@ -426,13 +426,13 @@ func (mock *DeploymentControllerMock) AddFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string - Sync v1beta2a.DeploymentHandlerFunc + Sync v1a.DeploymentHandlerFunc } { var calls []struct { Ctx context.Context Enabled func() bool Name string - Sync v1beta2a.DeploymentHandlerFunc + Sync v1a.DeploymentHandlerFunc } lockDeploymentControllerMockAddFeatureHandler.RLock() calls = mock.calls.AddFeatureHandler @@ -441,14 +441,14 @@ func (mock *DeploymentControllerMock) AddFeatureHandlerCalls() []struct { } // AddHandler calls AddHandlerFunc. -func (mock *DeploymentControllerMock) AddHandler(ctx context.Context, name string, handler v1beta2a.DeploymentHandlerFunc) { +func (mock *DeploymentControllerMock) AddHandler(ctx context.Context, name string, handler v1a.DeploymentHandlerFunc) { if mock.AddHandlerFunc == nil { panic("DeploymentControllerMock.AddHandlerFunc: method is nil but DeploymentController.AddHandler was just called") } callInfo := struct { Ctx context.Context Name string - Handler v1beta2a.DeploymentHandlerFunc + Handler v1a.DeploymentHandlerFunc }{ Ctx: ctx, Name: name, @@ -466,12 +466,12 @@ func (mock *DeploymentControllerMock) AddHandler(ctx context.Context, name strin func (mock *DeploymentControllerMock) AddHandlerCalls() []struct { Ctx context.Context Name string - Handler v1beta2a.DeploymentHandlerFunc + Handler v1a.DeploymentHandlerFunc } { var calls []struct { Ctx context.Context Name string - Handler v1beta2a.DeploymentHandlerFunc + Handler v1a.DeploymentHandlerFunc } lockDeploymentControllerMockAddHandler.RLock() calls = mock.calls.AddHandler @@ -567,7 +567,7 @@ func (mock *DeploymentControllerMock) InformerCalls() []struct { } // Lister calls ListerFunc. -func (mock *DeploymentControllerMock) Lister() v1beta2a.DeploymentLister { +func (mock *DeploymentControllerMock) Lister() v1a.DeploymentLister { if mock.ListerFunc == nil { panic("DeploymentControllerMock.ListerFunc: method is nil but DeploymentController.Lister was just called") } @@ -682,7 +682,7 @@ var ( // Ensure, that DeploymentInterfaceMock does implement DeploymentInterface. // If this is not the case, regenerate this file with moq. -var _ v1beta2a.DeploymentInterface = &DeploymentInterfaceMock{} +var _ v1a.DeploymentInterface = &DeploymentInterfaceMock{} // DeploymentInterfaceMock is a mock implementation of DeploymentInterface. // @@ -690,61 +690,61 @@ var _ v1beta2a.DeploymentInterface = &DeploymentInterfaceMock{} // // // make and configure a mocked DeploymentInterface // mockedDeploymentInterface := &DeploymentInterfaceMock{ -// AddClusterScopedFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1beta2a.DeploymentHandlerFunc) { +// AddClusterScopedFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1a.DeploymentHandlerFunc) { // panic("mock out the AddClusterScopedFeatureHandler method") // }, -// AddClusterScopedFeatureLifecycleFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v1beta2a.DeploymentLifecycle) { +// AddClusterScopedFeatureLifecycleFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v1a.DeploymentLifecycle) { // panic("mock out the AddClusterScopedFeatureLifecycle method") // }, -// AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, sync v1beta2a.DeploymentHandlerFunc) { +// AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, sync v1a.DeploymentHandlerFunc) { // panic("mock out the AddClusterScopedHandler method") // }, -// AddClusterScopedLifecycleFunc: func(ctx context.Context, name string, clusterName string, lifecycle v1beta2a.DeploymentLifecycle) { +// AddClusterScopedLifecycleFunc: func(ctx context.Context, name string, clusterName string, lifecycle v1a.DeploymentLifecycle) { // panic("mock out the AddClusterScopedLifecycle method") // }, -// AddFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, sync v1beta2a.DeploymentHandlerFunc) { +// AddFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, sync v1a.DeploymentHandlerFunc) { // panic("mock out the AddFeatureHandler method") // }, -// AddFeatureLifecycleFunc: func(ctx context.Context, enabled func() bool, name string, lifecycle v1beta2a.DeploymentLifecycle) { +// AddFeatureLifecycleFunc: func(ctx context.Context, enabled func() bool, name string, lifecycle v1a.DeploymentLifecycle) { // panic("mock out the AddFeatureLifecycle method") // }, -// AddHandlerFunc: func(ctx context.Context, name string, sync v1beta2a.DeploymentHandlerFunc) { +// AddHandlerFunc: func(ctx context.Context, name string, sync v1a.DeploymentHandlerFunc) { // panic("mock out the AddHandler method") // }, -// AddLifecycleFunc: func(ctx context.Context, name string, lifecycle v1beta2a.DeploymentLifecycle) { +// AddLifecycleFunc: func(ctx context.Context, name string, lifecycle v1a.DeploymentLifecycle) { // panic("mock out the AddLifecycle method") // }, -// ControllerFunc: func() v1beta2a.DeploymentController { +// ControllerFunc: func() v1a.DeploymentController { // panic("mock out the Controller method") // }, -// CreateFunc: func(in1 *v1beta2.Deployment) (*v1beta2.Deployment, error) { +// CreateFunc: func(in1 *v1.Deployment) (*v1.Deployment, error) { // panic("mock out the Create method") // }, -// DeleteFunc: func(name string, options *v1.DeleteOptions) error { +// DeleteFunc: func(name string, options *v1b.DeleteOptions) error { // panic("mock out the Delete method") // }, -// DeleteCollectionFunc: func(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error { +// DeleteCollectionFunc: func(deleteOpts *v1b.DeleteOptions, listOpts v1b.ListOptions) error { // panic("mock out the DeleteCollection method") // }, -// DeleteNamespacedFunc: func(namespace string, name string, options *v1.DeleteOptions) error { +// DeleteNamespacedFunc: func(namespace string, name string, options *v1b.DeleteOptions) error { // panic("mock out the DeleteNamespaced method") // }, -// GetFunc: func(name string, opts v1.GetOptions) (*v1beta2.Deployment, error) { +// GetFunc: func(name string, opts v1b.GetOptions) (*v1.Deployment, error) { // panic("mock out the Get method") // }, -// GetNamespacedFunc: func(namespace string, name string, opts v1.GetOptions) (*v1beta2.Deployment, error) { +// GetNamespacedFunc: func(namespace string, name string, opts v1b.GetOptions) (*v1.Deployment, error) { // panic("mock out the GetNamespaced method") // }, -// ListFunc: func(opts v1.ListOptions) (*v1beta2a.DeploymentList, error) { +// ListFunc: func(opts v1b.ListOptions) (*v1a.DeploymentList, error) { // panic("mock out the List method") // }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, -// UpdateFunc: func(in1 *v1beta2.Deployment) (*v1beta2.Deployment, error) { +// UpdateFunc: func(in1 *v1.Deployment) (*v1.Deployment, error) { // panic("mock out the Update method") // }, -// WatchFunc: func(opts v1.ListOptions) (watch.Interface, error) { +// WatchFunc: func(opts v1b.ListOptions) (watch.Interface, error) { // panic("mock out the Watch method") // }, // } @@ -755,61 +755,61 @@ var _ v1beta2a.DeploymentInterface = &DeploymentInterfaceMock{} // } type DeploymentInterfaceMock struct { // AddClusterScopedFeatureHandlerFunc mocks the AddClusterScopedFeatureHandler method. - AddClusterScopedFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1beta2a.DeploymentHandlerFunc) + AddClusterScopedFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1a.DeploymentHandlerFunc) // AddClusterScopedFeatureLifecycleFunc mocks the AddClusterScopedFeatureLifecycle method. - AddClusterScopedFeatureLifecycleFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v1beta2a.DeploymentLifecycle) + AddClusterScopedFeatureLifecycleFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v1a.DeploymentLifecycle) // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. - AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, sync v1beta2a.DeploymentHandlerFunc) + AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, sync v1a.DeploymentHandlerFunc) // AddClusterScopedLifecycleFunc mocks the AddClusterScopedLifecycle method. - AddClusterScopedLifecycleFunc func(ctx context.Context, name string, clusterName string, lifecycle v1beta2a.DeploymentLifecycle) + AddClusterScopedLifecycleFunc func(ctx context.Context, name string, clusterName string, lifecycle v1a.DeploymentLifecycle) // AddFeatureHandlerFunc mocks the AddFeatureHandler method. - AddFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, sync v1beta2a.DeploymentHandlerFunc) + AddFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, sync v1a.DeploymentHandlerFunc) // AddFeatureLifecycleFunc mocks the AddFeatureLifecycle method. - AddFeatureLifecycleFunc func(ctx context.Context, enabled func() bool, name string, lifecycle v1beta2a.DeploymentLifecycle) + AddFeatureLifecycleFunc func(ctx context.Context, enabled func() bool, name string, lifecycle v1a.DeploymentLifecycle) // AddHandlerFunc mocks the AddHandler method. - AddHandlerFunc func(ctx context.Context, name string, sync v1beta2a.DeploymentHandlerFunc) + AddHandlerFunc func(ctx context.Context, name string, sync v1a.DeploymentHandlerFunc) // AddLifecycleFunc mocks the AddLifecycle method. - AddLifecycleFunc func(ctx context.Context, name string, lifecycle v1beta2a.DeploymentLifecycle) + AddLifecycleFunc func(ctx context.Context, name string, lifecycle v1a.DeploymentLifecycle) // ControllerFunc mocks the Controller method. - ControllerFunc func() v1beta2a.DeploymentController + ControllerFunc func() v1a.DeploymentController // CreateFunc mocks the Create method. - CreateFunc func(in1 *v1beta2.Deployment) (*v1beta2.Deployment, error) + CreateFunc func(in1 *v1.Deployment) (*v1.Deployment, error) // DeleteFunc mocks the Delete method. - DeleteFunc func(name string, options *v1.DeleteOptions) error + DeleteFunc func(name string, options *v1b.DeleteOptions) error // DeleteCollectionFunc mocks the DeleteCollection method. - DeleteCollectionFunc func(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error + DeleteCollectionFunc func(deleteOpts *v1b.DeleteOptions, listOpts v1b.ListOptions) error // DeleteNamespacedFunc mocks the DeleteNamespaced method. - DeleteNamespacedFunc func(namespace string, name string, options *v1.DeleteOptions) error + DeleteNamespacedFunc func(namespace string, name string, options *v1b.DeleteOptions) error // GetFunc mocks the Get method. - GetFunc func(name string, opts v1.GetOptions) (*v1beta2.Deployment, error) + GetFunc func(name string, opts v1b.GetOptions) (*v1.Deployment, error) // GetNamespacedFunc mocks the GetNamespaced method. - GetNamespacedFunc func(namespace string, name string, opts v1.GetOptions) (*v1beta2.Deployment, error) + GetNamespacedFunc func(namespace string, name string, opts v1b.GetOptions) (*v1.Deployment, error) // ListFunc mocks the List method. - ListFunc func(opts v1.ListOptions) (*v1beta2a.DeploymentList, error) + ListFunc func(opts v1b.ListOptions) (*v1a.DeploymentList, error) // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient // UpdateFunc mocks the Update method. - UpdateFunc func(in1 *v1beta2.Deployment) (*v1beta2.Deployment, error) + UpdateFunc func(in1 *v1.Deployment) (*v1.Deployment, error) // WatchFunc mocks the Watch method. - WatchFunc func(opts v1.ListOptions) (watch.Interface, error) + WatchFunc func(opts v1b.ListOptions) (watch.Interface, error) // calls tracks calls to the methods. calls struct { @@ -824,7 +824,7 @@ type DeploymentInterfaceMock struct { // ClusterName is the clusterName argument value. ClusterName string // Sync is the sync argument value. - Sync v1beta2a.DeploymentHandlerFunc + Sync v1a.DeploymentHandlerFunc } // AddClusterScopedFeatureLifecycle holds details about calls to the AddClusterScopedFeatureLifecycle method. AddClusterScopedFeatureLifecycle []struct { @@ -837,7 +837,7 @@ type DeploymentInterfaceMock struct { // ClusterName is the clusterName argument value. ClusterName string // Lifecycle is the lifecycle argument value. - Lifecycle v1beta2a.DeploymentLifecycle + Lifecycle v1a.DeploymentLifecycle } // AddClusterScopedHandler holds details about calls to the AddClusterScopedHandler method. AddClusterScopedHandler []struct { @@ -848,7 +848,7 @@ type DeploymentInterfaceMock struct { // ClusterName is the clusterName argument value. ClusterName string // Sync is the sync argument value. - Sync v1beta2a.DeploymentHandlerFunc + Sync v1a.DeploymentHandlerFunc } // AddClusterScopedLifecycle holds details about calls to the AddClusterScopedLifecycle method. AddClusterScopedLifecycle []struct { @@ -859,7 +859,7 @@ type DeploymentInterfaceMock struct { // ClusterName is the clusterName argument value. ClusterName string // Lifecycle is the lifecycle argument value. - Lifecycle v1beta2a.DeploymentLifecycle + Lifecycle v1a.DeploymentLifecycle } // AddFeatureHandler holds details about calls to the AddFeatureHandler method. AddFeatureHandler []struct { @@ -870,7 +870,7 @@ type DeploymentInterfaceMock struct { // Name is the name argument value. Name string // Sync is the sync argument value. - Sync v1beta2a.DeploymentHandlerFunc + Sync v1a.DeploymentHandlerFunc } // AddFeatureLifecycle holds details about calls to the AddFeatureLifecycle method. AddFeatureLifecycle []struct { @@ -881,7 +881,7 @@ type DeploymentInterfaceMock struct { // Name is the name argument value. Name string // Lifecycle is the lifecycle argument value. - Lifecycle v1beta2a.DeploymentLifecycle + Lifecycle v1a.DeploymentLifecycle } // AddHandler holds details about calls to the AddHandler method. AddHandler []struct { @@ -890,7 +890,7 @@ type DeploymentInterfaceMock struct { // Name is the name argument value. Name string // Sync is the sync argument value. - Sync v1beta2a.DeploymentHandlerFunc + Sync v1a.DeploymentHandlerFunc } // AddLifecycle holds details about calls to the AddLifecycle method. AddLifecycle []struct { @@ -899,7 +899,7 @@ type DeploymentInterfaceMock struct { // Name is the name argument value. Name string // Lifecycle is the lifecycle argument value. - Lifecycle v1beta2a.DeploymentLifecycle + Lifecycle v1a.DeploymentLifecycle } // Controller holds details about calls to the Controller method. Controller []struct { @@ -907,21 +907,21 @@ type DeploymentInterfaceMock struct { // Create holds details about calls to the Create method. Create []struct { // In1 is the in1 argument value. - In1 *v1beta2.Deployment + In1 *v1.Deployment } // Delete holds details about calls to the Delete method. Delete []struct { // Name is the name argument value. Name string // Options is the options argument value. - Options *v1.DeleteOptions + Options *v1b.DeleteOptions } // DeleteCollection holds details about calls to the DeleteCollection method. DeleteCollection []struct { // DeleteOpts is the deleteOpts argument value. - DeleteOpts *v1.DeleteOptions + DeleteOpts *v1b.DeleteOptions // ListOpts is the listOpts argument value. - ListOpts v1.ListOptions + ListOpts v1b.ListOptions } // DeleteNamespaced holds details about calls to the DeleteNamespaced method. DeleteNamespaced []struct { @@ -930,14 +930,14 @@ type DeploymentInterfaceMock struct { // Name is the name argument value. Name string // Options is the options argument value. - Options *v1.DeleteOptions + Options *v1b.DeleteOptions } // Get holds details about calls to the Get method. Get []struct { // Name is the name argument value. Name string // Opts is the opts argument value. - Opts v1.GetOptions + Opts v1b.GetOptions } // GetNamespaced holds details about calls to the GetNamespaced method. GetNamespaced []struct { @@ -946,12 +946,12 @@ type DeploymentInterfaceMock struct { // Name is the name argument value. Name string // Opts is the opts argument value. - Opts v1.GetOptions + Opts v1b.GetOptions } // List holds details about calls to the List method. List []struct { // Opts is the opts argument value. - Opts v1.ListOptions + Opts v1b.ListOptions } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { @@ -959,18 +959,18 @@ type DeploymentInterfaceMock struct { // Update holds details about calls to the Update method. Update []struct { // In1 is the in1 argument value. - In1 *v1beta2.Deployment + In1 *v1.Deployment } // Watch holds details about calls to the Watch method. Watch []struct { // Opts is the opts argument value. - Opts v1.ListOptions + Opts v1b.ListOptions } } } // AddClusterScopedFeatureHandler calls AddClusterScopedFeatureHandlerFunc. -func (mock *DeploymentInterfaceMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1beta2a.DeploymentHandlerFunc) { +func (mock *DeploymentInterfaceMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1a.DeploymentHandlerFunc) { if mock.AddClusterScopedFeatureHandlerFunc == nil { panic("DeploymentInterfaceMock.AddClusterScopedFeatureHandlerFunc: method is nil but DeploymentInterface.AddClusterScopedFeatureHandler was just called") } @@ -979,7 +979,7 @@ func (mock *DeploymentInterfaceMock) AddClusterScopedFeatureHandler(ctx context. Enabled func() bool Name string ClusterName string - Sync v1beta2a.DeploymentHandlerFunc + Sync v1a.DeploymentHandlerFunc }{ Ctx: ctx, Enabled: enabled, @@ -1001,14 +1001,14 @@ func (mock *DeploymentInterfaceMock) AddClusterScopedFeatureHandlerCalls() []str Enabled func() bool Name string ClusterName string - Sync v1beta2a.DeploymentHandlerFunc + Sync v1a.DeploymentHandlerFunc } { var calls []struct { Ctx context.Context Enabled func() bool Name string ClusterName string - Sync v1beta2a.DeploymentHandlerFunc + Sync v1a.DeploymentHandlerFunc } lockDeploymentInterfaceMockAddClusterScopedFeatureHandler.RLock() calls = mock.calls.AddClusterScopedFeatureHandler @@ -1017,7 +1017,7 @@ func (mock *DeploymentInterfaceMock) AddClusterScopedFeatureHandlerCalls() []str } // AddClusterScopedFeatureLifecycle calls AddClusterScopedFeatureLifecycleFunc. -func (mock *DeploymentInterfaceMock) AddClusterScopedFeatureLifecycle(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v1beta2a.DeploymentLifecycle) { +func (mock *DeploymentInterfaceMock) AddClusterScopedFeatureLifecycle(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v1a.DeploymentLifecycle) { if mock.AddClusterScopedFeatureLifecycleFunc == nil { panic("DeploymentInterfaceMock.AddClusterScopedFeatureLifecycleFunc: method is nil but DeploymentInterface.AddClusterScopedFeatureLifecycle was just called") } @@ -1026,7 +1026,7 @@ func (mock *DeploymentInterfaceMock) AddClusterScopedFeatureLifecycle(ctx contex Enabled func() bool Name string ClusterName string - Lifecycle v1beta2a.DeploymentLifecycle + Lifecycle v1a.DeploymentLifecycle }{ Ctx: ctx, Enabled: enabled, @@ -1048,14 +1048,14 @@ func (mock *DeploymentInterfaceMock) AddClusterScopedFeatureLifecycleCalls() []s Enabled func() bool Name string ClusterName string - Lifecycle v1beta2a.DeploymentLifecycle + Lifecycle v1a.DeploymentLifecycle } { var calls []struct { Ctx context.Context Enabled func() bool Name string ClusterName string - Lifecycle v1beta2a.DeploymentLifecycle + Lifecycle v1a.DeploymentLifecycle } lockDeploymentInterfaceMockAddClusterScopedFeatureLifecycle.RLock() calls = mock.calls.AddClusterScopedFeatureLifecycle @@ -1064,7 +1064,7 @@ func (mock *DeploymentInterfaceMock) AddClusterScopedFeatureLifecycleCalls() []s } // AddClusterScopedHandler calls AddClusterScopedHandlerFunc. -func (mock *DeploymentInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, sync v1beta2a.DeploymentHandlerFunc) { +func (mock *DeploymentInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, sync v1a.DeploymentHandlerFunc) { if mock.AddClusterScopedHandlerFunc == nil { panic("DeploymentInterfaceMock.AddClusterScopedHandlerFunc: method is nil but DeploymentInterface.AddClusterScopedHandler was just called") } @@ -1072,7 +1072,7 @@ func (mock *DeploymentInterfaceMock) AddClusterScopedHandler(ctx context.Context Ctx context.Context Name string ClusterName string - Sync v1beta2a.DeploymentHandlerFunc + Sync v1a.DeploymentHandlerFunc }{ Ctx: ctx, Name: name, @@ -1092,13 +1092,13 @@ func (mock *DeploymentInterfaceMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string - Sync v1beta2a.DeploymentHandlerFunc + Sync v1a.DeploymentHandlerFunc } { var calls []struct { Ctx context.Context Name string ClusterName string - Sync v1beta2a.DeploymentHandlerFunc + Sync v1a.DeploymentHandlerFunc } lockDeploymentInterfaceMockAddClusterScopedHandler.RLock() calls = mock.calls.AddClusterScopedHandler @@ -1107,7 +1107,7 @@ func (mock *DeploymentInterfaceMock) AddClusterScopedHandlerCalls() []struct { } // AddClusterScopedLifecycle calls AddClusterScopedLifecycleFunc. -func (mock *DeploymentInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, lifecycle v1beta2a.DeploymentLifecycle) { +func (mock *DeploymentInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, lifecycle v1a.DeploymentLifecycle) { if mock.AddClusterScopedLifecycleFunc == nil { panic("DeploymentInterfaceMock.AddClusterScopedLifecycleFunc: method is nil but DeploymentInterface.AddClusterScopedLifecycle was just called") } @@ -1115,7 +1115,7 @@ func (mock *DeploymentInterfaceMock) AddClusterScopedLifecycle(ctx context.Conte Ctx context.Context Name string ClusterName string - Lifecycle v1beta2a.DeploymentLifecycle + Lifecycle v1a.DeploymentLifecycle }{ Ctx: ctx, Name: name, @@ -1135,13 +1135,13 @@ func (mock *DeploymentInterfaceMock) AddClusterScopedLifecycleCalls() []struct { Ctx context.Context Name string ClusterName string - Lifecycle v1beta2a.DeploymentLifecycle + Lifecycle v1a.DeploymentLifecycle } { var calls []struct { Ctx context.Context Name string ClusterName string - Lifecycle v1beta2a.DeploymentLifecycle + Lifecycle v1a.DeploymentLifecycle } lockDeploymentInterfaceMockAddClusterScopedLifecycle.RLock() calls = mock.calls.AddClusterScopedLifecycle @@ -1150,7 +1150,7 @@ func (mock *DeploymentInterfaceMock) AddClusterScopedLifecycleCalls() []struct { } // AddFeatureHandler calls AddFeatureHandlerFunc. -func (mock *DeploymentInterfaceMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync v1beta2a.DeploymentHandlerFunc) { +func (mock *DeploymentInterfaceMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync v1a.DeploymentHandlerFunc) { if mock.AddFeatureHandlerFunc == nil { panic("DeploymentInterfaceMock.AddFeatureHandlerFunc: method is nil but DeploymentInterface.AddFeatureHandler was just called") } @@ -1158,7 +1158,7 @@ func (mock *DeploymentInterfaceMock) AddFeatureHandler(ctx context.Context, enab Ctx context.Context Enabled func() bool Name string - Sync v1beta2a.DeploymentHandlerFunc + Sync v1a.DeploymentHandlerFunc }{ Ctx: ctx, Enabled: enabled, @@ -1178,13 +1178,13 @@ func (mock *DeploymentInterfaceMock) AddFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string - Sync v1beta2a.DeploymentHandlerFunc + Sync v1a.DeploymentHandlerFunc } { var calls []struct { Ctx context.Context Enabled func() bool Name string - Sync v1beta2a.DeploymentHandlerFunc + Sync v1a.DeploymentHandlerFunc } lockDeploymentInterfaceMockAddFeatureHandler.RLock() calls = mock.calls.AddFeatureHandler @@ -1193,7 +1193,7 @@ func (mock *DeploymentInterfaceMock) AddFeatureHandlerCalls() []struct { } // AddFeatureLifecycle calls AddFeatureLifecycleFunc. -func (mock *DeploymentInterfaceMock) AddFeatureLifecycle(ctx context.Context, enabled func() bool, name string, lifecycle v1beta2a.DeploymentLifecycle) { +func (mock *DeploymentInterfaceMock) AddFeatureLifecycle(ctx context.Context, enabled func() bool, name string, lifecycle v1a.DeploymentLifecycle) { if mock.AddFeatureLifecycleFunc == nil { panic("DeploymentInterfaceMock.AddFeatureLifecycleFunc: method is nil but DeploymentInterface.AddFeatureLifecycle was just called") } @@ -1201,7 +1201,7 @@ func (mock *DeploymentInterfaceMock) AddFeatureLifecycle(ctx context.Context, en Ctx context.Context Enabled func() bool Name string - Lifecycle v1beta2a.DeploymentLifecycle + Lifecycle v1a.DeploymentLifecycle }{ Ctx: ctx, Enabled: enabled, @@ -1221,13 +1221,13 @@ func (mock *DeploymentInterfaceMock) AddFeatureLifecycleCalls() []struct { Ctx context.Context Enabled func() bool Name string - Lifecycle v1beta2a.DeploymentLifecycle + Lifecycle v1a.DeploymentLifecycle } { var calls []struct { Ctx context.Context Enabled func() bool Name string - Lifecycle v1beta2a.DeploymentLifecycle + Lifecycle v1a.DeploymentLifecycle } lockDeploymentInterfaceMockAddFeatureLifecycle.RLock() calls = mock.calls.AddFeatureLifecycle @@ -1236,14 +1236,14 @@ func (mock *DeploymentInterfaceMock) AddFeatureLifecycleCalls() []struct { } // AddHandler calls AddHandlerFunc. -func (mock *DeploymentInterfaceMock) AddHandler(ctx context.Context, name string, sync v1beta2a.DeploymentHandlerFunc) { +func (mock *DeploymentInterfaceMock) AddHandler(ctx context.Context, name string, sync v1a.DeploymentHandlerFunc) { if mock.AddHandlerFunc == nil { panic("DeploymentInterfaceMock.AddHandlerFunc: method is nil but DeploymentInterface.AddHandler was just called") } callInfo := struct { Ctx context.Context Name string - Sync v1beta2a.DeploymentHandlerFunc + Sync v1a.DeploymentHandlerFunc }{ Ctx: ctx, Name: name, @@ -1261,12 +1261,12 @@ func (mock *DeploymentInterfaceMock) AddHandler(ctx context.Context, name string func (mock *DeploymentInterfaceMock) AddHandlerCalls() []struct { Ctx context.Context Name string - Sync v1beta2a.DeploymentHandlerFunc + Sync v1a.DeploymentHandlerFunc } { var calls []struct { Ctx context.Context Name string - Sync v1beta2a.DeploymentHandlerFunc + Sync v1a.DeploymentHandlerFunc } lockDeploymentInterfaceMockAddHandler.RLock() calls = mock.calls.AddHandler @@ -1275,14 +1275,14 @@ func (mock *DeploymentInterfaceMock) AddHandlerCalls() []struct { } // AddLifecycle calls AddLifecycleFunc. -func (mock *DeploymentInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v1beta2a.DeploymentLifecycle) { +func (mock *DeploymentInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v1a.DeploymentLifecycle) { if mock.AddLifecycleFunc == nil { panic("DeploymentInterfaceMock.AddLifecycleFunc: method is nil but DeploymentInterface.AddLifecycle was just called") } callInfo := struct { Ctx context.Context Name string - Lifecycle v1beta2a.DeploymentLifecycle + Lifecycle v1a.DeploymentLifecycle }{ Ctx: ctx, Name: name, @@ -1300,12 +1300,12 @@ func (mock *DeploymentInterfaceMock) AddLifecycle(ctx context.Context, name stri func (mock *DeploymentInterfaceMock) AddLifecycleCalls() []struct { Ctx context.Context Name string - Lifecycle v1beta2a.DeploymentLifecycle + Lifecycle v1a.DeploymentLifecycle } { var calls []struct { Ctx context.Context Name string - Lifecycle v1beta2a.DeploymentLifecycle + Lifecycle v1a.DeploymentLifecycle } lockDeploymentInterfaceMockAddLifecycle.RLock() calls = mock.calls.AddLifecycle @@ -1314,7 +1314,7 @@ func (mock *DeploymentInterfaceMock) AddLifecycleCalls() []struct { } // Controller calls ControllerFunc. -func (mock *DeploymentInterfaceMock) Controller() v1beta2a.DeploymentController { +func (mock *DeploymentInterfaceMock) Controller() v1a.DeploymentController { if mock.ControllerFunc == nil { panic("DeploymentInterfaceMock.ControllerFunc: method is nil but DeploymentInterface.Controller was just called") } @@ -1340,12 +1340,12 @@ func (mock *DeploymentInterfaceMock) ControllerCalls() []struct { } // Create calls CreateFunc. -func (mock *DeploymentInterfaceMock) Create(in1 *v1beta2.Deployment) (*v1beta2.Deployment, error) { +func (mock *DeploymentInterfaceMock) Create(in1 *v1.Deployment) (*v1.Deployment, error) { if mock.CreateFunc == nil { panic("DeploymentInterfaceMock.CreateFunc: method is nil but DeploymentInterface.Create was just called") } callInfo := struct { - In1 *v1beta2.Deployment + In1 *v1.Deployment }{ In1: in1, } @@ -1359,10 +1359,10 @@ func (mock *DeploymentInterfaceMock) Create(in1 *v1beta2.Deployment) (*v1beta2.D // Check the length with: // len(mockedDeploymentInterface.CreateCalls()) func (mock *DeploymentInterfaceMock) CreateCalls() []struct { - In1 *v1beta2.Deployment + In1 *v1.Deployment } { var calls []struct { - In1 *v1beta2.Deployment + In1 *v1.Deployment } lockDeploymentInterfaceMockCreate.RLock() calls = mock.calls.Create @@ -1371,13 +1371,13 @@ func (mock *DeploymentInterfaceMock) CreateCalls() []struct { } // Delete calls DeleteFunc. -func (mock *DeploymentInterfaceMock) Delete(name string, options *v1.DeleteOptions) error { +func (mock *DeploymentInterfaceMock) Delete(name string, options *v1b.DeleteOptions) error { if mock.DeleteFunc == nil { panic("DeploymentInterfaceMock.DeleteFunc: method is nil but DeploymentInterface.Delete was just called") } callInfo := struct { Name string - Options *v1.DeleteOptions + Options *v1b.DeleteOptions }{ Name: name, Options: options, @@ -1393,11 +1393,11 @@ func (mock *DeploymentInterfaceMock) Delete(name string, options *v1.DeleteOptio // len(mockedDeploymentInterface.DeleteCalls()) func (mock *DeploymentInterfaceMock) DeleteCalls() []struct { Name string - Options *v1.DeleteOptions + Options *v1b.DeleteOptions } { var calls []struct { Name string - Options *v1.DeleteOptions + Options *v1b.DeleteOptions } lockDeploymentInterfaceMockDelete.RLock() calls = mock.calls.Delete @@ -1406,13 +1406,13 @@ func (mock *DeploymentInterfaceMock) DeleteCalls() []struct { } // DeleteCollection calls DeleteCollectionFunc. -func (mock *DeploymentInterfaceMock) DeleteCollection(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error { +func (mock *DeploymentInterfaceMock) DeleteCollection(deleteOpts *v1b.DeleteOptions, listOpts v1b.ListOptions) error { if mock.DeleteCollectionFunc == nil { panic("DeploymentInterfaceMock.DeleteCollectionFunc: method is nil but DeploymentInterface.DeleteCollection was just called") } callInfo := struct { - DeleteOpts *v1.DeleteOptions - ListOpts v1.ListOptions + DeleteOpts *v1b.DeleteOptions + ListOpts v1b.ListOptions }{ DeleteOpts: deleteOpts, ListOpts: listOpts, @@ -1427,12 +1427,12 @@ func (mock *DeploymentInterfaceMock) DeleteCollection(deleteOpts *v1.DeleteOptio // Check the length with: // len(mockedDeploymentInterface.DeleteCollectionCalls()) func (mock *DeploymentInterfaceMock) DeleteCollectionCalls() []struct { - DeleteOpts *v1.DeleteOptions - ListOpts v1.ListOptions + DeleteOpts *v1b.DeleteOptions + ListOpts v1b.ListOptions } { var calls []struct { - DeleteOpts *v1.DeleteOptions - ListOpts v1.ListOptions + DeleteOpts *v1b.DeleteOptions + ListOpts v1b.ListOptions } lockDeploymentInterfaceMockDeleteCollection.RLock() calls = mock.calls.DeleteCollection @@ -1441,14 +1441,14 @@ func (mock *DeploymentInterfaceMock) DeleteCollectionCalls() []struct { } // DeleteNamespaced calls DeleteNamespacedFunc. -func (mock *DeploymentInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1.DeleteOptions) error { +func (mock *DeploymentInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1b.DeleteOptions) error { if mock.DeleteNamespacedFunc == nil { panic("DeploymentInterfaceMock.DeleteNamespacedFunc: method is nil but DeploymentInterface.DeleteNamespaced was just called") } callInfo := struct { Namespace string Name string - Options *v1.DeleteOptions + Options *v1b.DeleteOptions }{ Namespace: namespace, Name: name, @@ -1466,12 +1466,12 @@ func (mock *DeploymentInterfaceMock) DeleteNamespaced(namespace string, name str func (mock *DeploymentInterfaceMock) DeleteNamespacedCalls() []struct { Namespace string Name string - Options *v1.DeleteOptions + Options *v1b.DeleteOptions } { var calls []struct { Namespace string Name string - Options *v1.DeleteOptions + Options *v1b.DeleteOptions } lockDeploymentInterfaceMockDeleteNamespaced.RLock() calls = mock.calls.DeleteNamespaced @@ -1480,13 +1480,13 @@ func (mock *DeploymentInterfaceMock) DeleteNamespacedCalls() []struct { } // Get calls GetFunc. -func (mock *DeploymentInterfaceMock) Get(name string, opts v1.GetOptions) (*v1beta2.Deployment, error) { +func (mock *DeploymentInterfaceMock) Get(name string, opts v1b.GetOptions) (*v1.Deployment, error) { if mock.GetFunc == nil { panic("DeploymentInterfaceMock.GetFunc: method is nil but DeploymentInterface.Get was just called") } callInfo := struct { Name string - Opts v1.GetOptions + Opts v1b.GetOptions }{ Name: name, Opts: opts, @@ -1502,11 +1502,11 @@ func (mock *DeploymentInterfaceMock) Get(name string, opts v1.GetOptions) (*v1be // len(mockedDeploymentInterface.GetCalls()) func (mock *DeploymentInterfaceMock) GetCalls() []struct { Name string - Opts v1.GetOptions + Opts v1b.GetOptions } { var calls []struct { Name string - Opts v1.GetOptions + Opts v1b.GetOptions } lockDeploymentInterfaceMockGet.RLock() calls = mock.calls.Get @@ -1515,14 +1515,14 @@ func (mock *DeploymentInterfaceMock) GetCalls() []struct { } // GetNamespaced calls GetNamespacedFunc. -func (mock *DeploymentInterfaceMock) GetNamespaced(namespace string, name string, opts v1.GetOptions) (*v1beta2.Deployment, error) { +func (mock *DeploymentInterfaceMock) GetNamespaced(namespace string, name string, opts v1b.GetOptions) (*v1.Deployment, error) { if mock.GetNamespacedFunc == nil { panic("DeploymentInterfaceMock.GetNamespacedFunc: method is nil but DeploymentInterface.GetNamespaced was just called") } callInfo := struct { Namespace string Name string - Opts v1.GetOptions + Opts v1b.GetOptions }{ Namespace: namespace, Name: name, @@ -1540,12 +1540,12 @@ func (mock *DeploymentInterfaceMock) GetNamespaced(namespace string, name string func (mock *DeploymentInterfaceMock) GetNamespacedCalls() []struct { Namespace string Name string - Opts v1.GetOptions + Opts v1b.GetOptions } { var calls []struct { Namespace string Name string - Opts v1.GetOptions + Opts v1b.GetOptions } lockDeploymentInterfaceMockGetNamespaced.RLock() calls = mock.calls.GetNamespaced @@ -1554,12 +1554,12 @@ func (mock *DeploymentInterfaceMock) GetNamespacedCalls() []struct { } // List calls ListFunc. -func (mock *DeploymentInterfaceMock) List(opts v1.ListOptions) (*v1beta2a.DeploymentList, error) { +func (mock *DeploymentInterfaceMock) List(opts v1b.ListOptions) (*v1a.DeploymentList, error) { if mock.ListFunc == nil { panic("DeploymentInterfaceMock.ListFunc: method is nil but DeploymentInterface.List was just called") } callInfo := struct { - Opts v1.ListOptions + Opts v1b.ListOptions }{ Opts: opts, } @@ -1573,10 +1573,10 @@ func (mock *DeploymentInterfaceMock) List(opts v1.ListOptions) (*v1beta2a.Deploy // Check the length with: // len(mockedDeploymentInterface.ListCalls()) func (mock *DeploymentInterfaceMock) ListCalls() []struct { - Opts v1.ListOptions + Opts v1b.ListOptions } { var calls []struct { - Opts v1.ListOptions + Opts v1b.ListOptions } lockDeploymentInterfaceMockList.RLock() calls = mock.calls.List @@ -1611,12 +1611,12 @@ func (mock *DeploymentInterfaceMock) ObjectClientCalls() []struct { } // Update calls UpdateFunc. -func (mock *DeploymentInterfaceMock) Update(in1 *v1beta2.Deployment) (*v1beta2.Deployment, error) { +func (mock *DeploymentInterfaceMock) Update(in1 *v1.Deployment) (*v1.Deployment, error) { if mock.UpdateFunc == nil { panic("DeploymentInterfaceMock.UpdateFunc: method is nil but DeploymentInterface.Update was just called") } callInfo := struct { - In1 *v1beta2.Deployment + In1 *v1.Deployment }{ In1: in1, } @@ -1630,10 +1630,10 @@ func (mock *DeploymentInterfaceMock) Update(in1 *v1beta2.Deployment) (*v1beta2.D // Check the length with: // len(mockedDeploymentInterface.UpdateCalls()) func (mock *DeploymentInterfaceMock) UpdateCalls() []struct { - In1 *v1beta2.Deployment + In1 *v1.Deployment } { var calls []struct { - In1 *v1beta2.Deployment + In1 *v1.Deployment } lockDeploymentInterfaceMockUpdate.RLock() calls = mock.calls.Update @@ -1642,12 +1642,12 @@ func (mock *DeploymentInterfaceMock) UpdateCalls() []struct { } // Watch calls WatchFunc. -func (mock *DeploymentInterfaceMock) Watch(opts v1.ListOptions) (watch.Interface, error) { +func (mock *DeploymentInterfaceMock) Watch(opts v1b.ListOptions) (watch.Interface, error) { if mock.WatchFunc == nil { panic("DeploymentInterfaceMock.WatchFunc: method is nil but DeploymentInterface.Watch was just called") } callInfo := struct { - Opts v1.ListOptions + Opts v1b.ListOptions }{ Opts: opts, } @@ -1661,10 +1661,10 @@ func (mock *DeploymentInterfaceMock) Watch(opts v1.ListOptions) (watch.Interface // Check the length with: // len(mockedDeploymentInterface.WatchCalls()) func (mock *DeploymentInterfaceMock) WatchCalls() []struct { - Opts v1.ListOptions + Opts v1b.ListOptions } { var calls []struct { - Opts v1.ListOptions + Opts v1b.ListOptions } lockDeploymentInterfaceMockWatch.RLock() calls = mock.calls.Watch @@ -1678,7 +1678,7 @@ var ( // Ensure, that DeploymentsGetterMock does implement DeploymentsGetter. // If this is not the case, regenerate this file with moq. -var _ v1beta2a.DeploymentsGetter = &DeploymentsGetterMock{} +var _ v1a.DeploymentsGetter = &DeploymentsGetterMock{} // DeploymentsGetterMock is a mock implementation of DeploymentsGetter. // @@ -1686,7 +1686,7 @@ var _ v1beta2a.DeploymentsGetter = &DeploymentsGetterMock{} // // // make and configure a mocked DeploymentsGetter // mockedDeploymentsGetter := &DeploymentsGetterMock{ -// DeploymentsFunc: func(namespace string) v1beta2a.DeploymentInterface { +// DeploymentsFunc: func(namespace string) v1a.DeploymentInterface { // panic("mock out the Deployments method") // }, // } @@ -1697,7 +1697,7 @@ var _ v1beta2a.DeploymentsGetter = &DeploymentsGetterMock{} // } type DeploymentsGetterMock struct { // DeploymentsFunc mocks the Deployments method. - DeploymentsFunc func(namespace string) v1beta2a.DeploymentInterface + DeploymentsFunc func(namespace string) v1a.DeploymentInterface // calls tracks calls to the methods. calls struct { @@ -1710,7 +1710,7 @@ type DeploymentsGetterMock struct { } // Deployments calls DeploymentsFunc. -func (mock *DeploymentsGetterMock) Deployments(namespace string) v1beta2a.DeploymentInterface { +func (mock *DeploymentsGetterMock) Deployments(namespace string) v1a.DeploymentInterface { if mock.DeploymentsFunc == nil { panic("DeploymentsGetterMock.DeploymentsFunc: method is nil but DeploymentsGetter.Deployments was just called") } diff --git a/apis/apps/v1beta2/fakes/zz_generated_replica_set_mock.go b/apis/apps/v1/fakes/zz_generated_replica_set_mock.go similarity index 86% rename from apis/apps/v1beta2/fakes/zz_generated_replica_set_mock.go rename to apis/apps/v1/fakes/zz_generated_replica_set_mock.go index f01655fa..58d708a4 100644 --- a/apis/apps/v1beta2/fakes/zz_generated_replica_set_mock.go +++ b/apis/apps/v1/fakes/zz_generated_replica_set_mock.go @@ -9,9 +9,9 @@ import ( controller "github.com/rancher/norman/controller" objectclient "github.com/rancher/norman/objectclient" - v1beta2a "github.com/rancher/types/apis/apps/v1beta2" - v1beta2 "k8s.io/api/apps/v1beta2" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" + v1a "github.com/rancher/types/apis/apps/v1" + v1 "k8s.io/api/apps/v1" + v1b "k8s.io/apimachinery/pkg/apis/meta/v1" labels "k8s.io/apimachinery/pkg/labels" watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" @@ -24,7 +24,7 @@ var ( // Ensure, that ReplicaSetListerMock does implement ReplicaSetLister. // If this is not the case, regenerate this file with moq. -var _ v1beta2a.ReplicaSetLister = &ReplicaSetListerMock{} +var _ v1a.ReplicaSetLister = &ReplicaSetListerMock{} // ReplicaSetListerMock is a mock implementation of ReplicaSetLister. // @@ -32,10 +32,10 @@ var _ v1beta2a.ReplicaSetLister = &ReplicaSetListerMock{} // // // make and configure a mocked ReplicaSetLister // mockedReplicaSetLister := &ReplicaSetListerMock{ -// GetFunc: func(namespace string, name string) (*v1beta2.ReplicaSet, error) { +// GetFunc: func(namespace string, name string) (*v1.ReplicaSet, error) { // panic("mock out the Get method") // }, -// ListFunc: func(namespace string, selector labels.Selector) ([]*v1beta2.ReplicaSet, error) { +// ListFunc: func(namespace string, selector labels.Selector) ([]*v1.ReplicaSet, error) { // panic("mock out the List method") // }, // } @@ -46,10 +46,10 @@ var _ v1beta2a.ReplicaSetLister = &ReplicaSetListerMock{} // } type ReplicaSetListerMock struct { // GetFunc mocks the Get method. - GetFunc func(namespace string, name string) (*v1beta2.ReplicaSet, error) + GetFunc func(namespace string, name string) (*v1.ReplicaSet, error) // ListFunc mocks the List method. - ListFunc func(namespace string, selector labels.Selector) ([]*v1beta2.ReplicaSet, error) + ListFunc func(namespace string, selector labels.Selector) ([]*v1.ReplicaSet, error) // calls tracks calls to the methods. calls struct { @@ -71,7 +71,7 @@ type ReplicaSetListerMock struct { } // Get calls GetFunc. -func (mock *ReplicaSetListerMock) Get(namespace string, name string) (*v1beta2.ReplicaSet, error) { +func (mock *ReplicaSetListerMock) Get(namespace string, name string) (*v1.ReplicaSet, error) { if mock.GetFunc == nil { panic("ReplicaSetListerMock.GetFunc: method is nil but ReplicaSetLister.Get was just called") } @@ -106,7 +106,7 @@ func (mock *ReplicaSetListerMock) GetCalls() []struct { } // List calls ListFunc. -func (mock *ReplicaSetListerMock) List(namespace string, selector labels.Selector) ([]*v1beta2.ReplicaSet, error) { +func (mock *ReplicaSetListerMock) List(namespace string, selector labels.Selector) ([]*v1.ReplicaSet, error) { if mock.ListFunc == nil { panic("ReplicaSetListerMock.ListFunc: method is nil but ReplicaSetLister.List was just called") } @@ -155,7 +155,7 @@ var ( // Ensure, that ReplicaSetControllerMock does implement ReplicaSetController. // If this is not the case, regenerate this file with moq. -var _ v1beta2a.ReplicaSetController = &ReplicaSetControllerMock{} +var _ v1a.ReplicaSetController = &ReplicaSetControllerMock{} // ReplicaSetControllerMock is a mock implementation of ReplicaSetController. // @@ -163,16 +163,16 @@ var _ v1beta2a.ReplicaSetController = &ReplicaSetControllerMock{} // // // make and configure a mocked ReplicaSetController // mockedReplicaSetController := &ReplicaSetControllerMock{ -// AddClusterScopedFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1beta2a.ReplicaSetHandlerFunc) { +// AddClusterScopedFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1a.ReplicaSetHandlerFunc) { // panic("mock out the AddClusterScopedFeatureHandler method") // }, -// AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, handler v1beta2a.ReplicaSetHandlerFunc) { +// AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, handler v1a.ReplicaSetHandlerFunc) { // panic("mock out the AddClusterScopedHandler method") // }, -// AddFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, sync v1beta2a.ReplicaSetHandlerFunc) { +// AddFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, sync v1a.ReplicaSetHandlerFunc) { // panic("mock out the AddFeatureHandler method") // }, -// AddHandlerFunc: func(ctx context.Context, name string, handler v1beta2a.ReplicaSetHandlerFunc) { +// AddHandlerFunc: func(ctx context.Context, name string, handler v1a.ReplicaSetHandlerFunc) { // panic("mock out the AddHandler method") // }, // EnqueueFunc: func(namespace string, name string) { @@ -184,7 +184,7 @@ var _ v1beta2a.ReplicaSetController = &ReplicaSetControllerMock{} // InformerFunc: func() cache.SharedIndexInformer { // panic("mock out the Informer method") // }, -// ListerFunc: func() v1beta2a.ReplicaSetLister { +// ListerFunc: func() v1a.ReplicaSetLister { // panic("mock out the Lister method") // }, // StartFunc: func(ctx context.Context, threadiness int) error { @@ -201,16 +201,16 @@ var _ v1beta2a.ReplicaSetController = &ReplicaSetControllerMock{} // } type ReplicaSetControllerMock struct { // AddClusterScopedFeatureHandlerFunc mocks the AddClusterScopedFeatureHandler method. - AddClusterScopedFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1beta2a.ReplicaSetHandlerFunc) + AddClusterScopedFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1a.ReplicaSetHandlerFunc) // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. - AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, handler v1beta2a.ReplicaSetHandlerFunc) + AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, handler v1a.ReplicaSetHandlerFunc) // AddFeatureHandlerFunc mocks the AddFeatureHandler method. - AddFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, sync v1beta2a.ReplicaSetHandlerFunc) + AddFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, sync v1a.ReplicaSetHandlerFunc) // AddHandlerFunc mocks the AddHandler method. - AddHandlerFunc func(ctx context.Context, name string, handler v1beta2a.ReplicaSetHandlerFunc) + AddHandlerFunc func(ctx context.Context, name string, handler v1a.ReplicaSetHandlerFunc) // EnqueueFunc mocks the Enqueue method. EnqueueFunc func(namespace string, name string) @@ -222,7 +222,7 @@ type ReplicaSetControllerMock struct { InformerFunc func() cache.SharedIndexInformer // ListerFunc mocks the Lister method. - ListerFunc func() v1beta2a.ReplicaSetLister + ListerFunc func() v1a.ReplicaSetLister // StartFunc mocks the Start method. StartFunc func(ctx context.Context, threadiness int) error @@ -243,7 +243,7 @@ type ReplicaSetControllerMock struct { // ClusterName is the clusterName argument value. ClusterName string // Handler is the handler argument value. - Handler v1beta2a.ReplicaSetHandlerFunc + Handler v1a.ReplicaSetHandlerFunc } // AddClusterScopedHandler holds details about calls to the AddClusterScopedHandler method. AddClusterScopedHandler []struct { @@ -254,7 +254,7 @@ type ReplicaSetControllerMock struct { // ClusterName is the clusterName argument value. ClusterName string // Handler is the handler argument value. - Handler v1beta2a.ReplicaSetHandlerFunc + Handler v1a.ReplicaSetHandlerFunc } // AddFeatureHandler holds details about calls to the AddFeatureHandler method. AddFeatureHandler []struct { @@ -265,7 +265,7 @@ type ReplicaSetControllerMock struct { // Name is the name argument value. Name string // Sync is the sync argument value. - Sync v1beta2a.ReplicaSetHandlerFunc + Sync v1a.ReplicaSetHandlerFunc } // AddHandler holds details about calls to the AddHandler method. AddHandler []struct { @@ -274,7 +274,7 @@ type ReplicaSetControllerMock struct { // Name is the name argument value. Name string // Handler is the handler argument value. - Handler v1beta2a.ReplicaSetHandlerFunc + Handler v1a.ReplicaSetHandlerFunc } // Enqueue holds details about calls to the Enqueue method. Enqueue []struct { @@ -308,7 +308,7 @@ type ReplicaSetControllerMock struct { } // AddClusterScopedFeatureHandler calls AddClusterScopedFeatureHandlerFunc. -func (mock *ReplicaSetControllerMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1beta2a.ReplicaSetHandlerFunc) { +func (mock *ReplicaSetControllerMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1a.ReplicaSetHandlerFunc) { if mock.AddClusterScopedFeatureHandlerFunc == nil { panic("ReplicaSetControllerMock.AddClusterScopedFeatureHandlerFunc: method is nil but ReplicaSetController.AddClusterScopedFeatureHandler was just called") } @@ -317,7 +317,7 @@ func (mock *ReplicaSetControllerMock) AddClusterScopedFeatureHandler(ctx context Enabled func() bool Name string ClusterName string - Handler v1beta2a.ReplicaSetHandlerFunc + Handler v1a.ReplicaSetHandlerFunc }{ Ctx: ctx, Enabled: enabled, @@ -339,14 +339,14 @@ func (mock *ReplicaSetControllerMock) AddClusterScopedFeatureHandlerCalls() []st Enabled func() bool Name string ClusterName string - Handler v1beta2a.ReplicaSetHandlerFunc + Handler v1a.ReplicaSetHandlerFunc } { var calls []struct { Ctx context.Context Enabled func() bool Name string ClusterName string - Handler v1beta2a.ReplicaSetHandlerFunc + Handler v1a.ReplicaSetHandlerFunc } lockReplicaSetControllerMockAddClusterScopedFeatureHandler.RLock() calls = mock.calls.AddClusterScopedFeatureHandler @@ -355,7 +355,7 @@ func (mock *ReplicaSetControllerMock) AddClusterScopedFeatureHandlerCalls() []st } // AddClusterScopedHandler calls AddClusterScopedHandlerFunc. -func (mock *ReplicaSetControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, handler v1beta2a.ReplicaSetHandlerFunc) { +func (mock *ReplicaSetControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, handler v1a.ReplicaSetHandlerFunc) { if mock.AddClusterScopedHandlerFunc == nil { panic("ReplicaSetControllerMock.AddClusterScopedHandlerFunc: method is nil but ReplicaSetController.AddClusterScopedHandler was just called") } @@ -363,7 +363,7 @@ func (mock *ReplicaSetControllerMock) AddClusterScopedHandler(ctx context.Contex Ctx context.Context Name string ClusterName string - Handler v1beta2a.ReplicaSetHandlerFunc + Handler v1a.ReplicaSetHandlerFunc }{ Ctx: ctx, Name: name, @@ -383,13 +383,13 @@ func (mock *ReplicaSetControllerMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string - Handler v1beta2a.ReplicaSetHandlerFunc + Handler v1a.ReplicaSetHandlerFunc } { var calls []struct { Ctx context.Context Name string ClusterName string - Handler v1beta2a.ReplicaSetHandlerFunc + Handler v1a.ReplicaSetHandlerFunc } lockReplicaSetControllerMockAddClusterScopedHandler.RLock() calls = mock.calls.AddClusterScopedHandler @@ -398,7 +398,7 @@ func (mock *ReplicaSetControllerMock) AddClusterScopedHandlerCalls() []struct { } // AddFeatureHandler calls AddFeatureHandlerFunc. -func (mock *ReplicaSetControllerMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync v1beta2a.ReplicaSetHandlerFunc) { +func (mock *ReplicaSetControllerMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync v1a.ReplicaSetHandlerFunc) { if mock.AddFeatureHandlerFunc == nil { panic("ReplicaSetControllerMock.AddFeatureHandlerFunc: method is nil but ReplicaSetController.AddFeatureHandler was just called") } @@ -406,7 +406,7 @@ func (mock *ReplicaSetControllerMock) AddFeatureHandler(ctx context.Context, ena Ctx context.Context Enabled func() bool Name string - Sync v1beta2a.ReplicaSetHandlerFunc + Sync v1a.ReplicaSetHandlerFunc }{ Ctx: ctx, Enabled: enabled, @@ -426,13 +426,13 @@ func (mock *ReplicaSetControllerMock) AddFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string - Sync v1beta2a.ReplicaSetHandlerFunc + Sync v1a.ReplicaSetHandlerFunc } { var calls []struct { Ctx context.Context Enabled func() bool Name string - Sync v1beta2a.ReplicaSetHandlerFunc + Sync v1a.ReplicaSetHandlerFunc } lockReplicaSetControllerMockAddFeatureHandler.RLock() calls = mock.calls.AddFeatureHandler @@ -441,14 +441,14 @@ func (mock *ReplicaSetControllerMock) AddFeatureHandlerCalls() []struct { } // AddHandler calls AddHandlerFunc. -func (mock *ReplicaSetControllerMock) AddHandler(ctx context.Context, name string, handler v1beta2a.ReplicaSetHandlerFunc) { +func (mock *ReplicaSetControllerMock) AddHandler(ctx context.Context, name string, handler v1a.ReplicaSetHandlerFunc) { if mock.AddHandlerFunc == nil { panic("ReplicaSetControllerMock.AddHandlerFunc: method is nil but ReplicaSetController.AddHandler was just called") } callInfo := struct { Ctx context.Context Name string - Handler v1beta2a.ReplicaSetHandlerFunc + Handler v1a.ReplicaSetHandlerFunc }{ Ctx: ctx, Name: name, @@ -466,12 +466,12 @@ func (mock *ReplicaSetControllerMock) AddHandler(ctx context.Context, name strin func (mock *ReplicaSetControllerMock) AddHandlerCalls() []struct { Ctx context.Context Name string - Handler v1beta2a.ReplicaSetHandlerFunc + Handler v1a.ReplicaSetHandlerFunc } { var calls []struct { Ctx context.Context Name string - Handler v1beta2a.ReplicaSetHandlerFunc + Handler v1a.ReplicaSetHandlerFunc } lockReplicaSetControllerMockAddHandler.RLock() calls = mock.calls.AddHandler @@ -567,7 +567,7 @@ func (mock *ReplicaSetControllerMock) InformerCalls() []struct { } // Lister calls ListerFunc. -func (mock *ReplicaSetControllerMock) Lister() v1beta2a.ReplicaSetLister { +func (mock *ReplicaSetControllerMock) Lister() v1a.ReplicaSetLister { if mock.ListerFunc == nil { panic("ReplicaSetControllerMock.ListerFunc: method is nil but ReplicaSetController.Lister was just called") } @@ -682,7 +682,7 @@ var ( // Ensure, that ReplicaSetInterfaceMock does implement ReplicaSetInterface. // If this is not the case, regenerate this file with moq. -var _ v1beta2a.ReplicaSetInterface = &ReplicaSetInterfaceMock{} +var _ v1a.ReplicaSetInterface = &ReplicaSetInterfaceMock{} // ReplicaSetInterfaceMock is a mock implementation of ReplicaSetInterface. // @@ -690,61 +690,61 @@ var _ v1beta2a.ReplicaSetInterface = &ReplicaSetInterfaceMock{} // // // make and configure a mocked ReplicaSetInterface // mockedReplicaSetInterface := &ReplicaSetInterfaceMock{ -// AddClusterScopedFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1beta2a.ReplicaSetHandlerFunc) { +// AddClusterScopedFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1a.ReplicaSetHandlerFunc) { // panic("mock out the AddClusterScopedFeatureHandler method") // }, -// AddClusterScopedFeatureLifecycleFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v1beta2a.ReplicaSetLifecycle) { +// AddClusterScopedFeatureLifecycleFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v1a.ReplicaSetLifecycle) { // panic("mock out the AddClusterScopedFeatureLifecycle method") // }, -// AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, sync v1beta2a.ReplicaSetHandlerFunc) { +// AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, sync v1a.ReplicaSetHandlerFunc) { // panic("mock out the AddClusterScopedHandler method") // }, -// AddClusterScopedLifecycleFunc: func(ctx context.Context, name string, clusterName string, lifecycle v1beta2a.ReplicaSetLifecycle) { +// AddClusterScopedLifecycleFunc: func(ctx context.Context, name string, clusterName string, lifecycle v1a.ReplicaSetLifecycle) { // panic("mock out the AddClusterScopedLifecycle method") // }, -// AddFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, sync v1beta2a.ReplicaSetHandlerFunc) { +// AddFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, sync v1a.ReplicaSetHandlerFunc) { // panic("mock out the AddFeatureHandler method") // }, -// AddFeatureLifecycleFunc: func(ctx context.Context, enabled func() bool, name string, lifecycle v1beta2a.ReplicaSetLifecycle) { +// AddFeatureLifecycleFunc: func(ctx context.Context, enabled func() bool, name string, lifecycle v1a.ReplicaSetLifecycle) { // panic("mock out the AddFeatureLifecycle method") // }, -// AddHandlerFunc: func(ctx context.Context, name string, sync v1beta2a.ReplicaSetHandlerFunc) { +// AddHandlerFunc: func(ctx context.Context, name string, sync v1a.ReplicaSetHandlerFunc) { // panic("mock out the AddHandler method") // }, -// AddLifecycleFunc: func(ctx context.Context, name string, lifecycle v1beta2a.ReplicaSetLifecycle) { +// AddLifecycleFunc: func(ctx context.Context, name string, lifecycle v1a.ReplicaSetLifecycle) { // panic("mock out the AddLifecycle method") // }, -// ControllerFunc: func() v1beta2a.ReplicaSetController { +// ControllerFunc: func() v1a.ReplicaSetController { // panic("mock out the Controller method") // }, -// CreateFunc: func(in1 *v1beta2.ReplicaSet) (*v1beta2.ReplicaSet, error) { +// CreateFunc: func(in1 *v1.ReplicaSet) (*v1.ReplicaSet, error) { // panic("mock out the Create method") // }, -// DeleteFunc: func(name string, options *v1.DeleteOptions) error { +// DeleteFunc: func(name string, options *v1b.DeleteOptions) error { // panic("mock out the Delete method") // }, -// DeleteCollectionFunc: func(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error { +// DeleteCollectionFunc: func(deleteOpts *v1b.DeleteOptions, listOpts v1b.ListOptions) error { // panic("mock out the DeleteCollection method") // }, -// DeleteNamespacedFunc: func(namespace string, name string, options *v1.DeleteOptions) error { +// DeleteNamespacedFunc: func(namespace string, name string, options *v1b.DeleteOptions) error { // panic("mock out the DeleteNamespaced method") // }, -// GetFunc: func(name string, opts v1.GetOptions) (*v1beta2.ReplicaSet, error) { +// GetFunc: func(name string, opts v1b.GetOptions) (*v1.ReplicaSet, error) { // panic("mock out the Get method") // }, -// GetNamespacedFunc: func(namespace string, name string, opts v1.GetOptions) (*v1beta2.ReplicaSet, error) { +// GetNamespacedFunc: func(namespace string, name string, opts v1b.GetOptions) (*v1.ReplicaSet, error) { // panic("mock out the GetNamespaced method") // }, -// ListFunc: func(opts v1.ListOptions) (*v1beta2a.ReplicaSetList, error) { +// ListFunc: func(opts v1b.ListOptions) (*v1a.ReplicaSetList, error) { // panic("mock out the List method") // }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, -// UpdateFunc: func(in1 *v1beta2.ReplicaSet) (*v1beta2.ReplicaSet, error) { +// UpdateFunc: func(in1 *v1.ReplicaSet) (*v1.ReplicaSet, error) { // panic("mock out the Update method") // }, -// WatchFunc: func(opts v1.ListOptions) (watch.Interface, error) { +// WatchFunc: func(opts v1b.ListOptions) (watch.Interface, error) { // panic("mock out the Watch method") // }, // } @@ -755,61 +755,61 @@ var _ v1beta2a.ReplicaSetInterface = &ReplicaSetInterfaceMock{} // } type ReplicaSetInterfaceMock struct { // AddClusterScopedFeatureHandlerFunc mocks the AddClusterScopedFeatureHandler method. - AddClusterScopedFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1beta2a.ReplicaSetHandlerFunc) + AddClusterScopedFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1a.ReplicaSetHandlerFunc) // AddClusterScopedFeatureLifecycleFunc mocks the AddClusterScopedFeatureLifecycle method. - AddClusterScopedFeatureLifecycleFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v1beta2a.ReplicaSetLifecycle) + AddClusterScopedFeatureLifecycleFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v1a.ReplicaSetLifecycle) // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. - AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, sync v1beta2a.ReplicaSetHandlerFunc) + AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, sync v1a.ReplicaSetHandlerFunc) // AddClusterScopedLifecycleFunc mocks the AddClusterScopedLifecycle method. - AddClusterScopedLifecycleFunc func(ctx context.Context, name string, clusterName string, lifecycle v1beta2a.ReplicaSetLifecycle) + AddClusterScopedLifecycleFunc func(ctx context.Context, name string, clusterName string, lifecycle v1a.ReplicaSetLifecycle) // AddFeatureHandlerFunc mocks the AddFeatureHandler method. - AddFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, sync v1beta2a.ReplicaSetHandlerFunc) + AddFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, sync v1a.ReplicaSetHandlerFunc) // AddFeatureLifecycleFunc mocks the AddFeatureLifecycle method. - AddFeatureLifecycleFunc func(ctx context.Context, enabled func() bool, name string, lifecycle v1beta2a.ReplicaSetLifecycle) + AddFeatureLifecycleFunc func(ctx context.Context, enabled func() bool, name string, lifecycle v1a.ReplicaSetLifecycle) // AddHandlerFunc mocks the AddHandler method. - AddHandlerFunc func(ctx context.Context, name string, sync v1beta2a.ReplicaSetHandlerFunc) + AddHandlerFunc func(ctx context.Context, name string, sync v1a.ReplicaSetHandlerFunc) // AddLifecycleFunc mocks the AddLifecycle method. - AddLifecycleFunc func(ctx context.Context, name string, lifecycle v1beta2a.ReplicaSetLifecycle) + AddLifecycleFunc func(ctx context.Context, name string, lifecycle v1a.ReplicaSetLifecycle) // ControllerFunc mocks the Controller method. - ControllerFunc func() v1beta2a.ReplicaSetController + ControllerFunc func() v1a.ReplicaSetController // CreateFunc mocks the Create method. - CreateFunc func(in1 *v1beta2.ReplicaSet) (*v1beta2.ReplicaSet, error) + CreateFunc func(in1 *v1.ReplicaSet) (*v1.ReplicaSet, error) // DeleteFunc mocks the Delete method. - DeleteFunc func(name string, options *v1.DeleteOptions) error + DeleteFunc func(name string, options *v1b.DeleteOptions) error // DeleteCollectionFunc mocks the DeleteCollection method. - DeleteCollectionFunc func(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error + DeleteCollectionFunc func(deleteOpts *v1b.DeleteOptions, listOpts v1b.ListOptions) error // DeleteNamespacedFunc mocks the DeleteNamespaced method. - DeleteNamespacedFunc func(namespace string, name string, options *v1.DeleteOptions) error + DeleteNamespacedFunc func(namespace string, name string, options *v1b.DeleteOptions) error // GetFunc mocks the Get method. - GetFunc func(name string, opts v1.GetOptions) (*v1beta2.ReplicaSet, error) + GetFunc func(name string, opts v1b.GetOptions) (*v1.ReplicaSet, error) // GetNamespacedFunc mocks the GetNamespaced method. - GetNamespacedFunc func(namespace string, name string, opts v1.GetOptions) (*v1beta2.ReplicaSet, error) + GetNamespacedFunc func(namespace string, name string, opts v1b.GetOptions) (*v1.ReplicaSet, error) // ListFunc mocks the List method. - ListFunc func(opts v1.ListOptions) (*v1beta2a.ReplicaSetList, error) + ListFunc func(opts v1b.ListOptions) (*v1a.ReplicaSetList, error) // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient // UpdateFunc mocks the Update method. - UpdateFunc func(in1 *v1beta2.ReplicaSet) (*v1beta2.ReplicaSet, error) + UpdateFunc func(in1 *v1.ReplicaSet) (*v1.ReplicaSet, error) // WatchFunc mocks the Watch method. - WatchFunc func(opts v1.ListOptions) (watch.Interface, error) + WatchFunc func(opts v1b.ListOptions) (watch.Interface, error) // calls tracks calls to the methods. calls struct { @@ -824,7 +824,7 @@ type ReplicaSetInterfaceMock struct { // ClusterName is the clusterName argument value. ClusterName string // Sync is the sync argument value. - Sync v1beta2a.ReplicaSetHandlerFunc + Sync v1a.ReplicaSetHandlerFunc } // AddClusterScopedFeatureLifecycle holds details about calls to the AddClusterScopedFeatureLifecycle method. AddClusterScopedFeatureLifecycle []struct { @@ -837,7 +837,7 @@ type ReplicaSetInterfaceMock struct { // ClusterName is the clusterName argument value. ClusterName string // Lifecycle is the lifecycle argument value. - Lifecycle v1beta2a.ReplicaSetLifecycle + Lifecycle v1a.ReplicaSetLifecycle } // AddClusterScopedHandler holds details about calls to the AddClusterScopedHandler method. AddClusterScopedHandler []struct { @@ -848,7 +848,7 @@ type ReplicaSetInterfaceMock struct { // ClusterName is the clusterName argument value. ClusterName string // Sync is the sync argument value. - Sync v1beta2a.ReplicaSetHandlerFunc + Sync v1a.ReplicaSetHandlerFunc } // AddClusterScopedLifecycle holds details about calls to the AddClusterScopedLifecycle method. AddClusterScopedLifecycle []struct { @@ -859,7 +859,7 @@ type ReplicaSetInterfaceMock struct { // ClusterName is the clusterName argument value. ClusterName string // Lifecycle is the lifecycle argument value. - Lifecycle v1beta2a.ReplicaSetLifecycle + Lifecycle v1a.ReplicaSetLifecycle } // AddFeatureHandler holds details about calls to the AddFeatureHandler method. AddFeatureHandler []struct { @@ -870,7 +870,7 @@ type ReplicaSetInterfaceMock struct { // Name is the name argument value. Name string // Sync is the sync argument value. - Sync v1beta2a.ReplicaSetHandlerFunc + Sync v1a.ReplicaSetHandlerFunc } // AddFeatureLifecycle holds details about calls to the AddFeatureLifecycle method. AddFeatureLifecycle []struct { @@ -881,7 +881,7 @@ type ReplicaSetInterfaceMock struct { // Name is the name argument value. Name string // Lifecycle is the lifecycle argument value. - Lifecycle v1beta2a.ReplicaSetLifecycle + Lifecycle v1a.ReplicaSetLifecycle } // AddHandler holds details about calls to the AddHandler method. AddHandler []struct { @@ -890,7 +890,7 @@ type ReplicaSetInterfaceMock struct { // Name is the name argument value. Name string // Sync is the sync argument value. - Sync v1beta2a.ReplicaSetHandlerFunc + Sync v1a.ReplicaSetHandlerFunc } // AddLifecycle holds details about calls to the AddLifecycle method. AddLifecycle []struct { @@ -899,7 +899,7 @@ type ReplicaSetInterfaceMock struct { // Name is the name argument value. Name string // Lifecycle is the lifecycle argument value. - Lifecycle v1beta2a.ReplicaSetLifecycle + Lifecycle v1a.ReplicaSetLifecycle } // Controller holds details about calls to the Controller method. Controller []struct { @@ -907,21 +907,21 @@ type ReplicaSetInterfaceMock struct { // Create holds details about calls to the Create method. Create []struct { // In1 is the in1 argument value. - In1 *v1beta2.ReplicaSet + In1 *v1.ReplicaSet } // Delete holds details about calls to the Delete method. Delete []struct { // Name is the name argument value. Name string // Options is the options argument value. - Options *v1.DeleteOptions + Options *v1b.DeleteOptions } // DeleteCollection holds details about calls to the DeleteCollection method. DeleteCollection []struct { // DeleteOpts is the deleteOpts argument value. - DeleteOpts *v1.DeleteOptions + DeleteOpts *v1b.DeleteOptions // ListOpts is the listOpts argument value. - ListOpts v1.ListOptions + ListOpts v1b.ListOptions } // DeleteNamespaced holds details about calls to the DeleteNamespaced method. DeleteNamespaced []struct { @@ -930,14 +930,14 @@ type ReplicaSetInterfaceMock struct { // Name is the name argument value. Name string // Options is the options argument value. - Options *v1.DeleteOptions + Options *v1b.DeleteOptions } // Get holds details about calls to the Get method. Get []struct { // Name is the name argument value. Name string // Opts is the opts argument value. - Opts v1.GetOptions + Opts v1b.GetOptions } // GetNamespaced holds details about calls to the GetNamespaced method. GetNamespaced []struct { @@ -946,12 +946,12 @@ type ReplicaSetInterfaceMock struct { // Name is the name argument value. Name string // Opts is the opts argument value. - Opts v1.GetOptions + Opts v1b.GetOptions } // List holds details about calls to the List method. List []struct { // Opts is the opts argument value. - Opts v1.ListOptions + Opts v1b.ListOptions } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { @@ -959,18 +959,18 @@ type ReplicaSetInterfaceMock struct { // Update holds details about calls to the Update method. Update []struct { // In1 is the in1 argument value. - In1 *v1beta2.ReplicaSet + In1 *v1.ReplicaSet } // Watch holds details about calls to the Watch method. Watch []struct { // Opts is the opts argument value. - Opts v1.ListOptions + Opts v1b.ListOptions } } } // AddClusterScopedFeatureHandler calls AddClusterScopedFeatureHandlerFunc. -func (mock *ReplicaSetInterfaceMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1beta2a.ReplicaSetHandlerFunc) { +func (mock *ReplicaSetInterfaceMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1a.ReplicaSetHandlerFunc) { if mock.AddClusterScopedFeatureHandlerFunc == nil { panic("ReplicaSetInterfaceMock.AddClusterScopedFeatureHandlerFunc: method is nil but ReplicaSetInterface.AddClusterScopedFeatureHandler was just called") } @@ -979,7 +979,7 @@ func (mock *ReplicaSetInterfaceMock) AddClusterScopedFeatureHandler(ctx context. Enabled func() bool Name string ClusterName string - Sync v1beta2a.ReplicaSetHandlerFunc + Sync v1a.ReplicaSetHandlerFunc }{ Ctx: ctx, Enabled: enabled, @@ -1001,14 +1001,14 @@ func (mock *ReplicaSetInterfaceMock) AddClusterScopedFeatureHandlerCalls() []str Enabled func() bool Name string ClusterName string - Sync v1beta2a.ReplicaSetHandlerFunc + Sync v1a.ReplicaSetHandlerFunc } { var calls []struct { Ctx context.Context Enabled func() bool Name string ClusterName string - Sync v1beta2a.ReplicaSetHandlerFunc + Sync v1a.ReplicaSetHandlerFunc } lockReplicaSetInterfaceMockAddClusterScopedFeatureHandler.RLock() calls = mock.calls.AddClusterScopedFeatureHandler @@ -1017,7 +1017,7 @@ func (mock *ReplicaSetInterfaceMock) AddClusterScopedFeatureHandlerCalls() []str } // AddClusterScopedFeatureLifecycle calls AddClusterScopedFeatureLifecycleFunc. -func (mock *ReplicaSetInterfaceMock) AddClusterScopedFeatureLifecycle(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v1beta2a.ReplicaSetLifecycle) { +func (mock *ReplicaSetInterfaceMock) AddClusterScopedFeatureLifecycle(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v1a.ReplicaSetLifecycle) { if mock.AddClusterScopedFeatureLifecycleFunc == nil { panic("ReplicaSetInterfaceMock.AddClusterScopedFeatureLifecycleFunc: method is nil but ReplicaSetInterface.AddClusterScopedFeatureLifecycle was just called") } @@ -1026,7 +1026,7 @@ func (mock *ReplicaSetInterfaceMock) AddClusterScopedFeatureLifecycle(ctx contex Enabled func() bool Name string ClusterName string - Lifecycle v1beta2a.ReplicaSetLifecycle + Lifecycle v1a.ReplicaSetLifecycle }{ Ctx: ctx, Enabled: enabled, @@ -1048,14 +1048,14 @@ func (mock *ReplicaSetInterfaceMock) AddClusterScopedFeatureLifecycleCalls() []s Enabled func() bool Name string ClusterName string - Lifecycle v1beta2a.ReplicaSetLifecycle + Lifecycle v1a.ReplicaSetLifecycle } { var calls []struct { Ctx context.Context Enabled func() bool Name string ClusterName string - Lifecycle v1beta2a.ReplicaSetLifecycle + Lifecycle v1a.ReplicaSetLifecycle } lockReplicaSetInterfaceMockAddClusterScopedFeatureLifecycle.RLock() calls = mock.calls.AddClusterScopedFeatureLifecycle @@ -1064,7 +1064,7 @@ func (mock *ReplicaSetInterfaceMock) AddClusterScopedFeatureLifecycleCalls() []s } // AddClusterScopedHandler calls AddClusterScopedHandlerFunc. -func (mock *ReplicaSetInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, sync v1beta2a.ReplicaSetHandlerFunc) { +func (mock *ReplicaSetInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, sync v1a.ReplicaSetHandlerFunc) { if mock.AddClusterScopedHandlerFunc == nil { panic("ReplicaSetInterfaceMock.AddClusterScopedHandlerFunc: method is nil but ReplicaSetInterface.AddClusterScopedHandler was just called") } @@ -1072,7 +1072,7 @@ func (mock *ReplicaSetInterfaceMock) AddClusterScopedHandler(ctx context.Context Ctx context.Context Name string ClusterName string - Sync v1beta2a.ReplicaSetHandlerFunc + Sync v1a.ReplicaSetHandlerFunc }{ Ctx: ctx, Name: name, @@ -1092,13 +1092,13 @@ func (mock *ReplicaSetInterfaceMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string - Sync v1beta2a.ReplicaSetHandlerFunc + Sync v1a.ReplicaSetHandlerFunc } { var calls []struct { Ctx context.Context Name string ClusterName string - Sync v1beta2a.ReplicaSetHandlerFunc + Sync v1a.ReplicaSetHandlerFunc } lockReplicaSetInterfaceMockAddClusterScopedHandler.RLock() calls = mock.calls.AddClusterScopedHandler @@ -1107,7 +1107,7 @@ func (mock *ReplicaSetInterfaceMock) AddClusterScopedHandlerCalls() []struct { } // AddClusterScopedLifecycle calls AddClusterScopedLifecycleFunc. -func (mock *ReplicaSetInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, lifecycle v1beta2a.ReplicaSetLifecycle) { +func (mock *ReplicaSetInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, lifecycle v1a.ReplicaSetLifecycle) { if mock.AddClusterScopedLifecycleFunc == nil { panic("ReplicaSetInterfaceMock.AddClusterScopedLifecycleFunc: method is nil but ReplicaSetInterface.AddClusterScopedLifecycle was just called") } @@ -1115,7 +1115,7 @@ func (mock *ReplicaSetInterfaceMock) AddClusterScopedLifecycle(ctx context.Conte Ctx context.Context Name string ClusterName string - Lifecycle v1beta2a.ReplicaSetLifecycle + Lifecycle v1a.ReplicaSetLifecycle }{ Ctx: ctx, Name: name, @@ -1135,13 +1135,13 @@ func (mock *ReplicaSetInterfaceMock) AddClusterScopedLifecycleCalls() []struct { Ctx context.Context Name string ClusterName string - Lifecycle v1beta2a.ReplicaSetLifecycle + Lifecycle v1a.ReplicaSetLifecycle } { var calls []struct { Ctx context.Context Name string ClusterName string - Lifecycle v1beta2a.ReplicaSetLifecycle + Lifecycle v1a.ReplicaSetLifecycle } lockReplicaSetInterfaceMockAddClusterScopedLifecycle.RLock() calls = mock.calls.AddClusterScopedLifecycle @@ -1150,7 +1150,7 @@ func (mock *ReplicaSetInterfaceMock) AddClusterScopedLifecycleCalls() []struct { } // AddFeatureHandler calls AddFeatureHandlerFunc. -func (mock *ReplicaSetInterfaceMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync v1beta2a.ReplicaSetHandlerFunc) { +func (mock *ReplicaSetInterfaceMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync v1a.ReplicaSetHandlerFunc) { if mock.AddFeatureHandlerFunc == nil { panic("ReplicaSetInterfaceMock.AddFeatureHandlerFunc: method is nil but ReplicaSetInterface.AddFeatureHandler was just called") } @@ -1158,7 +1158,7 @@ func (mock *ReplicaSetInterfaceMock) AddFeatureHandler(ctx context.Context, enab Ctx context.Context Enabled func() bool Name string - Sync v1beta2a.ReplicaSetHandlerFunc + Sync v1a.ReplicaSetHandlerFunc }{ Ctx: ctx, Enabled: enabled, @@ -1178,13 +1178,13 @@ func (mock *ReplicaSetInterfaceMock) AddFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string - Sync v1beta2a.ReplicaSetHandlerFunc + Sync v1a.ReplicaSetHandlerFunc } { var calls []struct { Ctx context.Context Enabled func() bool Name string - Sync v1beta2a.ReplicaSetHandlerFunc + Sync v1a.ReplicaSetHandlerFunc } lockReplicaSetInterfaceMockAddFeatureHandler.RLock() calls = mock.calls.AddFeatureHandler @@ -1193,7 +1193,7 @@ func (mock *ReplicaSetInterfaceMock) AddFeatureHandlerCalls() []struct { } // AddFeatureLifecycle calls AddFeatureLifecycleFunc. -func (mock *ReplicaSetInterfaceMock) AddFeatureLifecycle(ctx context.Context, enabled func() bool, name string, lifecycle v1beta2a.ReplicaSetLifecycle) { +func (mock *ReplicaSetInterfaceMock) AddFeatureLifecycle(ctx context.Context, enabled func() bool, name string, lifecycle v1a.ReplicaSetLifecycle) { if mock.AddFeatureLifecycleFunc == nil { panic("ReplicaSetInterfaceMock.AddFeatureLifecycleFunc: method is nil but ReplicaSetInterface.AddFeatureLifecycle was just called") } @@ -1201,7 +1201,7 @@ func (mock *ReplicaSetInterfaceMock) AddFeatureLifecycle(ctx context.Context, en Ctx context.Context Enabled func() bool Name string - Lifecycle v1beta2a.ReplicaSetLifecycle + Lifecycle v1a.ReplicaSetLifecycle }{ Ctx: ctx, Enabled: enabled, @@ -1221,13 +1221,13 @@ func (mock *ReplicaSetInterfaceMock) AddFeatureLifecycleCalls() []struct { Ctx context.Context Enabled func() bool Name string - Lifecycle v1beta2a.ReplicaSetLifecycle + Lifecycle v1a.ReplicaSetLifecycle } { var calls []struct { Ctx context.Context Enabled func() bool Name string - Lifecycle v1beta2a.ReplicaSetLifecycle + Lifecycle v1a.ReplicaSetLifecycle } lockReplicaSetInterfaceMockAddFeatureLifecycle.RLock() calls = mock.calls.AddFeatureLifecycle @@ -1236,14 +1236,14 @@ func (mock *ReplicaSetInterfaceMock) AddFeatureLifecycleCalls() []struct { } // AddHandler calls AddHandlerFunc. -func (mock *ReplicaSetInterfaceMock) AddHandler(ctx context.Context, name string, sync v1beta2a.ReplicaSetHandlerFunc) { +func (mock *ReplicaSetInterfaceMock) AddHandler(ctx context.Context, name string, sync v1a.ReplicaSetHandlerFunc) { if mock.AddHandlerFunc == nil { panic("ReplicaSetInterfaceMock.AddHandlerFunc: method is nil but ReplicaSetInterface.AddHandler was just called") } callInfo := struct { Ctx context.Context Name string - Sync v1beta2a.ReplicaSetHandlerFunc + Sync v1a.ReplicaSetHandlerFunc }{ Ctx: ctx, Name: name, @@ -1261,12 +1261,12 @@ func (mock *ReplicaSetInterfaceMock) AddHandler(ctx context.Context, name string func (mock *ReplicaSetInterfaceMock) AddHandlerCalls() []struct { Ctx context.Context Name string - Sync v1beta2a.ReplicaSetHandlerFunc + Sync v1a.ReplicaSetHandlerFunc } { var calls []struct { Ctx context.Context Name string - Sync v1beta2a.ReplicaSetHandlerFunc + Sync v1a.ReplicaSetHandlerFunc } lockReplicaSetInterfaceMockAddHandler.RLock() calls = mock.calls.AddHandler @@ -1275,14 +1275,14 @@ func (mock *ReplicaSetInterfaceMock) AddHandlerCalls() []struct { } // AddLifecycle calls AddLifecycleFunc. -func (mock *ReplicaSetInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v1beta2a.ReplicaSetLifecycle) { +func (mock *ReplicaSetInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v1a.ReplicaSetLifecycle) { if mock.AddLifecycleFunc == nil { panic("ReplicaSetInterfaceMock.AddLifecycleFunc: method is nil but ReplicaSetInterface.AddLifecycle was just called") } callInfo := struct { Ctx context.Context Name string - Lifecycle v1beta2a.ReplicaSetLifecycle + Lifecycle v1a.ReplicaSetLifecycle }{ Ctx: ctx, Name: name, @@ -1300,12 +1300,12 @@ func (mock *ReplicaSetInterfaceMock) AddLifecycle(ctx context.Context, name stri func (mock *ReplicaSetInterfaceMock) AddLifecycleCalls() []struct { Ctx context.Context Name string - Lifecycle v1beta2a.ReplicaSetLifecycle + Lifecycle v1a.ReplicaSetLifecycle } { var calls []struct { Ctx context.Context Name string - Lifecycle v1beta2a.ReplicaSetLifecycle + Lifecycle v1a.ReplicaSetLifecycle } lockReplicaSetInterfaceMockAddLifecycle.RLock() calls = mock.calls.AddLifecycle @@ -1314,7 +1314,7 @@ func (mock *ReplicaSetInterfaceMock) AddLifecycleCalls() []struct { } // Controller calls ControllerFunc. -func (mock *ReplicaSetInterfaceMock) Controller() v1beta2a.ReplicaSetController { +func (mock *ReplicaSetInterfaceMock) Controller() v1a.ReplicaSetController { if mock.ControllerFunc == nil { panic("ReplicaSetInterfaceMock.ControllerFunc: method is nil but ReplicaSetInterface.Controller was just called") } @@ -1340,12 +1340,12 @@ func (mock *ReplicaSetInterfaceMock) ControllerCalls() []struct { } // Create calls CreateFunc. -func (mock *ReplicaSetInterfaceMock) Create(in1 *v1beta2.ReplicaSet) (*v1beta2.ReplicaSet, error) { +func (mock *ReplicaSetInterfaceMock) Create(in1 *v1.ReplicaSet) (*v1.ReplicaSet, error) { if mock.CreateFunc == nil { panic("ReplicaSetInterfaceMock.CreateFunc: method is nil but ReplicaSetInterface.Create was just called") } callInfo := struct { - In1 *v1beta2.ReplicaSet + In1 *v1.ReplicaSet }{ In1: in1, } @@ -1359,10 +1359,10 @@ func (mock *ReplicaSetInterfaceMock) Create(in1 *v1beta2.ReplicaSet) (*v1beta2.R // Check the length with: // len(mockedReplicaSetInterface.CreateCalls()) func (mock *ReplicaSetInterfaceMock) CreateCalls() []struct { - In1 *v1beta2.ReplicaSet + In1 *v1.ReplicaSet } { var calls []struct { - In1 *v1beta2.ReplicaSet + In1 *v1.ReplicaSet } lockReplicaSetInterfaceMockCreate.RLock() calls = mock.calls.Create @@ -1371,13 +1371,13 @@ func (mock *ReplicaSetInterfaceMock) CreateCalls() []struct { } // Delete calls DeleteFunc. -func (mock *ReplicaSetInterfaceMock) Delete(name string, options *v1.DeleteOptions) error { +func (mock *ReplicaSetInterfaceMock) Delete(name string, options *v1b.DeleteOptions) error { if mock.DeleteFunc == nil { panic("ReplicaSetInterfaceMock.DeleteFunc: method is nil but ReplicaSetInterface.Delete was just called") } callInfo := struct { Name string - Options *v1.DeleteOptions + Options *v1b.DeleteOptions }{ Name: name, Options: options, @@ -1393,11 +1393,11 @@ func (mock *ReplicaSetInterfaceMock) Delete(name string, options *v1.DeleteOptio // len(mockedReplicaSetInterface.DeleteCalls()) func (mock *ReplicaSetInterfaceMock) DeleteCalls() []struct { Name string - Options *v1.DeleteOptions + Options *v1b.DeleteOptions } { var calls []struct { Name string - Options *v1.DeleteOptions + Options *v1b.DeleteOptions } lockReplicaSetInterfaceMockDelete.RLock() calls = mock.calls.Delete @@ -1406,13 +1406,13 @@ func (mock *ReplicaSetInterfaceMock) DeleteCalls() []struct { } // DeleteCollection calls DeleteCollectionFunc. -func (mock *ReplicaSetInterfaceMock) DeleteCollection(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error { +func (mock *ReplicaSetInterfaceMock) DeleteCollection(deleteOpts *v1b.DeleteOptions, listOpts v1b.ListOptions) error { if mock.DeleteCollectionFunc == nil { panic("ReplicaSetInterfaceMock.DeleteCollectionFunc: method is nil but ReplicaSetInterface.DeleteCollection was just called") } callInfo := struct { - DeleteOpts *v1.DeleteOptions - ListOpts v1.ListOptions + DeleteOpts *v1b.DeleteOptions + ListOpts v1b.ListOptions }{ DeleteOpts: deleteOpts, ListOpts: listOpts, @@ -1427,12 +1427,12 @@ func (mock *ReplicaSetInterfaceMock) DeleteCollection(deleteOpts *v1.DeleteOptio // Check the length with: // len(mockedReplicaSetInterface.DeleteCollectionCalls()) func (mock *ReplicaSetInterfaceMock) DeleteCollectionCalls() []struct { - DeleteOpts *v1.DeleteOptions - ListOpts v1.ListOptions + DeleteOpts *v1b.DeleteOptions + ListOpts v1b.ListOptions } { var calls []struct { - DeleteOpts *v1.DeleteOptions - ListOpts v1.ListOptions + DeleteOpts *v1b.DeleteOptions + ListOpts v1b.ListOptions } lockReplicaSetInterfaceMockDeleteCollection.RLock() calls = mock.calls.DeleteCollection @@ -1441,14 +1441,14 @@ func (mock *ReplicaSetInterfaceMock) DeleteCollectionCalls() []struct { } // DeleteNamespaced calls DeleteNamespacedFunc. -func (mock *ReplicaSetInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1.DeleteOptions) error { +func (mock *ReplicaSetInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1b.DeleteOptions) error { if mock.DeleteNamespacedFunc == nil { panic("ReplicaSetInterfaceMock.DeleteNamespacedFunc: method is nil but ReplicaSetInterface.DeleteNamespaced was just called") } callInfo := struct { Namespace string Name string - Options *v1.DeleteOptions + Options *v1b.DeleteOptions }{ Namespace: namespace, Name: name, @@ -1466,12 +1466,12 @@ func (mock *ReplicaSetInterfaceMock) DeleteNamespaced(namespace string, name str func (mock *ReplicaSetInterfaceMock) DeleteNamespacedCalls() []struct { Namespace string Name string - Options *v1.DeleteOptions + Options *v1b.DeleteOptions } { var calls []struct { Namespace string Name string - Options *v1.DeleteOptions + Options *v1b.DeleteOptions } lockReplicaSetInterfaceMockDeleteNamespaced.RLock() calls = mock.calls.DeleteNamespaced @@ -1480,13 +1480,13 @@ func (mock *ReplicaSetInterfaceMock) DeleteNamespacedCalls() []struct { } // Get calls GetFunc. -func (mock *ReplicaSetInterfaceMock) Get(name string, opts v1.GetOptions) (*v1beta2.ReplicaSet, error) { +func (mock *ReplicaSetInterfaceMock) Get(name string, opts v1b.GetOptions) (*v1.ReplicaSet, error) { if mock.GetFunc == nil { panic("ReplicaSetInterfaceMock.GetFunc: method is nil but ReplicaSetInterface.Get was just called") } callInfo := struct { Name string - Opts v1.GetOptions + Opts v1b.GetOptions }{ Name: name, Opts: opts, @@ -1502,11 +1502,11 @@ func (mock *ReplicaSetInterfaceMock) Get(name string, opts v1.GetOptions) (*v1be // len(mockedReplicaSetInterface.GetCalls()) func (mock *ReplicaSetInterfaceMock) GetCalls() []struct { Name string - Opts v1.GetOptions + Opts v1b.GetOptions } { var calls []struct { Name string - Opts v1.GetOptions + Opts v1b.GetOptions } lockReplicaSetInterfaceMockGet.RLock() calls = mock.calls.Get @@ -1515,14 +1515,14 @@ func (mock *ReplicaSetInterfaceMock) GetCalls() []struct { } // GetNamespaced calls GetNamespacedFunc. -func (mock *ReplicaSetInterfaceMock) GetNamespaced(namespace string, name string, opts v1.GetOptions) (*v1beta2.ReplicaSet, error) { +func (mock *ReplicaSetInterfaceMock) GetNamespaced(namespace string, name string, opts v1b.GetOptions) (*v1.ReplicaSet, error) { if mock.GetNamespacedFunc == nil { panic("ReplicaSetInterfaceMock.GetNamespacedFunc: method is nil but ReplicaSetInterface.GetNamespaced was just called") } callInfo := struct { Namespace string Name string - Opts v1.GetOptions + Opts v1b.GetOptions }{ Namespace: namespace, Name: name, @@ -1540,12 +1540,12 @@ func (mock *ReplicaSetInterfaceMock) GetNamespaced(namespace string, name string func (mock *ReplicaSetInterfaceMock) GetNamespacedCalls() []struct { Namespace string Name string - Opts v1.GetOptions + Opts v1b.GetOptions } { var calls []struct { Namespace string Name string - Opts v1.GetOptions + Opts v1b.GetOptions } lockReplicaSetInterfaceMockGetNamespaced.RLock() calls = mock.calls.GetNamespaced @@ -1554,12 +1554,12 @@ func (mock *ReplicaSetInterfaceMock) GetNamespacedCalls() []struct { } // List calls ListFunc. -func (mock *ReplicaSetInterfaceMock) List(opts v1.ListOptions) (*v1beta2a.ReplicaSetList, error) { +func (mock *ReplicaSetInterfaceMock) List(opts v1b.ListOptions) (*v1a.ReplicaSetList, error) { if mock.ListFunc == nil { panic("ReplicaSetInterfaceMock.ListFunc: method is nil but ReplicaSetInterface.List was just called") } callInfo := struct { - Opts v1.ListOptions + Opts v1b.ListOptions }{ Opts: opts, } @@ -1573,10 +1573,10 @@ func (mock *ReplicaSetInterfaceMock) List(opts v1.ListOptions) (*v1beta2a.Replic // Check the length with: // len(mockedReplicaSetInterface.ListCalls()) func (mock *ReplicaSetInterfaceMock) ListCalls() []struct { - Opts v1.ListOptions + Opts v1b.ListOptions } { var calls []struct { - Opts v1.ListOptions + Opts v1b.ListOptions } lockReplicaSetInterfaceMockList.RLock() calls = mock.calls.List @@ -1611,12 +1611,12 @@ func (mock *ReplicaSetInterfaceMock) ObjectClientCalls() []struct { } // Update calls UpdateFunc. -func (mock *ReplicaSetInterfaceMock) Update(in1 *v1beta2.ReplicaSet) (*v1beta2.ReplicaSet, error) { +func (mock *ReplicaSetInterfaceMock) Update(in1 *v1.ReplicaSet) (*v1.ReplicaSet, error) { if mock.UpdateFunc == nil { panic("ReplicaSetInterfaceMock.UpdateFunc: method is nil but ReplicaSetInterface.Update was just called") } callInfo := struct { - In1 *v1beta2.ReplicaSet + In1 *v1.ReplicaSet }{ In1: in1, } @@ -1630,10 +1630,10 @@ func (mock *ReplicaSetInterfaceMock) Update(in1 *v1beta2.ReplicaSet) (*v1beta2.R // Check the length with: // len(mockedReplicaSetInterface.UpdateCalls()) func (mock *ReplicaSetInterfaceMock) UpdateCalls() []struct { - In1 *v1beta2.ReplicaSet + In1 *v1.ReplicaSet } { var calls []struct { - In1 *v1beta2.ReplicaSet + In1 *v1.ReplicaSet } lockReplicaSetInterfaceMockUpdate.RLock() calls = mock.calls.Update @@ -1642,12 +1642,12 @@ func (mock *ReplicaSetInterfaceMock) UpdateCalls() []struct { } // Watch calls WatchFunc. -func (mock *ReplicaSetInterfaceMock) Watch(opts v1.ListOptions) (watch.Interface, error) { +func (mock *ReplicaSetInterfaceMock) Watch(opts v1b.ListOptions) (watch.Interface, error) { if mock.WatchFunc == nil { panic("ReplicaSetInterfaceMock.WatchFunc: method is nil but ReplicaSetInterface.Watch was just called") } callInfo := struct { - Opts v1.ListOptions + Opts v1b.ListOptions }{ Opts: opts, } @@ -1661,10 +1661,10 @@ func (mock *ReplicaSetInterfaceMock) Watch(opts v1.ListOptions) (watch.Interface // Check the length with: // len(mockedReplicaSetInterface.WatchCalls()) func (mock *ReplicaSetInterfaceMock) WatchCalls() []struct { - Opts v1.ListOptions + Opts v1b.ListOptions } { var calls []struct { - Opts v1.ListOptions + Opts v1b.ListOptions } lockReplicaSetInterfaceMockWatch.RLock() calls = mock.calls.Watch @@ -1678,7 +1678,7 @@ var ( // Ensure, that ReplicaSetsGetterMock does implement ReplicaSetsGetter. // If this is not the case, regenerate this file with moq. -var _ v1beta2a.ReplicaSetsGetter = &ReplicaSetsGetterMock{} +var _ v1a.ReplicaSetsGetter = &ReplicaSetsGetterMock{} // ReplicaSetsGetterMock is a mock implementation of ReplicaSetsGetter. // @@ -1686,7 +1686,7 @@ var _ v1beta2a.ReplicaSetsGetter = &ReplicaSetsGetterMock{} // // // make and configure a mocked ReplicaSetsGetter // mockedReplicaSetsGetter := &ReplicaSetsGetterMock{ -// ReplicaSetsFunc: func(namespace string) v1beta2a.ReplicaSetInterface { +// ReplicaSetsFunc: func(namespace string) v1a.ReplicaSetInterface { // panic("mock out the ReplicaSets method") // }, // } @@ -1697,7 +1697,7 @@ var _ v1beta2a.ReplicaSetsGetter = &ReplicaSetsGetterMock{} // } type ReplicaSetsGetterMock struct { // ReplicaSetsFunc mocks the ReplicaSets method. - ReplicaSetsFunc func(namespace string) v1beta2a.ReplicaSetInterface + ReplicaSetsFunc func(namespace string) v1a.ReplicaSetInterface // calls tracks calls to the methods. calls struct { @@ -1710,7 +1710,7 @@ type ReplicaSetsGetterMock struct { } // ReplicaSets calls ReplicaSetsFunc. -func (mock *ReplicaSetsGetterMock) ReplicaSets(namespace string) v1beta2a.ReplicaSetInterface { +func (mock *ReplicaSetsGetterMock) ReplicaSets(namespace string) v1a.ReplicaSetInterface { if mock.ReplicaSetsFunc == nil { panic("ReplicaSetsGetterMock.ReplicaSetsFunc: method is nil but ReplicaSetsGetter.ReplicaSets was just called") } diff --git a/apis/apps/v1beta2/fakes/zz_generated_stateful_set_mock.go b/apis/apps/v1/fakes/zz_generated_stateful_set_mock.go similarity index 86% rename from apis/apps/v1beta2/fakes/zz_generated_stateful_set_mock.go rename to apis/apps/v1/fakes/zz_generated_stateful_set_mock.go index 93655208..75fefb33 100644 --- a/apis/apps/v1beta2/fakes/zz_generated_stateful_set_mock.go +++ b/apis/apps/v1/fakes/zz_generated_stateful_set_mock.go @@ -9,9 +9,9 @@ import ( controller "github.com/rancher/norman/controller" objectclient "github.com/rancher/norman/objectclient" - v1beta2a "github.com/rancher/types/apis/apps/v1beta2" - v1beta2 "k8s.io/api/apps/v1beta2" - v1 "k8s.io/apimachinery/pkg/apis/meta/v1" + v1a "github.com/rancher/types/apis/apps/v1" + v1 "k8s.io/api/apps/v1" + v1b "k8s.io/apimachinery/pkg/apis/meta/v1" labels "k8s.io/apimachinery/pkg/labels" watch "k8s.io/apimachinery/pkg/watch" cache "k8s.io/client-go/tools/cache" @@ -24,7 +24,7 @@ var ( // Ensure, that StatefulSetListerMock does implement StatefulSetLister. // If this is not the case, regenerate this file with moq. -var _ v1beta2a.StatefulSetLister = &StatefulSetListerMock{} +var _ v1a.StatefulSetLister = &StatefulSetListerMock{} // StatefulSetListerMock is a mock implementation of StatefulSetLister. // @@ -32,10 +32,10 @@ var _ v1beta2a.StatefulSetLister = &StatefulSetListerMock{} // // // make and configure a mocked StatefulSetLister // mockedStatefulSetLister := &StatefulSetListerMock{ -// GetFunc: func(namespace string, name string) (*v1beta2.StatefulSet, error) { +// GetFunc: func(namespace string, name string) (*v1.StatefulSet, error) { // panic("mock out the Get method") // }, -// ListFunc: func(namespace string, selector labels.Selector) ([]*v1beta2.StatefulSet, error) { +// ListFunc: func(namespace string, selector labels.Selector) ([]*v1.StatefulSet, error) { // panic("mock out the List method") // }, // } @@ -46,10 +46,10 @@ var _ v1beta2a.StatefulSetLister = &StatefulSetListerMock{} // } type StatefulSetListerMock struct { // GetFunc mocks the Get method. - GetFunc func(namespace string, name string) (*v1beta2.StatefulSet, error) + GetFunc func(namespace string, name string) (*v1.StatefulSet, error) // ListFunc mocks the List method. - ListFunc func(namespace string, selector labels.Selector) ([]*v1beta2.StatefulSet, error) + ListFunc func(namespace string, selector labels.Selector) ([]*v1.StatefulSet, error) // calls tracks calls to the methods. calls struct { @@ -71,7 +71,7 @@ type StatefulSetListerMock struct { } // Get calls GetFunc. -func (mock *StatefulSetListerMock) Get(namespace string, name string) (*v1beta2.StatefulSet, error) { +func (mock *StatefulSetListerMock) Get(namespace string, name string) (*v1.StatefulSet, error) { if mock.GetFunc == nil { panic("StatefulSetListerMock.GetFunc: method is nil but StatefulSetLister.Get was just called") } @@ -106,7 +106,7 @@ func (mock *StatefulSetListerMock) GetCalls() []struct { } // List calls ListFunc. -func (mock *StatefulSetListerMock) List(namespace string, selector labels.Selector) ([]*v1beta2.StatefulSet, error) { +func (mock *StatefulSetListerMock) List(namespace string, selector labels.Selector) ([]*v1.StatefulSet, error) { if mock.ListFunc == nil { panic("StatefulSetListerMock.ListFunc: method is nil but StatefulSetLister.List was just called") } @@ -155,7 +155,7 @@ var ( // Ensure, that StatefulSetControllerMock does implement StatefulSetController. // If this is not the case, regenerate this file with moq. -var _ v1beta2a.StatefulSetController = &StatefulSetControllerMock{} +var _ v1a.StatefulSetController = &StatefulSetControllerMock{} // StatefulSetControllerMock is a mock implementation of StatefulSetController. // @@ -163,16 +163,16 @@ var _ v1beta2a.StatefulSetController = &StatefulSetControllerMock{} // // // make and configure a mocked StatefulSetController // mockedStatefulSetController := &StatefulSetControllerMock{ -// AddClusterScopedFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1beta2a.StatefulSetHandlerFunc) { +// AddClusterScopedFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1a.StatefulSetHandlerFunc) { // panic("mock out the AddClusterScopedFeatureHandler method") // }, -// AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, handler v1beta2a.StatefulSetHandlerFunc) { +// AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, handler v1a.StatefulSetHandlerFunc) { // panic("mock out the AddClusterScopedHandler method") // }, -// AddFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, sync v1beta2a.StatefulSetHandlerFunc) { +// AddFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, sync v1a.StatefulSetHandlerFunc) { // panic("mock out the AddFeatureHandler method") // }, -// AddHandlerFunc: func(ctx context.Context, name string, handler v1beta2a.StatefulSetHandlerFunc) { +// AddHandlerFunc: func(ctx context.Context, name string, handler v1a.StatefulSetHandlerFunc) { // panic("mock out the AddHandler method") // }, // EnqueueFunc: func(namespace string, name string) { @@ -184,7 +184,7 @@ var _ v1beta2a.StatefulSetController = &StatefulSetControllerMock{} // InformerFunc: func() cache.SharedIndexInformer { // panic("mock out the Informer method") // }, -// ListerFunc: func() v1beta2a.StatefulSetLister { +// ListerFunc: func() v1a.StatefulSetLister { // panic("mock out the Lister method") // }, // StartFunc: func(ctx context.Context, threadiness int) error { @@ -201,16 +201,16 @@ var _ v1beta2a.StatefulSetController = &StatefulSetControllerMock{} // } type StatefulSetControllerMock struct { // AddClusterScopedFeatureHandlerFunc mocks the AddClusterScopedFeatureHandler method. - AddClusterScopedFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1beta2a.StatefulSetHandlerFunc) + AddClusterScopedFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1a.StatefulSetHandlerFunc) // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. - AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, handler v1beta2a.StatefulSetHandlerFunc) + AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, handler v1a.StatefulSetHandlerFunc) // AddFeatureHandlerFunc mocks the AddFeatureHandler method. - AddFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, sync v1beta2a.StatefulSetHandlerFunc) + AddFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, sync v1a.StatefulSetHandlerFunc) // AddHandlerFunc mocks the AddHandler method. - AddHandlerFunc func(ctx context.Context, name string, handler v1beta2a.StatefulSetHandlerFunc) + AddHandlerFunc func(ctx context.Context, name string, handler v1a.StatefulSetHandlerFunc) // EnqueueFunc mocks the Enqueue method. EnqueueFunc func(namespace string, name string) @@ -222,7 +222,7 @@ type StatefulSetControllerMock struct { InformerFunc func() cache.SharedIndexInformer // ListerFunc mocks the Lister method. - ListerFunc func() v1beta2a.StatefulSetLister + ListerFunc func() v1a.StatefulSetLister // StartFunc mocks the Start method. StartFunc func(ctx context.Context, threadiness int) error @@ -243,7 +243,7 @@ type StatefulSetControllerMock struct { // ClusterName is the clusterName argument value. ClusterName string // Handler is the handler argument value. - Handler v1beta2a.StatefulSetHandlerFunc + Handler v1a.StatefulSetHandlerFunc } // AddClusterScopedHandler holds details about calls to the AddClusterScopedHandler method. AddClusterScopedHandler []struct { @@ -254,7 +254,7 @@ type StatefulSetControllerMock struct { // ClusterName is the clusterName argument value. ClusterName string // Handler is the handler argument value. - Handler v1beta2a.StatefulSetHandlerFunc + Handler v1a.StatefulSetHandlerFunc } // AddFeatureHandler holds details about calls to the AddFeatureHandler method. AddFeatureHandler []struct { @@ -265,7 +265,7 @@ type StatefulSetControllerMock struct { // Name is the name argument value. Name string // Sync is the sync argument value. - Sync v1beta2a.StatefulSetHandlerFunc + Sync v1a.StatefulSetHandlerFunc } // AddHandler holds details about calls to the AddHandler method. AddHandler []struct { @@ -274,7 +274,7 @@ type StatefulSetControllerMock struct { // Name is the name argument value. Name string // Handler is the handler argument value. - Handler v1beta2a.StatefulSetHandlerFunc + Handler v1a.StatefulSetHandlerFunc } // Enqueue holds details about calls to the Enqueue method. Enqueue []struct { @@ -308,7 +308,7 @@ type StatefulSetControllerMock struct { } // AddClusterScopedFeatureHandler calls AddClusterScopedFeatureHandlerFunc. -func (mock *StatefulSetControllerMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1beta2a.StatefulSetHandlerFunc) { +func (mock *StatefulSetControllerMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, handler v1a.StatefulSetHandlerFunc) { if mock.AddClusterScopedFeatureHandlerFunc == nil { panic("StatefulSetControllerMock.AddClusterScopedFeatureHandlerFunc: method is nil but StatefulSetController.AddClusterScopedFeatureHandler was just called") } @@ -317,7 +317,7 @@ func (mock *StatefulSetControllerMock) AddClusterScopedFeatureHandler(ctx contex Enabled func() bool Name string ClusterName string - Handler v1beta2a.StatefulSetHandlerFunc + Handler v1a.StatefulSetHandlerFunc }{ Ctx: ctx, Enabled: enabled, @@ -339,14 +339,14 @@ func (mock *StatefulSetControllerMock) AddClusterScopedFeatureHandlerCalls() []s Enabled func() bool Name string ClusterName string - Handler v1beta2a.StatefulSetHandlerFunc + Handler v1a.StatefulSetHandlerFunc } { var calls []struct { Ctx context.Context Enabled func() bool Name string ClusterName string - Handler v1beta2a.StatefulSetHandlerFunc + Handler v1a.StatefulSetHandlerFunc } lockStatefulSetControllerMockAddClusterScopedFeatureHandler.RLock() calls = mock.calls.AddClusterScopedFeatureHandler @@ -355,7 +355,7 @@ func (mock *StatefulSetControllerMock) AddClusterScopedFeatureHandlerCalls() []s } // AddClusterScopedHandler calls AddClusterScopedHandlerFunc. -func (mock *StatefulSetControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, handler v1beta2a.StatefulSetHandlerFunc) { +func (mock *StatefulSetControllerMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, handler v1a.StatefulSetHandlerFunc) { if mock.AddClusterScopedHandlerFunc == nil { panic("StatefulSetControllerMock.AddClusterScopedHandlerFunc: method is nil but StatefulSetController.AddClusterScopedHandler was just called") } @@ -363,7 +363,7 @@ func (mock *StatefulSetControllerMock) AddClusterScopedHandler(ctx context.Conte Ctx context.Context Name string ClusterName string - Handler v1beta2a.StatefulSetHandlerFunc + Handler v1a.StatefulSetHandlerFunc }{ Ctx: ctx, Name: name, @@ -383,13 +383,13 @@ func (mock *StatefulSetControllerMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string - Handler v1beta2a.StatefulSetHandlerFunc + Handler v1a.StatefulSetHandlerFunc } { var calls []struct { Ctx context.Context Name string ClusterName string - Handler v1beta2a.StatefulSetHandlerFunc + Handler v1a.StatefulSetHandlerFunc } lockStatefulSetControllerMockAddClusterScopedHandler.RLock() calls = mock.calls.AddClusterScopedHandler @@ -398,7 +398,7 @@ func (mock *StatefulSetControllerMock) AddClusterScopedHandlerCalls() []struct { } // AddFeatureHandler calls AddFeatureHandlerFunc. -func (mock *StatefulSetControllerMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync v1beta2a.StatefulSetHandlerFunc) { +func (mock *StatefulSetControllerMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync v1a.StatefulSetHandlerFunc) { if mock.AddFeatureHandlerFunc == nil { panic("StatefulSetControllerMock.AddFeatureHandlerFunc: method is nil but StatefulSetController.AddFeatureHandler was just called") } @@ -406,7 +406,7 @@ func (mock *StatefulSetControllerMock) AddFeatureHandler(ctx context.Context, en Ctx context.Context Enabled func() bool Name string - Sync v1beta2a.StatefulSetHandlerFunc + Sync v1a.StatefulSetHandlerFunc }{ Ctx: ctx, Enabled: enabled, @@ -426,13 +426,13 @@ func (mock *StatefulSetControllerMock) AddFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string - Sync v1beta2a.StatefulSetHandlerFunc + Sync v1a.StatefulSetHandlerFunc } { var calls []struct { Ctx context.Context Enabled func() bool Name string - Sync v1beta2a.StatefulSetHandlerFunc + Sync v1a.StatefulSetHandlerFunc } lockStatefulSetControllerMockAddFeatureHandler.RLock() calls = mock.calls.AddFeatureHandler @@ -441,14 +441,14 @@ func (mock *StatefulSetControllerMock) AddFeatureHandlerCalls() []struct { } // AddHandler calls AddHandlerFunc. -func (mock *StatefulSetControllerMock) AddHandler(ctx context.Context, name string, handler v1beta2a.StatefulSetHandlerFunc) { +func (mock *StatefulSetControllerMock) AddHandler(ctx context.Context, name string, handler v1a.StatefulSetHandlerFunc) { if mock.AddHandlerFunc == nil { panic("StatefulSetControllerMock.AddHandlerFunc: method is nil but StatefulSetController.AddHandler was just called") } callInfo := struct { Ctx context.Context Name string - Handler v1beta2a.StatefulSetHandlerFunc + Handler v1a.StatefulSetHandlerFunc }{ Ctx: ctx, Name: name, @@ -466,12 +466,12 @@ func (mock *StatefulSetControllerMock) AddHandler(ctx context.Context, name stri func (mock *StatefulSetControllerMock) AddHandlerCalls() []struct { Ctx context.Context Name string - Handler v1beta2a.StatefulSetHandlerFunc + Handler v1a.StatefulSetHandlerFunc } { var calls []struct { Ctx context.Context Name string - Handler v1beta2a.StatefulSetHandlerFunc + Handler v1a.StatefulSetHandlerFunc } lockStatefulSetControllerMockAddHandler.RLock() calls = mock.calls.AddHandler @@ -567,7 +567,7 @@ func (mock *StatefulSetControllerMock) InformerCalls() []struct { } // Lister calls ListerFunc. -func (mock *StatefulSetControllerMock) Lister() v1beta2a.StatefulSetLister { +func (mock *StatefulSetControllerMock) Lister() v1a.StatefulSetLister { if mock.ListerFunc == nil { panic("StatefulSetControllerMock.ListerFunc: method is nil but StatefulSetController.Lister was just called") } @@ -682,7 +682,7 @@ var ( // Ensure, that StatefulSetInterfaceMock does implement StatefulSetInterface. // If this is not the case, regenerate this file with moq. -var _ v1beta2a.StatefulSetInterface = &StatefulSetInterfaceMock{} +var _ v1a.StatefulSetInterface = &StatefulSetInterfaceMock{} // StatefulSetInterfaceMock is a mock implementation of StatefulSetInterface. // @@ -690,61 +690,61 @@ var _ v1beta2a.StatefulSetInterface = &StatefulSetInterfaceMock{} // // // make and configure a mocked StatefulSetInterface // mockedStatefulSetInterface := &StatefulSetInterfaceMock{ -// AddClusterScopedFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1beta2a.StatefulSetHandlerFunc) { +// AddClusterScopedFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1a.StatefulSetHandlerFunc) { // panic("mock out the AddClusterScopedFeatureHandler method") // }, -// AddClusterScopedFeatureLifecycleFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v1beta2a.StatefulSetLifecycle) { +// AddClusterScopedFeatureLifecycleFunc: func(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v1a.StatefulSetLifecycle) { // panic("mock out the AddClusterScopedFeatureLifecycle method") // }, -// AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, sync v1beta2a.StatefulSetHandlerFunc) { +// AddClusterScopedHandlerFunc: func(ctx context.Context, name string, clusterName string, sync v1a.StatefulSetHandlerFunc) { // panic("mock out the AddClusterScopedHandler method") // }, -// AddClusterScopedLifecycleFunc: func(ctx context.Context, name string, clusterName string, lifecycle v1beta2a.StatefulSetLifecycle) { +// AddClusterScopedLifecycleFunc: func(ctx context.Context, name string, clusterName string, lifecycle v1a.StatefulSetLifecycle) { // panic("mock out the AddClusterScopedLifecycle method") // }, -// AddFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, sync v1beta2a.StatefulSetHandlerFunc) { +// AddFeatureHandlerFunc: func(ctx context.Context, enabled func() bool, name string, sync v1a.StatefulSetHandlerFunc) { // panic("mock out the AddFeatureHandler method") // }, -// AddFeatureLifecycleFunc: func(ctx context.Context, enabled func() bool, name string, lifecycle v1beta2a.StatefulSetLifecycle) { +// AddFeatureLifecycleFunc: func(ctx context.Context, enabled func() bool, name string, lifecycle v1a.StatefulSetLifecycle) { // panic("mock out the AddFeatureLifecycle method") // }, -// AddHandlerFunc: func(ctx context.Context, name string, sync v1beta2a.StatefulSetHandlerFunc) { +// AddHandlerFunc: func(ctx context.Context, name string, sync v1a.StatefulSetHandlerFunc) { // panic("mock out the AddHandler method") // }, -// AddLifecycleFunc: func(ctx context.Context, name string, lifecycle v1beta2a.StatefulSetLifecycle) { +// AddLifecycleFunc: func(ctx context.Context, name string, lifecycle v1a.StatefulSetLifecycle) { // panic("mock out the AddLifecycle method") // }, -// ControllerFunc: func() v1beta2a.StatefulSetController { +// ControllerFunc: func() v1a.StatefulSetController { // panic("mock out the Controller method") // }, -// CreateFunc: func(in1 *v1beta2.StatefulSet) (*v1beta2.StatefulSet, error) { +// CreateFunc: func(in1 *v1.StatefulSet) (*v1.StatefulSet, error) { // panic("mock out the Create method") // }, -// DeleteFunc: func(name string, options *v1.DeleteOptions) error { +// DeleteFunc: func(name string, options *v1b.DeleteOptions) error { // panic("mock out the Delete method") // }, -// DeleteCollectionFunc: func(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error { +// DeleteCollectionFunc: func(deleteOpts *v1b.DeleteOptions, listOpts v1b.ListOptions) error { // panic("mock out the DeleteCollection method") // }, -// DeleteNamespacedFunc: func(namespace string, name string, options *v1.DeleteOptions) error { +// DeleteNamespacedFunc: func(namespace string, name string, options *v1b.DeleteOptions) error { // panic("mock out the DeleteNamespaced method") // }, -// GetFunc: func(name string, opts v1.GetOptions) (*v1beta2.StatefulSet, error) { +// GetFunc: func(name string, opts v1b.GetOptions) (*v1.StatefulSet, error) { // panic("mock out the Get method") // }, -// GetNamespacedFunc: func(namespace string, name string, opts v1.GetOptions) (*v1beta2.StatefulSet, error) { +// GetNamespacedFunc: func(namespace string, name string, opts v1b.GetOptions) (*v1.StatefulSet, error) { // panic("mock out the GetNamespaced method") // }, -// ListFunc: func(opts v1.ListOptions) (*v1beta2a.StatefulSetList, error) { +// ListFunc: func(opts v1b.ListOptions) (*v1a.StatefulSetList, error) { // panic("mock out the List method") // }, // ObjectClientFunc: func() *objectclient.ObjectClient { // panic("mock out the ObjectClient method") // }, -// UpdateFunc: func(in1 *v1beta2.StatefulSet) (*v1beta2.StatefulSet, error) { +// UpdateFunc: func(in1 *v1.StatefulSet) (*v1.StatefulSet, error) { // panic("mock out the Update method") // }, -// WatchFunc: func(opts v1.ListOptions) (watch.Interface, error) { +// WatchFunc: func(opts v1b.ListOptions) (watch.Interface, error) { // panic("mock out the Watch method") // }, // } @@ -755,61 +755,61 @@ var _ v1beta2a.StatefulSetInterface = &StatefulSetInterfaceMock{} // } type StatefulSetInterfaceMock struct { // AddClusterScopedFeatureHandlerFunc mocks the AddClusterScopedFeatureHandler method. - AddClusterScopedFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1beta2a.StatefulSetHandlerFunc) + AddClusterScopedFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1a.StatefulSetHandlerFunc) // AddClusterScopedFeatureLifecycleFunc mocks the AddClusterScopedFeatureLifecycle method. - AddClusterScopedFeatureLifecycleFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v1beta2a.StatefulSetLifecycle) + AddClusterScopedFeatureLifecycleFunc func(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v1a.StatefulSetLifecycle) // AddClusterScopedHandlerFunc mocks the AddClusterScopedHandler method. - AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, sync v1beta2a.StatefulSetHandlerFunc) + AddClusterScopedHandlerFunc func(ctx context.Context, name string, clusterName string, sync v1a.StatefulSetHandlerFunc) // AddClusterScopedLifecycleFunc mocks the AddClusterScopedLifecycle method. - AddClusterScopedLifecycleFunc func(ctx context.Context, name string, clusterName string, lifecycle v1beta2a.StatefulSetLifecycle) + AddClusterScopedLifecycleFunc func(ctx context.Context, name string, clusterName string, lifecycle v1a.StatefulSetLifecycle) // AddFeatureHandlerFunc mocks the AddFeatureHandler method. - AddFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, sync v1beta2a.StatefulSetHandlerFunc) + AddFeatureHandlerFunc func(ctx context.Context, enabled func() bool, name string, sync v1a.StatefulSetHandlerFunc) // AddFeatureLifecycleFunc mocks the AddFeatureLifecycle method. - AddFeatureLifecycleFunc func(ctx context.Context, enabled func() bool, name string, lifecycle v1beta2a.StatefulSetLifecycle) + AddFeatureLifecycleFunc func(ctx context.Context, enabled func() bool, name string, lifecycle v1a.StatefulSetLifecycle) // AddHandlerFunc mocks the AddHandler method. - AddHandlerFunc func(ctx context.Context, name string, sync v1beta2a.StatefulSetHandlerFunc) + AddHandlerFunc func(ctx context.Context, name string, sync v1a.StatefulSetHandlerFunc) // AddLifecycleFunc mocks the AddLifecycle method. - AddLifecycleFunc func(ctx context.Context, name string, lifecycle v1beta2a.StatefulSetLifecycle) + AddLifecycleFunc func(ctx context.Context, name string, lifecycle v1a.StatefulSetLifecycle) // ControllerFunc mocks the Controller method. - ControllerFunc func() v1beta2a.StatefulSetController + ControllerFunc func() v1a.StatefulSetController // CreateFunc mocks the Create method. - CreateFunc func(in1 *v1beta2.StatefulSet) (*v1beta2.StatefulSet, error) + CreateFunc func(in1 *v1.StatefulSet) (*v1.StatefulSet, error) // DeleteFunc mocks the Delete method. - DeleteFunc func(name string, options *v1.DeleteOptions) error + DeleteFunc func(name string, options *v1b.DeleteOptions) error // DeleteCollectionFunc mocks the DeleteCollection method. - DeleteCollectionFunc func(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error + DeleteCollectionFunc func(deleteOpts *v1b.DeleteOptions, listOpts v1b.ListOptions) error // DeleteNamespacedFunc mocks the DeleteNamespaced method. - DeleteNamespacedFunc func(namespace string, name string, options *v1.DeleteOptions) error + DeleteNamespacedFunc func(namespace string, name string, options *v1b.DeleteOptions) error // GetFunc mocks the Get method. - GetFunc func(name string, opts v1.GetOptions) (*v1beta2.StatefulSet, error) + GetFunc func(name string, opts v1b.GetOptions) (*v1.StatefulSet, error) // GetNamespacedFunc mocks the GetNamespaced method. - GetNamespacedFunc func(namespace string, name string, opts v1.GetOptions) (*v1beta2.StatefulSet, error) + GetNamespacedFunc func(namespace string, name string, opts v1b.GetOptions) (*v1.StatefulSet, error) // ListFunc mocks the List method. - ListFunc func(opts v1.ListOptions) (*v1beta2a.StatefulSetList, error) + ListFunc func(opts v1b.ListOptions) (*v1a.StatefulSetList, error) // ObjectClientFunc mocks the ObjectClient method. ObjectClientFunc func() *objectclient.ObjectClient // UpdateFunc mocks the Update method. - UpdateFunc func(in1 *v1beta2.StatefulSet) (*v1beta2.StatefulSet, error) + UpdateFunc func(in1 *v1.StatefulSet) (*v1.StatefulSet, error) // WatchFunc mocks the Watch method. - WatchFunc func(opts v1.ListOptions) (watch.Interface, error) + WatchFunc func(opts v1b.ListOptions) (watch.Interface, error) // calls tracks calls to the methods. calls struct { @@ -824,7 +824,7 @@ type StatefulSetInterfaceMock struct { // ClusterName is the clusterName argument value. ClusterName string // Sync is the sync argument value. - Sync v1beta2a.StatefulSetHandlerFunc + Sync v1a.StatefulSetHandlerFunc } // AddClusterScopedFeatureLifecycle holds details about calls to the AddClusterScopedFeatureLifecycle method. AddClusterScopedFeatureLifecycle []struct { @@ -837,7 +837,7 @@ type StatefulSetInterfaceMock struct { // ClusterName is the clusterName argument value. ClusterName string // Lifecycle is the lifecycle argument value. - Lifecycle v1beta2a.StatefulSetLifecycle + Lifecycle v1a.StatefulSetLifecycle } // AddClusterScopedHandler holds details about calls to the AddClusterScopedHandler method. AddClusterScopedHandler []struct { @@ -848,7 +848,7 @@ type StatefulSetInterfaceMock struct { // ClusterName is the clusterName argument value. ClusterName string // Sync is the sync argument value. - Sync v1beta2a.StatefulSetHandlerFunc + Sync v1a.StatefulSetHandlerFunc } // AddClusterScopedLifecycle holds details about calls to the AddClusterScopedLifecycle method. AddClusterScopedLifecycle []struct { @@ -859,7 +859,7 @@ type StatefulSetInterfaceMock struct { // ClusterName is the clusterName argument value. ClusterName string // Lifecycle is the lifecycle argument value. - Lifecycle v1beta2a.StatefulSetLifecycle + Lifecycle v1a.StatefulSetLifecycle } // AddFeatureHandler holds details about calls to the AddFeatureHandler method. AddFeatureHandler []struct { @@ -870,7 +870,7 @@ type StatefulSetInterfaceMock struct { // Name is the name argument value. Name string // Sync is the sync argument value. - Sync v1beta2a.StatefulSetHandlerFunc + Sync v1a.StatefulSetHandlerFunc } // AddFeatureLifecycle holds details about calls to the AddFeatureLifecycle method. AddFeatureLifecycle []struct { @@ -881,7 +881,7 @@ type StatefulSetInterfaceMock struct { // Name is the name argument value. Name string // Lifecycle is the lifecycle argument value. - Lifecycle v1beta2a.StatefulSetLifecycle + Lifecycle v1a.StatefulSetLifecycle } // AddHandler holds details about calls to the AddHandler method. AddHandler []struct { @@ -890,7 +890,7 @@ type StatefulSetInterfaceMock struct { // Name is the name argument value. Name string // Sync is the sync argument value. - Sync v1beta2a.StatefulSetHandlerFunc + Sync v1a.StatefulSetHandlerFunc } // AddLifecycle holds details about calls to the AddLifecycle method. AddLifecycle []struct { @@ -899,7 +899,7 @@ type StatefulSetInterfaceMock struct { // Name is the name argument value. Name string // Lifecycle is the lifecycle argument value. - Lifecycle v1beta2a.StatefulSetLifecycle + Lifecycle v1a.StatefulSetLifecycle } // Controller holds details about calls to the Controller method. Controller []struct { @@ -907,21 +907,21 @@ type StatefulSetInterfaceMock struct { // Create holds details about calls to the Create method. Create []struct { // In1 is the in1 argument value. - In1 *v1beta2.StatefulSet + In1 *v1.StatefulSet } // Delete holds details about calls to the Delete method. Delete []struct { // Name is the name argument value. Name string // Options is the options argument value. - Options *v1.DeleteOptions + Options *v1b.DeleteOptions } // DeleteCollection holds details about calls to the DeleteCollection method. DeleteCollection []struct { // DeleteOpts is the deleteOpts argument value. - DeleteOpts *v1.DeleteOptions + DeleteOpts *v1b.DeleteOptions // ListOpts is the listOpts argument value. - ListOpts v1.ListOptions + ListOpts v1b.ListOptions } // DeleteNamespaced holds details about calls to the DeleteNamespaced method. DeleteNamespaced []struct { @@ -930,14 +930,14 @@ type StatefulSetInterfaceMock struct { // Name is the name argument value. Name string // Options is the options argument value. - Options *v1.DeleteOptions + Options *v1b.DeleteOptions } // Get holds details about calls to the Get method. Get []struct { // Name is the name argument value. Name string // Opts is the opts argument value. - Opts v1.GetOptions + Opts v1b.GetOptions } // GetNamespaced holds details about calls to the GetNamespaced method. GetNamespaced []struct { @@ -946,12 +946,12 @@ type StatefulSetInterfaceMock struct { // Name is the name argument value. Name string // Opts is the opts argument value. - Opts v1.GetOptions + Opts v1b.GetOptions } // List holds details about calls to the List method. List []struct { // Opts is the opts argument value. - Opts v1.ListOptions + Opts v1b.ListOptions } // ObjectClient holds details about calls to the ObjectClient method. ObjectClient []struct { @@ -959,18 +959,18 @@ type StatefulSetInterfaceMock struct { // Update holds details about calls to the Update method. Update []struct { // In1 is the in1 argument value. - In1 *v1beta2.StatefulSet + In1 *v1.StatefulSet } // Watch holds details about calls to the Watch method. Watch []struct { // Opts is the opts argument value. - Opts v1.ListOptions + Opts v1b.ListOptions } } } // AddClusterScopedFeatureHandler calls AddClusterScopedFeatureHandlerFunc. -func (mock *StatefulSetInterfaceMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1beta2a.StatefulSetHandlerFunc) { +func (mock *StatefulSetInterfaceMock) AddClusterScopedFeatureHandler(ctx context.Context, enabled func() bool, name string, clusterName string, sync v1a.StatefulSetHandlerFunc) { if mock.AddClusterScopedFeatureHandlerFunc == nil { panic("StatefulSetInterfaceMock.AddClusterScopedFeatureHandlerFunc: method is nil but StatefulSetInterface.AddClusterScopedFeatureHandler was just called") } @@ -979,7 +979,7 @@ func (mock *StatefulSetInterfaceMock) AddClusterScopedFeatureHandler(ctx context Enabled func() bool Name string ClusterName string - Sync v1beta2a.StatefulSetHandlerFunc + Sync v1a.StatefulSetHandlerFunc }{ Ctx: ctx, Enabled: enabled, @@ -1001,14 +1001,14 @@ func (mock *StatefulSetInterfaceMock) AddClusterScopedFeatureHandlerCalls() []st Enabled func() bool Name string ClusterName string - Sync v1beta2a.StatefulSetHandlerFunc + Sync v1a.StatefulSetHandlerFunc } { var calls []struct { Ctx context.Context Enabled func() bool Name string ClusterName string - Sync v1beta2a.StatefulSetHandlerFunc + Sync v1a.StatefulSetHandlerFunc } lockStatefulSetInterfaceMockAddClusterScopedFeatureHandler.RLock() calls = mock.calls.AddClusterScopedFeatureHandler @@ -1017,7 +1017,7 @@ func (mock *StatefulSetInterfaceMock) AddClusterScopedFeatureHandlerCalls() []st } // AddClusterScopedFeatureLifecycle calls AddClusterScopedFeatureLifecycleFunc. -func (mock *StatefulSetInterfaceMock) AddClusterScopedFeatureLifecycle(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v1beta2a.StatefulSetLifecycle) { +func (mock *StatefulSetInterfaceMock) AddClusterScopedFeatureLifecycle(ctx context.Context, enabled func() bool, name string, clusterName string, lifecycle v1a.StatefulSetLifecycle) { if mock.AddClusterScopedFeatureLifecycleFunc == nil { panic("StatefulSetInterfaceMock.AddClusterScopedFeatureLifecycleFunc: method is nil but StatefulSetInterface.AddClusterScopedFeatureLifecycle was just called") } @@ -1026,7 +1026,7 @@ func (mock *StatefulSetInterfaceMock) AddClusterScopedFeatureLifecycle(ctx conte Enabled func() bool Name string ClusterName string - Lifecycle v1beta2a.StatefulSetLifecycle + Lifecycle v1a.StatefulSetLifecycle }{ Ctx: ctx, Enabled: enabled, @@ -1048,14 +1048,14 @@ func (mock *StatefulSetInterfaceMock) AddClusterScopedFeatureLifecycleCalls() [] Enabled func() bool Name string ClusterName string - Lifecycle v1beta2a.StatefulSetLifecycle + Lifecycle v1a.StatefulSetLifecycle } { var calls []struct { Ctx context.Context Enabled func() bool Name string ClusterName string - Lifecycle v1beta2a.StatefulSetLifecycle + Lifecycle v1a.StatefulSetLifecycle } lockStatefulSetInterfaceMockAddClusterScopedFeatureLifecycle.RLock() calls = mock.calls.AddClusterScopedFeatureLifecycle @@ -1064,7 +1064,7 @@ func (mock *StatefulSetInterfaceMock) AddClusterScopedFeatureLifecycleCalls() [] } // AddClusterScopedHandler calls AddClusterScopedHandlerFunc. -func (mock *StatefulSetInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, sync v1beta2a.StatefulSetHandlerFunc) { +func (mock *StatefulSetInterfaceMock) AddClusterScopedHandler(ctx context.Context, name string, clusterName string, sync v1a.StatefulSetHandlerFunc) { if mock.AddClusterScopedHandlerFunc == nil { panic("StatefulSetInterfaceMock.AddClusterScopedHandlerFunc: method is nil but StatefulSetInterface.AddClusterScopedHandler was just called") } @@ -1072,7 +1072,7 @@ func (mock *StatefulSetInterfaceMock) AddClusterScopedHandler(ctx context.Contex Ctx context.Context Name string ClusterName string - Sync v1beta2a.StatefulSetHandlerFunc + Sync v1a.StatefulSetHandlerFunc }{ Ctx: ctx, Name: name, @@ -1092,13 +1092,13 @@ func (mock *StatefulSetInterfaceMock) AddClusterScopedHandlerCalls() []struct { Ctx context.Context Name string ClusterName string - Sync v1beta2a.StatefulSetHandlerFunc + Sync v1a.StatefulSetHandlerFunc } { var calls []struct { Ctx context.Context Name string ClusterName string - Sync v1beta2a.StatefulSetHandlerFunc + Sync v1a.StatefulSetHandlerFunc } lockStatefulSetInterfaceMockAddClusterScopedHandler.RLock() calls = mock.calls.AddClusterScopedHandler @@ -1107,7 +1107,7 @@ func (mock *StatefulSetInterfaceMock) AddClusterScopedHandlerCalls() []struct { } // AddClusterScopedLifecycle calls AddClusterScopedLifecycleFunc. -func (mock *StatefulSetInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, lifecycle v1beta2a.StatefulSetLifecycle) { +func (mock *StatefulSetInterfaceMock) AddClusterScopedLifecycle(ctx context.Context, name string, clusterName string, lifecycle v1a.StatefulSetLifecycle) { if mock.AddClusterScopedLifecycleFunc == nil { panic("StatefulSetInterfaceMock.AddClusterScopedLifecycleFunc: method is nil but StatefulSetInterface.AddClusterScopedLifecycle was just called") } @@ -1115,7 +1115,7 @@ func (mock *StatefulSetInterfaceMock) AddClusterScopedLifecycle(ctx context.Cont Ctx context.Context Name string ClusterName string - Lifecycle v1beta2a.StatefulSetLifecycle + Lifecycle v1a.StatefulSetLifecycle }{ Ctx: ctx, Name: name, @@ -1135,13 +1135,13 @@ func (mock *StatefulSetInterfaceMock) AddClusterScopedLifecycleCalls() []struct Ctx context.Context Name string ClusterName string - Lifecycle v1beta2a.StatefulSetLifecycle + Lifecycle v1a.StatefulSetLifecycle } { var calls []struct { Ctx context.Context Name string ClusterName string - Lifecycle v1beta2a.StatefulSetLifecycle + Lifecycle v1a.StatefulSetLifecycle } lockStatefulSetInterfaceMockAddClusterScopedLifecycle.RLock() calls = mock.calls.AddClusterScopedLifecycle @@ -1150,7 +1150,7 @@ func (mock *StatefulSetInterfaceMock) AddClusterScopedLifecycleCalls() []struct } // AddFeatureHandler calls AddFeatureHandlerFunc. -func (mock *StatefulSetInterfaceMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync v1beta2a.StatefulSetHandlerFunc) { +func (mock *StatefulSetInterfaceMock) AddFeatureHandler(ctx context.Context, enabled func() bool, name string, sync v1a.StatefulSetHandlerFunc) { if mock.AddFeatureHandlerFunc == nil { panic("StatefulSetInterfaceMock.AddFeatureHandlerFunc: method is nil but StatefulSetInterface.AddFeatureHandler was just called") } @@ -1158,7 +1158,7 @@ func (mock *StatefulSetInterfaceMock) AddFeatureHandler(ctx context.Context, ena Ctx context.Context Enabled func() bool Name string - Sync v1beta2a.StatefulSetHandlerFunc + Sync v1a.StatefulSetHandlerFunc }{ Ctx: ctx, Enabled: enabled, @@ -1178,13 +1178,13 @@ func (mock *StatefulSetInterfaceMock) AddFeatureHandlerCalls() []struct { Ctx context.Context Enabled func() bool Name string - Sync v1beta2a.StatefulSetHandlerFunc + Sync v1a.StatefulSetHandlerFunc } { var calls []struct { Ctx context.Context Enabled func() bool Name string - Sync v1beta2a.StatefulSetHandlerFunc + Sync v1a.StatefulSetHandlerFunc } lockStatefulSetInterfaceMockAddFeatureHandler.RLock() calls = mock.calls.AddFeatureHandler @@ -1193,7 +1193,7 @@ func (mock *StatefulSetInterfaceMock) AddFeatureHandlerCalls() []struct { } // AddFeatureLifecycle calls AddFeatureLifecycleFunc. -func (mock *StatefulSetInterfaceMock) AddFeatureLifecycle(ctx context.Context, enabled func() bool, name string, lifecycle v1beta2a.StatefulSetLifecycle) { +func (mock *StatefulSetInterfaceMock) AddFeatureLifecycle(ctx context.Context, enabled func() bool, name string, lifecycle v1a.StatefulSetLifecycle) { if mock.AddFeatureLifecycleFunc == nil { panic("StatefulSetInterfaceMock.AddFeatureLifecycleFunc: method is nil but StatefulSetInterface.AddFeatureLifecycle was just called") } @@ -1201,7 +1201,7 @@ func (mock *StatefulSetInterfaceMock) AddFeatureLifecycle(ctx context.Context, e Ctx context.Context Enabled func() bool Name string - Lifecycle v1beta2a.StatefulSetLifecycle + Lifecycle v1a.StatefulSetLifecycle }{ Ctx: ctx, Enabled: enabled, @@ -1221,13 +1221,13 @@ func (mock *StatefulSetInterfaceMock) AddFeatureLifecycleCalls() []struct { Ctx context.Context Enabled func() bool Name string - Lifecycle v1beta2a.StatefulSetLifecycle + Lifecycle v1a.StatefulSetLifecycle } { var calls []struct { Ctx context.Context Enabled func() bool Name string - Lifecycle v1beta2a.StatefulSetLifecycle + Lifecycle v1a.StatefulSetLifecycle } lockStatefulSetInterfaceMockAddFeatureLifecycle.RLock() calls = mock.calls.AddFeatureLifecycle @@ -1236,14 +1236,14 @@ func (mock *StatefulSetInterfaceMock) AddFeatureLifecycleCalls() []struct { } // AddHandler calls AddHandlerFunc. -func (mock *StatefulSetInterfaceMock) AddHandler(ctx context.Context, name string, sync v1beta2a.StatefulSetHandlerFunc) { +func (mock *StatefulSetInterfaceMock) AddHandler(ctx context.Context, name string, sync v1a.StatefulSetHandlerFunc) { if mock.AddHandlerFunc == nil { panic("StatefulSetInterfaceMock.AddHandlerFunc: method is nil but StatefulSetInterface.AddHandler was just called") } callInfo := struct { Ctx context.Context Name string - Sync v1beta2a.StatefulSetHandlerFunc + Sync v1a.StatefulSetHandlerFunc }{ Ctx: ctx, Name: name, @@ -1261,12 +1261,12 @@ func (mock *StatefulSetInterfaceMock) AddHandler(ctx context.Context, name strin func (mock *StatefulSetInterfaceMock) AddHandlerCalls() []struct { Ctx context.Context Name string - Sync v1beta2a.StatefulSetHandlerFunc + Sync v1a.StatefulSetHandlerFunc } { var calls []struct { Ctx context.Context Name string - Sync v1beta2a.StatefulSetHandlerFunc + Sync v1a.StatefulSetHandlerFunc } lockStatefulSetInterfaceMockAddHandler.RLock() calls = mock.calls.AddHandler @@ -1275,14 +1275,14 @@ func (mock *StatefulSetInterfaceMock) AddHandlerCalls() []struct { } // AddLifecycle calls AddLifecycleFunc. -func (mock *StatefulSetInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v1beta2a.StatefulSetLifecycle) { +func (mock *StatefulSetInterfaceMock) AddLifecycle(ctx context.Context, name string, lifecycle v1a.StatefulSetLifecycle) { if mock.AddLifecycleFunc == nil { panic("StatefulSetInterfaceMock.AddLifecycleFunc: method is nil but StatefulSetInterface.AddLifecycle was just called") } callInfo := struct { Ctx context.Context Name string - Lifecycle v1beta2a.StatefulSetLifecycle + Lifecycle v1a.StatefulSetLifecycle }{ Ctx: ctx, Name: name, @@ -1300,12 +1300,12 @@ func (mock *StatefulSetInterfaceMock) AddLifecycle(ctx context.Context, name str func (mock *StatefulSetInterfaceMock) AddLifecycleCalls() []struct { Ctx context.Context Name string - Lifecycle v1beta2a.StatefulSetLifecycle + Lifecycle v1a.StatefulSetLifecycle } { var calls []struct { Ctx context.Context Name string - Lifecycle v1beta2a.StatefulSetLifecycle + Lifecycle v1a.StatefulSetLifecycle } lockStatefulSetInterfaceMockAddLifecycle.RLock() calls = mock.calls.AddLifecycle @@ -1314,7 +1314,7 @@ func (mock *StatefulSetInterfaceMock) AddLifecycleCalls() []struct { } // Controller calls ControllerFunc. -func (mock *StatefulSetInterfaceMock) Controller() v1beta2a.StatefulSetController { +func (mock *StatefulSetInterfaceMock) Controller() v1a.StatefulSetController { if mock.ControllerFunc == nil { panic("StatefulSetInterfaceMock.ControllerFunc: method is nil but StatefulSetInterface.Controller was just called") } @@ -1340,12 +1340,12 @@ func (mock *StatefulSetInterfaceMock) ControllerCalls() []struct { } // Create calls CreateFunc. -func (mock *StatefulSetInterfaceMock) Create(in1 *v1beta2.StatefulSet) (*v1beta2.StatefulSet, error) { +func (mock *StatefulSetInterfaceMock) Create(in1 *v1.StatefulSet) (*v1.StatefulSet, error) { if mock.CreateFunc == nil { panic("StatefulSetInterfaceMock.CreateFunc: method is nil but StatefulSetInterface.Create was just called") } callInfo := struct { - In1 *v1beta2.StatefulSet + In1 *v1.StatefulSet }{ In1: in1, } @@ -1359,10 +1359,10 @@ func (mock *StatefulSetInterfaceMock) Create(in1 *v1beta2.StatefulSet) (*v1beta2 // Check the length with: // len(mockedStatefulSetInterface.CreateCalls()) func (mock *StatefulSetInterfaceMock) CreateCalls() []struct { - In1 *v1beta2.StatefulSet + In1 *v1.StatefulSet } { var calls []struct { - In1 *v1beta2.StatefulSet + In1 *v1.StatefulSet } lockStatefulSetInterfaceMockCreate.RLock() calls = mock.calls.Create @@ -1371,13 +1371,13 @@ func (mock *StatefulSetInterfaceMock) CreateCalls() []struct { } // Delete calls DeleteFunc. -func (mock *StatefulSetInterfaceMock) Delete(name string, options *v1.DeleteOptions) error { +func (mock *StatefulSetInterfaceMock) Delete(name string, options *v1b.DeleteOptions) error { if mock.DeleteFunc == nil { panic("StatefulSetInterfaceMock.DeleteFunc: method is nil but StatefulSetInterface.Delete was just called") } callInfo := struct { Name string - Options *v1.DeleteOptions + Options *v1b.DeleteOptions }{ Name: name, Options: options, @@ -1393,11 +1393,11 @@ func (mock *StatefulSetInterfaceMock) Delete(name string, options *v1.DeleteOpti // len(mockedStatefulSetInterface.DeleteCalls()) func (mock *StatefulSetInterfaceMock) DeleteCalls() []struct { Name string - Options *v1.DeleteOptions + Options *v1b.DeleteOptions } { var calls []struct { Name string - Options *v1.DeleteOptions + Options *v1b.DeleteOptions } lockStatefulSetInterfaceMockDelete.RLock() calls = mock.calls.Delete @@ -1406,13 +1406,13 @@ func (mock *StatefulSetInterfaceMock) DeleteCalls() []struct { } // DeleteCollection calls DeleteCollectionFunc. -func (mock *StatefulSetInterfaceMock) DeleteCollection(deleteOpts *v1.DeleteOptions, listOpts v1.ListOptions) error { +func (mock *StatefulSetInterfaceMock) DeleteCollection(deleteOpts *v1b.DeleteOptions, listOpts v1b.ListOptions) error { if mock.DeleteCollectionFunc == nil { panic("StatefulSetInterfaceMock.DeleteCollectionFunc: method is nil but StatefulSetInterface.DeleteCollection was just called") } callInfo := struct { - DeleteOpts *v1.DeleteOptions - ListOpts v1.ListOptions + DeleteOpts *v1b.DeleteOptions + ListOpts v1b.ListOptions }{ DeleteOpts: deleteOpts, ListOpts: listOpts, @@ -1427,12 +1427,12 @@ func (mock *StatefulSetInterfaceMock) DeleteCollection(deleteOpts *v1.DeleteOpti // Check the length with: // len(mockedStatefulSetInterface.DeleteCollectionCalls()) func (mock *StatefulSetInterfaceMock) DeleteCollectionCalls() []struct { - DeleteOpts *v1.DeleteOptions - ListOpts v1.ListOptions + DeleteOpts *v1b.DeleteOptions + ListOpts v1b.ListOptions } { var calls []struct { - DeleteOpts *v1.DeleteOptions - ListOpts v1.ListOptions + DeleteOpts *v1b.DeleteOptions + ListOpts v1b.ListOptions } lockStatefulSetInterfaceMockDeleteCollection.RLock() calls = mock.calls.DeleteCollection @@ -1441,14 +1441,14 @@ func (mock *StatefulSetInterfaceMock) DeleteCollectionCalls() []struct { } // DeleteNamespaced calls DeleteNamespacedFunc. -func (mock *StatefulSetInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1.DeleteOptions) error { +func (mock *StatefulSetInterfaceMock) DeleteNamespaced(namespace string, name string, options *v1b.DeleteOptions) error { if mock.DeleteNamespacedFunc == nil { panic("StatefulSetInterfaceMock.DeleteNamespacedFunc: method is nil but StatefulSetInterface.DeleteNamespaced was just called") } callInfo := struct { Namespace string Name string - Options *v1.DeleteOptions + Options *v1b.DeleteOptions }{ Namespace: namespace, Name: name, @@ -1466,12 +1466,12 @@ func (mock *StatefulSetInterfaceMock) DeleteNamespaced(namespace string, name st func (mock *StatefulSetInterfaceMock) DeleteNamespacedCalls() []struct { Namespace string Name string - Options *v1.DeleteOptions + Options *v1b.DeleteOptions } { var calls []struct { Namespace string Name string - Options *v1.DeleteOptions + Options *v1b.DeleteOptions } lockStatefulSetInterfaceMockDeleteNamespaced.RLock() calls = mock.calls.DeleteNamespaced @@ -1480,13 +1480,13 @@ func (mock *StatefulSetInterfaceMock) DeleteNamespacedCalls() []struct { } // Get calls GetFunc. -func (mock *StatefulSetInterfaceMock) Get(name string, opts v1.GetOptions) (*v1beta2.StatefulSet, error) { +func (mock *StatefulSetInterfaceMock) Get(name string, opts v1b.GetOptions) (*v1.StatefulSet, error) { if mock.GetFunc == nil { panic("StatefulSetInterfaceMock.GetFunc: method is nil but StatefulSetInterface.Get was just called") } callInfo := struct { Name string - Opts v1.GetOptions + Opts v1b.GetOptions }{ Name: name, Opts: opts, @@ -1502,11 +1502,11 @@ func (mock *StatefulSetInterfaceMock) Get(name string, opts v1.GetOptions) (*v1b // len(mockedStatefulSetInterface.GetCalls()) func (mock *StatefulSetInterfaceMock) GetCalls() []struct { Name string - Opts v1.GetOptions + Opts v1b.GetOptions } { var calls []struct { Name string - Opts v1.GetOptions + Opts v1b.GetOptions } lockStatefulSetInterfaceMockGet.RLock() calls = mock.calls.Get @@ -1515,14 +1515,14 @@ func (mock *StatefulSetInterfaceMock) GetCalls() []struct { } // GetNamespaced calls GetNamespacedFunc. -func (mock *StatefulSetInterfaceMock) GetNamespaced(namespace string, name string, opts v1.GetOptions) (*v1beta2.StatefulSet, error) { +func (mock *StatefulSetInterfaceMock) GetNamespaced(namespace string, name string, opts v1b.GetOptions) (*v1.StatefulSet, error) { if mock.GetNamespacedFunc == nil { panic("StatefulSetInterfaceMock.GetNamespacedFunc: method is nil but StatefulSetInterface.GetNamespaced was just called") } callInfo := struct { Namespace string Name string - Opts v1.GetOptions + Opts v1b.GetOptions }{ Namespace: namespace, Name: name, @@ -1540,12 +1540,12 @@ func (mock *StatefulSetInterfaceMock) GetNamespaced(namespace string, name strin func (mock *StatefulSetInterfaceMock) GetNamespacedCalls() []struct { Namespace string Name string - Opts v1.GetOptions + Opts v1b.GetOptions } { var calls []struct { Namespace string Name string - Opts v1.GetOptions + Opts v1b.GetOptions } lockStatefulSetInterfaceMockGetNamespaced.RLock() calls = mock.calls.GetNamespaced @@ -1554,12 +1554,12 @@ func (mock *StatefulSetInterfaceMock) GetNamespacedCalls() []struct { } // List calls ListFunc. -func (mock *StatefulSetInterfaceMock) List(opts v1.ListOptions) (*v1beta2a.StatefulSetList, error) { +func (mock *StatefulSetInterfaceMock) List(opts v1b.ListOptions) (*v1a.StatefulSetList, error) { if mock.ListFunc == nil { panic("StatefulSetInterfaceMock.ListFunc: method is nil but StatefulSetInterface.List was just called") } callInfo := struct { - Opts v1.ListOptions + Opts v1b.ListOptions }{ Opts: opts, } @@ -1573,10 +1573,10 @@ func (mock *StatefulSetInterfaceMock) List(opts v1.ListOptions) (*v1beta2a.State // Check the length with: // len(mockedStatefulSetInterface.ListCalls()) func (mock *StatefulSetInterfaceMock) ListCalls() []struct { - Opts v1.ListOptions + Opts v1b.ListOptions } { var calls []struct { - Opts v1.ListOptions + Opts v1b.ListOptions } lockStatefulSetInterfaceMockList.RLock() calls = mock.calls.List @@ -1611,12 +1611,12 @@ func (mock *StatefulSetInterfaceMock) ObjectClientCalls() []struct { } // Update calls UpdateFunc. -func (mock *StatefulSetInterfaceMock) Update(in1 *v1beta2.StatefulSet) (*v1beta2.StatefulSet, error) { +func (mock *StatefulSetInterfaceMock) Update(in1 *v1.StatefulSet) (*v1.StatefulSet, error) { if mock.UpdateFunc == nil { panic("StatefulSetInterfaceMock.UpdateFunc: method is nil but StatefulSetInterface.Update was just called") } callInfo := struct { - In1 *v1beta2.StatefulSet + In1 *v1.StatefulSet }{ In1: in1, } @@ -1630,10 +1630,10 @@ func (mock *StatefulSetInterfaceMock) Update(in1 *v1beta2.StatefulSet) (*v1beta2 // Check the length with: // len(mockedStatefulSetInterface.UpdateCalls()) func (mock *StatefulSetInterfaceMock) UpdateCalls() []struct { - In1 *v1beta2.StatefulSet + In1 *v1.StatefulSet } { var calls []struct { - In1 *v1beta2.StatefulSet + In1 *v1.StatefulSet } lockStatefulSetInterfaceMockUpdate.RLock() calls = mock.calls.Update @@ -1642,12 +1642,12 @@ func (mock *StatefulSetInterfaceMock) UpdateCalls() []struct { } // Watch calls WatchFunc. -func (mock *StatefulSetInterfaceMock) Watch(opts v1.ListOptions) (watch.Interface, error) { +func (mock *StatefulSetInterfaceMock) Watch(opts v1b.ListOptions) (watch.Interface, error) { if mock.WatchFunc == nil { panic("StatefulSetInterfaceMock.WatchFunc: method is nil but StatefulSetInterface.Watch was just called") } callInfo := struct { - Opts v1.ListOptions + Opts v1b.ListOptions }{ Opts: opts, } @@ -1661,10 +1661,10 @@ func (mock *StatefulSetInterfaceMock) Watch(opts v1.ListOptions) (watch.Interfac // Check the length with: // len(mockedStatefulSetInterface.WatchCalls()) func (mock *StatefulSetInterfaceMock) WatchCalls() []struct { - Opts v1.ListOptions + Opts v1b.ListOptions } { var calls []struct { - Opts v1.ListOptions + Opts v1b.ListOptions } lockStatefulSetInterfaceMockWatch.RLock() calls = mock.calls.Watch @@ -1678,7 +1678,7 @@ var ( // Ensure, that StatefulSetsGetterMock does implement StatefulSetsGetter. // If this is not the case, regenerate this file with moq. -var _ v1beta2a.StatefulSetsGetter = &StatefulSetsGetterMock{} +var _ v1a.StatefulSetsGetter = &StatefulSetsGetterMock{} // StatefulSetsGetterMock is a mock implementation of StatefulSetsGetter. // @@ -1686,7 +1686,7 @@ var _ v1beta2a.StatefulSetsGetter = &StatefulSetsGetterMock{} // // // make and configure a mocked StatefulSetsGetter // mockedStatefulSetsGetter := &StatefulSetsGetterMock{ -// StatefulSetsFunc: func(namespace string) v1beta2a.StatefulSetInterface { +// StatefulSetsFunc: func(namespace string) v1a.StatefulSetInterface { // panic("mock out the StatefulSets method") // }, // } @@ -1697,7 +1697,7 @@ var _ v1beta2a.StatefulSetsGetter = &StatefulSetsGetterMock{} // } type StatefulSetsGetterMock struct { // StatefulSetsFunc mocks the StatefulSets method. - StatefulSetsFunc func(namespace string) v1beta2a.StatefulSetInterface + StatefulSetsFunc func(namespace string) v1a.StatefulSetInterface // calls tracks calls to the methods. calls struct { @@ -1710,7 +1710,7 @@ type StatefulSetsGetterMock struct { } // StatefulSets calls StatefulSetsFunc. -func (mock *StatefulSetsGetterMock) StatefulSets(namespace string) v1beta2a.StatefulSetInterface { +func (mock *StatefulSetsGetterMock) StatefulSets(namespace string) v1a.StatefulSetInterface { if mock.StatefulSetsFunc == nil { panic("StatefulSetsGetterMock.StatefulSetsFunc: method is nil but StatefulSetsGetter.StatefulSets was just called") } diff --git a/apis/apps/v1beta2/zz_generated_daemon_set_controller.go b/apis/apps/v1/zz_generated_daemon_set_controller.go similarity index 81% rename from apis/apps/v1beta2/zz_generated_daemon_set_controller.go rename to apis/apps/v1/zz_generated_daemon_set_controller.go index a0541c2a..b2a664da 100644 --- a/apis/apps/v1beta2/zz_generated_daemon_set_controller.go +++ b/apis/apps/v1/zz_generated_daemon_set_controller.go @@ -1,4 +1,4 @@ -package v1beta2 +package v1 import ( "context" @@ -6,7 +6,7 @@ import ( "github.com/rancher/norman/controller" "github.com/rancher/norman/objectclient" "github.com/rancher/norman/resource" - "k8s.io/api/apps/v1beta2" + v1 "k8s.io/api/apps/v1" "k8s.io/apimachinery/pkg/api/errors" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/labels" @@ -42,7 +42,7 @@ func init() { resource.Put(DaemonSetGroupVersionResource) } -func NewDaemonSet(namespace, name string, obj v1beta2.DaemonSet) *v1beta2.DaemonSet { +func NewDaemonSet(namespace, name string, obj v1.DaemonSet) *v1.DaemonSet { obj.APIVersion, obj.Kind = DaemonSetGroupVersionKind.ToAPIVersionAndKind() obj.Name = name obj.Namespace = namespace @@ -52,16 +52,16 @@ func NewDaemonSet(namespace, name string, obj v1beta2.DaemonSet) *v1beta2.Daemon type DaemonSetList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []v1beta2.DaemonSet `json:"items"` + Items []v1.DaemonSet `json:"items"` } -type DaemonSetHandlerFunc func(key string, obj *v1beta2.DaemonSet) (runtime.Object, error) +type DaemonSetHandlerFunc func(key string, obj *v1.DaemonSet) (runtime.Object, error) -type DaemonSetChangeHandlerFunc func(obj *v1beta2.DaemonSet) (runtime.Object, error) +type DaemonSetChangeHandlerFunc func(obj *v1.DaemonSet) (runtime.Object, error) type DaemonSetLister interface { - List(namespace string, selector labels.Selector) (ret []*v1beta2.DaemonSet, err error) - Get(namespace, name string) (*v1beta2.DaemonSet, error) + List(namespace string, selector labels.Selector) (ret []*v1.DaemonSet, err error) + Get(namespace, name string) (*v1.DaemonSet, error) } type DaemonSetController interface { @@ -79,10 +79,10 @@ type DaemonSetController interface { type DaemonSetInterface interface { ObjectClient() *objectclient.ObjectClient - Create(*v1beta2.DaemonSet) (*v1beta2.DaemonSet, error) - GetNamespaced(namespace, name string, opts metav1.GetOptions) (*v1beta2.DaemonSet, error) - Get(name string, opts metav1.GetOptions) (*v1beta2.DaemonSet, error) - Update(*v1beta2.DaemonSet) (*v1beta2.DaemonSet, error) + Create(*v1.DaemonSet) (*v1.DaemonSet, error) + GetNamespaced(namespace, name string, opts metav1.GetOptions) (*v1.DaemonSet, error) + Get(name string, opts metav1.GetOptions) (*v1.DaemonSet, error) + Update(*v1.DaemonSet) (*v1.DaemonSet, error) Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*DaemonSetList, error) @@ -103,14 +103,14 @@ type daemonSetLister struct { controller *daemonSetController } -func (l *daemonSetLister) List(namespace string, selector labels.Selector) (ret []*v1beta2.DaemonSet, err error) { +func (l *daemonSetLister) List(namespace string, selector labels.Selector) (ret []*v1.DaemonSet, err error) { err = cache.ListAllByNamespace(l.controller.Informer().GetIndexer(), namespace, selector, func(obj interface{}) { - ret = append(ret, obj.(*v1beta2.DaemonSet)) + ret = append(ret, obj.(*v1.DaemonSet)) }) return } -func (l *daemonSetLister) Get(namespace, name string) (*v1beta2.DaemonSet, error) { +func (l *daemonSetLister) Get(namespace, name string) (*v1.DaemonSet, error) { var key string if namespace != "" { key = namespace + "/" + name @@ -127,7 +127,7 @@ func (l *daemonSetLister) Get(namespace, name string) (*v1beta2.DaemonSet, error Resource: "daemonSet", }, key) } - return obj.(*v1beta2.DaemonSet), nil + return obj.(*v1.DaemonSet), nil } type daemonSetController struct { @@ -148,7 +148,7 @@ func (c *daemonSetController) AddHandler(ctx context.Context, name string, handl c.GenericController.AddHandler(ctx, name, func(key string, obj interface{}) (interface{}, error) { if obj == nil { return handler(key, nil) - } else if v, ok := obj.(*v1beta2.DaemonSet); ok { + } else if v, ok := obj.(*v1.DaemonSet); ok { return handler(key, v) } else { return nil, nil @@ -162,7 +162,7 @@ func (c *daemonSetController) AddFeatureHandler(ctx context.Context, enabled fun return nil, nil } else if obj == nil { return handler(key, nil) - } else if v, ok := obj.(*v1beta2.DaemonSet); ok { + } else if v, ok := obj.(*v1.DaemonSet); ok { return handler(key, v) } else { return nil, nil @@ -174,7 +174,7 @@ func (c *daemonSetController) AddClusterScopedHandler(ctx context.Context, name, c.GenericController.AddHandler(ctx, name, func(key string, obj interface{}) (interface{}, error) { if obj == nil { return handler(key, nil) - } else if v, ok := obj.(*v1beta2.DaemonSet); ok && controller.ObjectInCluster(cluster, obj) { + } else if v, ok := obj.(*v1.DaemonSet); ok && controller.ObjectInCluster(cluster, obj) { return handler(key, v) } else { return nil, nil @@ -188,7 +188,7 @@ func (c *daemonSetController) AddClusterScopedFeatureHandler(ctx context.Context return nil, nil } else if obj == nil { return handler(key, nil) - } else if v, ok := obj.(*v1beta2.DaemonSet); ok && controller.ObjectInCluster(cluster, obj) { + } else if v, ok := obj.(*v1.DaemonSet); ok && controller.ObjectInCluster(cluster, obj) { return handler(key, v) } else { return nil, nil @@ -200,7 +200,7 @@ type daemonSetFactory struct { } func (c daemonSetFactory) Object() runtime.Object { - return &v1beta2.DaemonSet{} + return &v1.DaemonSet{} } func (c daemonSetFactory) List() runtime.Object { @@ -240,24 +240,24 @@ func (s *daemonSetClient) ObjectClient() *objectclient.ObjectClient { return s.objectClient } -func (s *daemonSetClient) Create(o *v1beta2.DaemonSet) (*v1beta2.DaemonSet, error) { +func (s *daemonSetClient) Create(o *v1.DaemonSet) (*v1.DaemonSet, error) { obj, err := s.objectClient.Create(o) - return obj.(*v1beta2.DaemonSet), err + return obj.(*v1.DaemonSet), err } -func (s *daemonSetClient) Get(name string, opts metav1.GetOptions) (*v1beta2.DaemonSet, error) { +func (s *daemonSetClient) Get(name string, opts metav1.GetOptions) (*v1.DaemonSet, error) { obj, err := s.objectClient.Get(name, opts) - return obj.(*v1beta2.DaemonSet), err + return obj.(*v1.DaemonSet), err } -func (s *daemonSetClient) GetNamespaced(namespace, name string, opts metav1.GetOptions) (*v1beta2.DaemonSet, error) { +func (s *daemonSetClient) GetNamespaced(namespace, name string, opts metav1.GetOptions) (*v1.DaemonSet, error) { obj, err := s.objectClient.GetNamespaced(namespace, name, opts) - return obj.(*v1beta2.DaemonSet), err + return obj.(*v1.DaemonSet), err } -func (s *daemonSetClient) Update(o *v1beta2.DaemonSet) (*v1beta2.DaemonSet, error) { +func (s *daemonSetClient) Update(o *v1.DaemonSet) (*v1.DaemonSet, error) { obj, err := s.objectClient.Update(o.Name, o) - return obj.(*v1beta2.DaemonSet), err + return obj.(*v1.DaemonSet), err } func (s *daemonSetClient) Delete(name string, options *metav1.DeleteOptions) error { @@ -278,9 +278,9 @@ func (s *daemonSetClient) Watch(opts metav1.ListOptions) (watch.Interface, error } // Patch applies the patch and returns the patched deployment. -func (s *daemonSetClient) Patch(o *v1beta2.DaemonSet, patchType types.PatchType, data []byte, subresources ...string) (*v1beta2.DaemonSet, error) { +func (s *daemonSetClient) Patch(o *v1.DaemonSet, patchType types.PatchType, data []byte, subresources ...string) (*v1.DaemonSet, error) { obj, err := s.objectClient.Patch(o.Name, o, patchType, data, subresources...) - return obj.(*v1beta2.DaemonSet), err + return obj.(*v1.DaemonSet), err } func (s *daemonSetClient) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error { @@ -323,20 +323,20 @@ func (s *daemonSetClient) AddClusterScopedFeatureLifecycle(ctx context.Context, s.Controller().AddClusterScopedFeatureHandler(ctx, enabled, name, clusterName, sync) } -type DaemonSetIndexer func(obj *v1beta2.DaemonSet) ([]string, error) +type DaemonSetIndexer func(obj *v1.DaemonSet) ([]string, error) type DaemonSetClientCache interface { - Get(namespace, name string) (*v1beta2.DaemonSet, error) - List(namespace string, selector labels.Selector) ([]*v1beta2.DaemonSet, error) + Get(namespace, name string) (*v1.DaemonSet, error) + List(namespace string, selector labels.Selector) ([]*v1.DaemonSet, error) Index(name string, indexer DaemonSetIndexer) - GetIndexed(name, key string) ([]*v1beta2.DaemonSet, error) + GetIndexed(name, key string) ([]*v1.DaemonSet, error) } type DaemonSetClient interface { - Create(*v1beta2.DaemonSet) (*v1beta2.DaemonSet, error) - Get(namespace, name string, opts metav1.GetOptions) (*v1beta2.DaemonSet, error) - Update(*v1beta2.DaemonSet) (*v1beta2.DaemonSet, error) + Create(*v1.DaemonSet) (*v1.DaemonSet, error) + Get(namespace, name string, opts metav1.GetOptions) (*v1.DaemonSet, error) + Update(*v1.DaemonSet) (*v1.DaemonSet, error) Delete(namespace, name string, options *metav1.DeleteOptions) error List(namespace string, opts metav1.ListOptions) (*DaemonSetList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) @@ -378,15 +378,15 @@ func (n *daemonSetClient2) Enqueue(namespace, name string) { n.iface.Controller().Enqueue(namespace, name) } -func (n *daemonSetClient2) Create(obj *v1beta2.DaemonSet) (*v1beta2.DaemonSet, error) { +func (n *daemonSetClient2) Create(obj *v1.DaemonSet) (*v1.DaemonSet, error) { return n.iface.Create(obj) } -func (n *daemonSetClient2) Get(namespace, name string, opts metav1.GetOptions) (*v1beta2.DaemonSet, error) { +func (n *daemonSetClient2) Get(namespace, name string, opts metav1.GetOptions) (*v1.DaemonSet, error) { return n.iface.GetNamespaced(namespace, name, opts) } -func (n *daemonSetClient2) Update(obj *v1beta2.DaemonSet) (*v1beta2.DaemonSet, error) { +func (n *daemonSetClient2) Update(obj *v1.DaemonSet) (*v1.DaemonSet, error) { return n.iface.Update(obj) } @@ -402,11 +402,11 @@ func (n *daemonSetClient2) Watch(opts metav1.ListOptions) (watch.Interface, erro return n.iface.Watch(opts) } -func (n *daemonSetClientCache) Get(namespace, name string) (*v1beta2.DaemonSet, error) { +func (n *daemonSetClientCache) Get(namespace, name string) (*v1.DaemonSet, error) { return n.client.controller.Lister().Get(namespace, name) } -func (n *daemonSetClientCache) List(namespace string, selector labels.Selector) ([]*v1beta2.DaemonSet, error) { +func (n *daemonSetClientCache) List(namespace string, selector labels.Selector) ([]*v1.DaemonSet, error) { return n.client.controller.Lister().List(namespace, selector) } @@ -435,7 +435,7 @@ func (n *daemonSetClient2) OnRemove(ctx context.Context, name string, sync Daemo func (n *daemonSetClientCache) Index(name string, indexer DaemonSetIndexer) { err := n.client.controller.Informer().GetIndexer().AddIndexers(map[string]cache.IndexFunc{ name: func(obj interface{}) ([]string, error) { - if v, ok := obj.(*v1beta2.DaemonSet); ok { + if v, ok := obj.(*v1.DaemonSet); ok { return indexer(v) } return nil, nil @@ -447,14 +447,14 @@ func (n *daemonSetClientCache) Index(name string, indexer DaemonSetIndexer) { } } -func (n *daemonSetClientCache) GetIndexed(name, key string) ([]*v1beta2.DaemonSet, error) { - var result []*v1beta2.DaemonSet +func (n *daemonSetClientCache) GetIndexed(name, key string) ([]*v1.DaemonSet, error) { + var result []*v1.DaemonSet objs, err := n.client.controller.Informer().GetIndexer().ByIndex(name, key) if err != nil { return nil, err } for _, obj := range objs { - if v, ok := obj.(*v1beta2.DaemonSet); ok { + if v, ok := obj.(*v1.DaemonSet); ok { result = append(result, v) } } @@ -478,7 +478,7 @@ func (n *daemonSetLifecycleDelegate) HasCreate() bool { return n.create != nil } -func (n *daemonSetLifecycleDelegate) Create(obj *v1beta2.DaemonSet) (runtime.Object, error) { +func (n *daemonSetLifecycleDelegate) Create(obj *v1.DaemonSet) (runtime.Object, error) { if n.create == nil { return obj, nil } @@ -489,14 +489,14 @@ func (n *daemonSetLifecycleDelegate) HasFinalize() bool { return n.remove != nil } -func (n *daemonSetLifecycleDelegate) Remove(obj *v1beta2.DaemonSet) (runtime.Object, error) { +func (n *daemonSetLifecycleDelegate) Remove(obj *v1.DaemonSet) (runtime.Object, error) { if n.remove == nil { return obj, nil } return n.remove(obj) } -func (n *daemonSetLifecycleDelegate) Updated(obj *v1beta2.DaemonSet) (runtime.Object, error) { +func (n *daemonSetLifecycleDelegate) Updated(obj *v1.DaemonSet) (runtime.Object, error) { if n.update == nil { return obj, nil } diff --git a/apis/apps/v1beta2/zz_generated_daemon_set_lifecycle_adapter.go b/apis/apps/v1/zz_generated_daemon_set_lifecycle_adapter.go similarity index 76% rename from apis/apps/v1beta2/zz_generated_daemon_set_lifecycle_adapter.go rename to apis/apps/v1/zz_generated_daemon_set_lifecycle_adapter.go index 5c55c8b1..7ff73128 100644 --- a/apis/apps/v1beta2/zz_generated_daemon_set_lifecycle_adapter.go +++ b/apis/apps/v1/zz_generated_daemon_set_lifecycle_adapter.go @@ -1,16 +1,16 @@ -package v1beta2 +package v1 import ( "github.com/rancher/norman/lifecycle" "github.com/rancher/norman/resource" - "k8s.io/api/apps/v1beta2" + v1 "k8s.io/api/apps/v1" "k8s.io/apimachinery/pkg/runtime" ) type DaemonSetLifecycle interface { - Create(obj *v1beta2.DaemonSet) (runtime.Object, error) - Remove(obj *v1beta2.DaemonSet) (runtime.Object, error) - Updated(obj *v1beta2.DaemonSet) (runtime.Object, error) + Create(obj *v1.DaemonSet) (runtime.Object, error) + Remove(obj *v1.DaemonSet) (runtime.Object, error) + Updated(obj *v1.DaemonSet) (runtime.Object, error) } type daemonSetLifecycleAdapter struct { @@ -28,7 +28,7 @@ func (w *daemonSetLifecycleAdapter) HasFinalize() bool { } func (w *daemonSetLifecycleAdapter) Create(obj runtime.Object) (runtime.Object, error) { - o, err := w.lifecycle.Create(obj.(*v1beta2.DaemonSet)) + o, err := w.lifecycle.Create(obj.(*v1.DaemonSet)) if o == nil { return nil, err } @@ -36,7 +36,7 @@ func (w *daemonSetLifecycleAdapter) Create(obj runtime.Object) (runtime.Object, } func (w *daemonSetLifecycleAdapter) Finalize(obj runtime.Object) (runtime.Object, error) { - o, err := w.lifecycle.Remove(obj.(*v1beta2.DaemonSet)) + o, err := w.lifecycle.Remove(obj.(*v1.DaemonSet)) if o == nil { return nil, err } @@ -44,7 +44,7 @@ func (w *daemonSetLifecycleAdapter) Finalize(obj runtime.Object) (runtime.Object } func (w *daemonSetLifecycleAdapter) Updated(obj runtime.Object) (runtime.Object, error) { - o, err := w.lifecycle.Updated(obj.(*v1beta2.DaemonSet)) + o, err := w.lifecycle.Updated(obj.(*v1.DaemonSet)) if o == nil { return nil, err } @@ -57,7 +57,7 @@ func NewDaemonSetLifecycleAdapter(name string, clusterScoped bool, client Daemon } adapter := &daemonSetLifecycleAdapter{lifecycle: l} syncFn := lifecycle.NewObjectLifecycleAdapter(name, clusterScoped, adapter, client.ObjectClient()) - return func(key string, obj *v1beta2.DaemonSet) (runtime.Object, error) { + return func(key string, obj *v1.DaemonSet) (runtime.Object, error) { newObj, err := syncFn(key, obj) if o, ok := newObj.(runtime.Object); ok { return o, err diff --git a/apis/apps/v1beta2/zz_generated_deepcopy.go b/apis/apps/v1/zz_generated_deepcopy.go similarity index 93% rename from apis/apps/v1beta2/zz_generated_deepcopy.go rename to apis/apps/v1/zz_generated_deepcopy.go index c9e190b2..1cd33367 100644 --- a/apis/apps/v1beta2/zz_generated_deepcopy.go +++ b/apis/apps/v1/zz_generated_deepcopy.go @@ -1,7 +1,7 @@ -package v1beta2 +package v1 import ( - appsv1beta2 "k8s.io/api/apps/v1beta2" + appsv1 "k8s.io/api/apps/v1" runtime "k8s.io/apimachinery/pkg/runtime" ) @@ -12,7 +12,7 @@ func (in *DaemonSetList) DeepCopyInto(out *DaemonSetList) { out.ListMeta = in.ListMeta if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]appsv1beta2.DaemonSet, len(*in)) + *out = make([]appsv1.DaemonSet, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -45,7 +45,7 @@ func (in *DeploymentList) DeepCopyInto(out *DeploymentList) { out.ListMeta = in.ListMeta if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]appsv1beta2.Deployment, len(*in)) + *out = make([]appsv1.Deployment, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -78,7 +78,7 @@ func (in *ReplicaSetList) DeepCopyInto(out *ReplicaSetList) { out.ListMeta = in.ListMeta if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]appsv1beta2.ReplicaSet, len(*in)) + *out = make([]appsv1.ReplicaSet, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } @@ -111,7 +111,7 @@ func (in *StatefulSetList) DeepCopyInto(out *StatefulSetList) { out.ListMeta = in.ListMeta if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]appsv1beta2.StatefulSet, len(*in)) + *out = make([]appsv1.StatefulSet, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } diff --git a/apis/apps/v1beta2/zz_generated_deployment_controller.go b/apis/apps/v1/zz_generated_deployment_controller.go similarity index 81% rename from apis/apps/v1beta2/zz_generated_deployment_controller.go rename to apis/apps/v1/zz_generated_deployment_controller.go index c6d9a4f9..89d7c456 100644 --- a/apis/apps/v1beta2/zz_generated_deployment_controller.go +++ b/apis/apps/v1/zz_generated_deployment_controller.go @@ -1,4 +1,4 @@ -package v1beta2 +package v1 import ( "context" @@ -6,7 +6,7 @@ import ( "github.com/rancher/norman/controller" "github.com/rancher/norman/objectclient" "github.com/rancher/norman/resource" - "k8s.io/api/apps/v1beta2" + v1 "k8s.io/api/apps/v1" "k8s.io/apimachinery/pkg/api/errors" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/labels" @@ -42,7 +42,7 @@ func init() { resource.Put(DeploymentGroupVersionResource) } -func NewDeployment(namespace, name string, obj v1beta2.Deployment) *v1beta2.Deployment { +func NewDeployment(namespace, name string, obj v1.Deployment) *v1.Deployment { obj.APIVersion, obj.Kind = DeploymentGroupVersionKind.ToAPIVersionAndKind() obj.Name = name obj.Namespace = namespace @@ -52,16 +52,16 @@ func NewDeployment(namespace, name string, obj v1beta2.Deployment) *v1beta2.Depl type DeploymentList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []v1beta2.Deployment `json:"items"` + Items []v1.Deployment `json:"items"` } -type DeploymentHandlerFunc func(key string, obj *v1beta2.Deployment) (runtime.Object, error) +type DeploymentHandlerFunc func(key string, obj *v1.Deployment) (runtime.Object, error) -type DeploymentChangeHandlerFunc func(obj *v1beta2.Deployment) (runtime.Object, error) +type DeploymentChangeHandlerFunc func(obj *v1.Deployment) (runtime.Object, error) type DeploymentLister interface { - List(namespace string, selector labels.Selector) (ret []*v1beta2.Deployment, err error) - Get(namespace, name string) (*v1beta2.Deployment, error) + List(namespace string, selector labels.Selector) (ret []*v1.Deployment, err error) + Get(namespace, name string) (*v1.Deployment, error) } type DeploymentController interface { @@ -79,10 +79,10 @@ type DeploymentController interface { type DeploymentInterface interface { ObjectClient() *objectclient.ObjectClient - Create(*v1beta2.Deployment) (*v1beta2.Deployment, error) - GetNamespaced(namespace, name string, opts metav1.GetOptions) (*v1beta2.Deployment, error) - Get(name string, opts metav1.GetOptions) (*v1beta2.Deployment, error) - Update(*v1beta2.Deployment) (*v1beta2.Deployment, error) + Create(*v1.Deployment) (*v1.Deployment, error) + GetNamespaced(namespace, name string, opts metav1.GetOptions) (*v1.Deployment, error) + Get(name string, opts metav1.GetOptions) (*v1.Deployment, error) + Update(*v1.Deployment) (*v1.Deployment, error) Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*DeploymentList, error) @@ -103,14 +103,14 @@ type deploymentLister struct { controller *deploymentController } -func (l *deploymentLister) List(namespace string, selector labels.Selector) (ret []*v1beta2.Deployment, err error) { +func (l *deploymentLister) List(namespace string, selector labels.Selector) (ret []*v1.Deployment, err error) { err = cache.ListAllByNamespace(l.controller.Informer().GetIndexer(), namespace, selector, func(obj interface{}) { - ret = append(ret, obj.(*v1beta2.Deployment)) + ret = append(ret, obj.(*v1.Deployment)) }) return } -func (l *deploymentLister) Get(namespace, name string) (*v1beta2.Deployment, error) { +func (l *deploymentLister) Get(namespace, name string) (*v1.Deployment, error) { var key string if namespace != "" { key = namespace + "/" + name @@ -127,7 +127,7 @@ func (l *deploymentLister) Get(namespace, name string) (*v1beta2.Deployment, err Resource: "deployment", }, key) } - return obj.(*v1beta2.Deployment), nil + return obj.(*v1.Deployment), nil } type deploymentController struct { @@ -148,7 +148,7 @@ func (c *deploymentController) AddHandler(ctx context.Context, name string, hand c.GenericController.AddHandler(ctx, name, func(key string, obj interface{}) (interface{}, error) { if obj == nil { return handler(key, nil) - } else if v, ok := obj.(*v1beta2.Deployment); ok { + } else if v, ok := obj.(*v1.Deployment); ok { return handler(key, v) } else { return nil, nil @@ -162,7 +162,7 @@ func (c *deploymentController) AddFeatureHandler(ctx context.Context, enabled fu return nil, nil } else if obj == nil { return handler(key, nil) - } else if v, ok := obj.(*v1beta2.Deployment); ok { + } else if v, ok := obj.(*v1.Deployment); ok { return handler(key, v) } else { return nil, nil @@ -174,7 +174,7 @@ func (c *deploymentController) AddClusterScopedHandler(ctx context.Context, name c.GenericController.AddHandler(ctx, name, func(key string, obj interface{}) (interface{}, error) { if obj == nil { return handler(key, nil) - } else if v, ok := obj.(*v1beta2.Deployment); ok && controller.ObjectInCluster(cluster, obj) { + } else if v, ok := obj.(*v1.Deployment); ok && controller.ObjectInCluster(cluster, obj) { return handler(key, v) } else { return nil, nil @@ -188,7 +188,7 @@ func (c *deploymentController) AddClusterScopedFeatureHandler(ctx context.Contex return nil, nil } else if obj == nil { return handler(key, nil) - } else if v, ok := obj.(*v1beta2.Deployment); ok && controller.ObjectInCluster(cluster, obj) { + } else if v, ok := obj.(*v1.Deployment); ok && controller.ObjectInCluster(cluster, obj) { return handler(key, v) } else { return nil, nil @@ -200,7 +200,7 @@ type deploymentFactory struct { } func (c deploymentFactory) Object() runtime.Object { - return &v1beta2.Deployment{} + return &v1.Deployment{} } func (c deploymentFactory) List() runtime.Object { @@ -240,24 +240,24 @@ func (s *deploymentClient) ObjectClient() *objectclient.ObjectClient { return s.objectClient } -func (s *deploymentClient) Create(o *v1beta2.Deployment) (*v1beta2.Deployment, error) { +func (s *deploymentClient) Create(o *v1.Deployment) (*v1.Deployment, error) { obj, err := s.objectClient.Create(o) - return obj.(*v1beta2.Deployment), err + return obj.(*v1.Deployment), err } -func (s *deploymentClient) Get(name string, opts metav1.GetOptions) (*v1beta2.Deployment, error) { +func (s *deploymentClient) Get(name string, opts metav1.GetOptions) (*v1.Deployment, error) { obj, err := s.objectClient.Get(name, opts) - return obj.(*v1beta2.Deployment), err + return obj.(*v1.Deployment), err } -func (s *deploymentClient) GetNamespaced(namespace, name string, opts metav1.GetOptions) (*v1beta2.Deployment, error) { +func (s *deploymentClient) GetNamespaced(namespace, name string, opts metav1.GetOptions) (*v1.Deployment, error) { obj, err := s.objectClient.GetNamespaced(namespace, name, opts) - return obj.(*v1beta2.Deployment), err + return obj.(*v1.Deployment), err } -func (s *deploymentClient) Update(o *v1beta2.Deployment) (*v1beta2.Deployment, error) { +func (s *deploymentClient) Update(o *v1.Deployment) (*v1.Deployment, error) { obj, err := s.objectClient.Update(o.Name, o) - return obj.(*v1beta2.Deployment), err + return obj.(*v1.Deployment), err } func (s *deploymentClient) Delete(name string, options *metav1.DeleteOptions) error { @@ -278,9 +278,9 @@ func (s *deploymentClient) Watch(opts metav1.ListOptions) (watch.Interface, erro } // Patch applies the patch and returns the patched deployment. -func (s *deploymentClient) Patch(o *v1beta2.Deployment, patchType types.PatchType, data []byte, subresources ...string) (*v1beta2.Deployment, error) { +func (s *deploymentClient) Patch(o *v1.Deployment, patchType types.PatchType, data []byte, subresources ...string) (*v1.Deployment, error) { obj, err := s.objectClient.Patch(o.Name, o, patchType, data, subresources...) - return obj.(*v1beta2.Deployment), err + return obj.(*v1.Deployment), err } func (s *deploymentClient) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error { @@ -323,20 +323,20 @@ func (s *deploymentClient) AddClusterScopedFeatureLifecycle(ctx context.Context, s.Controller().AddClusterScopedFeatureHandler(ctx, enabled, name, clusterName, sync) } -type DeploymentIndexer func(obj *v1beta2.Deployment) ([]string, error) +type DeploymentIndexer func(obj *v1.Deployment) ([]string, error) type DeploymentClientCache interface { - Get(namespace, name string) (*v1beta2.Deployment, error) - List(namespace string, selector labels.Selector) ([]*v1beta2.Deployment, error) + Get(namespace, name string) (*v1.Deployment, error) + List(namespace string, selector labels.Selector) ([]*v1.Deployment, error) Index(name string, indexer DeploymentIndexer) - GetIndexed(name, key string) ([]*v1beta2.Deployment, error) + GetIndexed(name, key string) ([]*v1.Deployment, error) } type DeploymentClient interface { - Create(*v1beta2.Deployment) (*v1beta2.Deployment, error) - Get(namespace, name string, opts metav1.GetOptions) (*v1beta2.Deployment, error) - Update(*v1beta2.Deployment) (*v1beta2.Deployment, error) + Create(*v1.Deployment) (*v1.Deployment, error) + Get(namespace, name string, opts metav1.GetOptions) (*v1.Deployment, error) + Update(*v1.Deployment) (*v1.Deployment, error) Delete(namespace, name string, options *metav1.DeleteOptions) error List(namespace string, opts metav1.ListOptions) (*DeploymentList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) @@ -378,15 +378,15 @@ func (n *deploymentClient2) Enqueue(namespace, name string) { n.iface.Controller().Enqueue(namespace, name) } -func (n *deploymentClient2) Create(obj *v1beta2.Deployment) (*v1beta2.Deployment, error) { +func (n *deploymentClient2) Create(obj *v1.Deployment) (*v1.Deployment, error) { return n.iface.Create(obj) } -func (n *deploymentClient2) Get(namespace, name string, opts metav1.GetOptions) (*v1beta2.Deployment, error) { +func (n *deploymentClient2) Get(namespace, name string, opts metav1.GetOptions) (*v1.Deployment, error) { return n.iface.GetNamespaced(namespace, name, opts) } -func (n *deploymentClient2) Update(obj *v1beta2.Deployment) (*v1beta2.Deployment, error) { +func (n *deploymentClient2) Update(obj *v1.Deployment) (*v1.Deployment, error) { return n.iface.Update(obj) } @@ -402,11 +402,11 @@ func (n *deploymentClient2) Watch(opts metav1.ListOptions) (watch.Interface, err return n.iface.Watch(opts) } -func (n *deploymentClientCache) Get(namespace, name string) (*v1beta2.Deployment, error) { +func (n *deploymentClientCache) Get(namespace, name string) (*v1.Deployment, error) { return n.client.controller.Lister().Get(namespace, name) } -func (n *deploymentClientCache) List(namespace string, selector labels.Selector) ([]*v1beta2.Deployment, error) { +func (n *deploymentClientCache) List(namespace string, selector labels.Selector) ([]*v1.Deployment, error) { return n.client.controller.Lister().List(namespace, selector) } @@ -435,7 +435,7 @@ func (n *deploymentClient2) OnRemove(ctx context.Context, name string, sync Depl func (n *deploymentClientCache) Index(name string, indexer DeploymentIndexer) { err := n.client.controller.Informer().GetIndexer().AddIndexers(map[string]cache.IndexFunc{ name: func(obj interface{}) ([]string, error) { - if v, ok := obj.(*v1beta2.Deployment); ok { + if v, ok := obj.(*v1.Deployment); ok { return indexer(v) } return nil, nil @@ -447,14 +447,14 @@ func (n *deploymentClientCache) Index(name string, indexer DeploymentIndexer) { } } -func (n *deploymentClientCache) GetIndexed(name, key string) ([]*v1beta2.Deployment, error) { - var result []*v1beta2.Deployment +func (n *deploymentClientCache) GetIndexed(name, key string) ([]*v1.Deployment, error) { + var result []*v1.Deployment objs, err := n.client.controller.Informer().GetIndexer().ByIndex(name, key) if err != nil { return nil, err } for _, obj := range objs { - if v, ok := obj.(*v1beta2.Deployment); ok { + if v, ok := obj.(*v1.Deployment); ok { result = append(result, v) } } @@ -478,7 +478,7 @@ func (n *deploymentLifecycleDelegate) HasCreate() bool { return n.create != nil } -func (n *deploymentLifecycleDelegate) Create(obj *v1beta2.Deployment) (runtime.Object, error) { +func (n *deploymentLifecycleDelegate) Create(obj *v1.Deployment) (runtime.Object, error) { if n.create == nil { return obj, nil } @@ -489,14 +489,14 @@ func (n *deploymentLifecycleDelegate) HasFinalize() bool { return n.remove != nil } -func (n *deploymentLifecycleDelegate) Remove(obj *v1beta2.Deployment) (runtime.Object, error) { +func (n *deploymentLifecycleDelegate) Remove(obj *v1.Deployment) (runtime.Object, error) { if n.remove == nil { return obj, nil } return n.remove(obj) } -func (n *deploymentLifecycleDelegate) Updated(obj *v1beta2.Deployment) (runtime.Object, error) { +func (n *deploymentLifecycleDelegate) Updated(obj *v1.Deployment) (runtime.Object, error) { if n.update == nil { return obj, nil } diff --git a/apis/apps/v1beta2/zz_generated_deployment_lifecycle_adapter.go b/apis/apps/v1/zz_generated_deployment_lifecycle_adapter.go similarity index 76% rename from apis/apps/v1beta2/zz_generated_deployment_lifecycle_adapter.go rename to apis/apps/v1/zz_generated_deployment_lifecycle_adapter.go index 2f02ea7d..5780fd74 100644 --- a/apis/apps/v1beta2/zz_generated_deployment_lifecycle_adapter.go +++ b/apis/apps/v1/zz_generated_deployment_lifecycle_adapter.go @@ -1,16 +1,16 @@ -package v1beta2 +package v1 import ( "github.com/rancher/norman/lifecycle" "github.com/rancher/norman/resource" - "k8s.io/api/apps/v1beta2" + v1 "k8s.io/api/apps/v1" "k8s.io/apimachinery/pkg/runtime" ) type DeploymentLifecycle interface { - Create(obj *v1beta2.Deployment) (runtime.Object, error) - Remove(obj *v1beta2.Deployment) (runtime.Object, error) - Updated(obj *v1beta2.Deployment) (runtime.Object, error) + Create(obj *v1.Deployment) (runtime.Object, error) + Remove(obj *v1.Deployment) (runtime.Object, error) + Updated(obj *v1.Deployment) (runtime.Object, error) } type deploymentLifecycleAdapter struct { @@ -28,7 +28,7 @@ func (w *deploymentLifecycleAdapter) HasFinalize() bool { } func (w *deploymentLifecycleAdapter) Create(obj runtime.Object) (runtime.Object, error) { - o, err := w.lifecycle.Create(obj.(*v1beta2.Deployment)) + o, err := w.lifecycle.Create(obj.(*v1.Deployment)) if o == nil { return nil, err } @@ -36,7 +36,7 @@ func (w *deploymentLifecycleAdapter) Create(obj runtime.Object) (runtime.Object, } func (w *deploymentLifecycleAdapter) Finalize(obj runtime.Object) (runtime.Object, error) { - o, err := w.lifecycle.Remove(obj.(*v1beta2.Deployment)) + o, err := w.lifecycle.Remove(obj.(*v1.Deployment)) if o == nil { return nil, err } @@ -44,7 +44,7 @@ func (w *deploymentLifecycleAdapter) Finalize(obj runtime.Object) (runtime.Objec } func (w *deploymentLifecycleAdapter) Updated(obj runtime.Object) (runtime.Object, error) { - o, err := w.lifecycle.Updated(obj.(*v1beta2.Deployment)) + o, err := w.lifecycle.Updated(obj.(*v1.Deployment)) if o == nil { return nil, err } @@ -57,7 +57,7 @@ func NewDeploymentLifecycleAdapter(name string, clusterScoped bool, client Deplo } adapter := &deploymentLifecycleAdapter{lifecycle: l} syncFn := lifecycle.NewObjectLifecycleAdapter(name, clusterScoped, adapter, client.ObjectClient()) - return func(key string, obj *v1beta2.Deployment) (runtime.Object, error) { + return func(key string, obj *v1.Deployment) (runtime.Object, error) { newObj, err := syncFn(key, obj) if o, ok := newObj.(runtime.Object); ok { return o, err diff --git a/apis/apps/v1beta2/zz_generated_k8s_client.go b/apis/apps/v1/zz_generated_k8s_client.go similarity index 99% rename from apis/apps/v1beta2/zz_generated_k8s_client.go rename to apis/apps/v1/zz_generated_k8s_client.go index 30fe0884..14a9ed0d 100644 --- a/apis/apps/v1beta2/zz_generated_k8s_client.go +++ b/apis/apps/v1/zz_generated_k8s_client.go @@ -1,4 +1,4 @@ -package v1beta2 +package v1 import ( "context" diff --git a/apis/apps/v1beta2/zz_generated_replica_set_controller.go b/apis/apps/v1/zz_generated_replica_set_controller.go similarity index 81% rename from apis/apps/v1beta2/zz_generated_replica_set_controller.go rename to apis/apps/v1/zz_generated_replica_set_controller.go index d1851b62..ab95e488 100644 --- a/apis/apps/v1beta2/zz_generated_replica_set_controller.go +++ b/apis/apps/v1/zz_generated_replica_set_controller.go @@ -1,4 +1,4 @@ -package v1beta2 +package v1 import ( "context" @@ -6,7 +6,7 @@ import ( "github.com/rancher/norman/controller" "github.com/rancher/norman/objectclient" "github.com/rancher/norman/resource" - "k8s.io/api/apps/v1beta2" + v1 "k8s.io/api/apps/v1" "k8s.io/apimachinery/pkg/api/errors" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/labels" @@ -42,7 +42,7 @@ func init() { resource.Put(ReplicaSetGroupVersionResource) } -func NewReplicaSet(namespace, name string, obj v1beta2.ReplicaSet) *v1beta2.ReplicaSet { +func NewReplicaSet(namespace, name string, obj v1.ReplicaSet) *v1.ReplicaSet { obj.APIVersion, obj.Kind = ReplicaSetGroupVersionKind.ToAPIVersionAndKind() obj.Name = name obj.Namespace = namespace @@ -52,16 +52,16 @@ func NewReplicaSet(namespace, name string, obj v1beta2.ReplicaSet) *v1beta2.Repl type ReplicaSetList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []v1beta2.ReplicaSet `json:"items"` + Items []v1.ReplicaSet `json:"items"` } -type ReplicaSetHandlerFunc func(key string, obj *v1beta2.ReplicaSet) (runtime.Object, error) +type ReplicaSetHandlerFunc func(key string, obj *v1.ReplicaSet) (runtime.Object, error) -type ReplicaSetChangeHandlerFunc func(obj *v1beta2.ReplicaSet) (runtime.Object, error) +type ReplicaSetChangeHandlerFunc func(obj *v1.ReplicaSet) (runtime.Object, error) type ReplicaSetLister interface { - List(namespace string, selector labels.Selector) (ret []*v1beta2.ReplicaSet, err error) - Get(namespace, name string) (*v1beta2.ReplicaSet, error) + List(namespace string, selector labels.Selector) (ret []*v1.ReplicaSet, err error) + Get(namespace, name string) (*v1.ReplicaSet, error) } type ReplicaSetController interface { @@ -79,10 +79,10 @@ type ReplicaSetController interface { type ReplicaSetInterface interface { ObjectClient() *objectclient.ObjectClient - Create(*v1beta2.ReplicaSet) (*v1beta2.ReplicaSet, error) - GetNamespaced(namespace, name string, opts metav1.GetOptions) (*v1beta2.ReplicaSet, error) - Get(name string, opts metav1.GetOptions) (*v1beta2.ReplicaSet, error) - Update(*v1beta2.ReplicaSet) (*v1beta2.ReplicaSet, error) + Create(*v1.ReplicaSet) (*v1.ReplicaSet, error) + GetNamespaced(namespace, name string, opts metav1.GetOptions) (*v1.ReplicaSet, error) + Get(name string, opts metav1.GetOptions) (*v1.ReplicaSet, error) + Update(*v1.ReplicaSet) (*v1.ReplicaSet, error) Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*ReplicaSetList, error) @@ -103,14 +103,14 @@ type replicaSetLister struct { controller *replicaSetController } -func (l *replicaSetLister) List(namespace string, selector labels.Selector) (ret []*v1beta2.ReplicaSet, err error) { +func (l *replicaSetLister) List(namespace string, selector labels.Selector) (ret []*v1.ReplicaSet, err error) { err = cache.ListAllByNamespace(l.controller.Informer().GetIndexer(), namespace, selector, func(obj interface{}) { - ret = append(ret, obj.(*v1beta2.ReplicaSet)) + ret = append(ret, obj.(*v1.ReplicaSet)) }) return } -func (l *replicaSetLister) Get(namespace, name string) (*v1beta2.ReplicaSet, error) { +func (l *replicaSetLister) Get(namespace, name string) (*v1.ReplicaSet, error) { var key string if namespace != "" { key = namespace + "/" + name @@ -127,7 +127,7 @@ func (l *replicaSetLister) Get(namespace, name string) (*v1beta2.ReplicaSet, err Resource: "replicaSet", }, key) } - return obj.(*v1beta2.ReplicaSet), nil + return obj.(*v1.ReplicaSet), nil } type replicaSetController struct { @@ -148,7 +148,7 @@ func (c *replicaSetController) AddHandler(ctx context.Context, name string, hand c.GenericController.AddHandler(ctx, name, func(key string, obj interface{}) (interface{}, error) { if obj == nil { return handler(key, nil) - } else if v, ok := obj.(*v1beta2.ReplicaSet); ok { + } else if v, ok := obj.(*v1.ReplicaSet); ok { return handler(key, v) } else { return nil, nil @@ -162,7 +162,7 @@ func (c *replicaSetController) AddFeatureHandler(ctx context.Context, enabled fu return nil, nil } else if obj == nil { return handler(key, nil) - } else if v, ok := obj.(*v1beta2.ReplicaSet); ok { + } else if v, ok := obj.(*v1.ReplicaSet); ok { return handler(key, v) } else { return nil, nil @@ -174,7 +174,7 @@ func (c *replicaSetController) AddClusterScopedHandler(ctx context.Context, name c.GenericController.AddHandler(ctx, name, func(key string, obj interface{}) (interface{}, error) { if obj == nil { return handler(key, nil) - } else if v, ok := obj.(*v1beta2.ReplicaSet); ok && controller.ObjectInCluster(cluster, obj) { + } else if v, ok := obj.(*v1.ReplicaSet); ok && controller.ObjectInCluster(cluster, obj) { return handler(key, v) } else { return nil, nil @@ -188,7 +188,7 @@ func (c *replicaSetController) AddClusterScopedFeatureHandler(ctx context.Contex return nil, nil } else if obj == nil { return handler(key, nil) - } else if v, ok := obj.(*v1beta2.ReplicaSet); ok && controller.ObjectInCluster(cluster, obj) { + } else if v, ok := obj.(*v1.ReplicaSet); ok && controller.ObjectInCluster(cluster, obj) { return handler(key, v) } else { return nil, nil @@ -200,7 +200,7 @@ type replicaSetFactory struct { } func (c replicaSetFactory) Object() runtime.Object { - return &v1beta2.ReplicaSet{} + return &v1.ReplicaSet{} } func (c replicaSetFactory) List() runtime.Object { @@ -240,24 +240,24 @@ func (s *replicaSetClient) ObjectClient() *objectclient.ObjectClient { return s.objectClient } -func (s *replicaSetClient) Create(o *v1beta2.ReplicaSet) (*v1beta2.ReplicaSet, error) { +func (s *replicaSetClient) Create(o *v1.ReplicaSet) (*v1.ReplicaSet, error) { obj, err := s.objectClient.Create(o) - return obj.(*v1beta2.ReplicaSet), err + return obj.(*v1.ReplicaSet), err } -func (s *replicaSetClient) Get(name string, opts metav1.GetOptions) (*v1beta2.ReplicaSet, error) { +func (s *replicaSetClient) Get(name string, opts metav1.GetOptions) (*v1.ReplicaSet, error) { obj, err := s.objectClient.Get(name, opts) - return obj.(*v1beta2.ReplicaSet), err + return obj.(*v1.ReplicaSet), err } -func (s *replicaSetClient) GetNamespaced(namespace, name string, opts metav1.GetOptions) (*v1beta2.ReplicaSet, error) { +func (s *replicaSetClient) GetNamespaced(namespace, name string, opts metav1.GetOptions) (*v1.ReplicaSet, error) { obj, err := s.objectClient.GetNamespaced(namespace, name, opts) - return obj.(*v1beta2.ReplicaSet), err + return obj.(*v1.ReplicaSet), err } -func (s *replicaSetClient) Update(o *v1beta2.ReplicaSet) (*v1beta2.ReplicaSet, error) { +func (s *replicaSetClient) Update(o *v1.ReplicaSet) (*v1.ReplicaSet, error) { obj, err := s.objectClient.Update(o.Name, o) - return obj.(*v1beta2.ReplicaSet), err + return obj.(*v1.ReplicaSet), err } func (s *replicaSetClient) Delete(name string, options *metav1.DeleteOptions) error { @@ -278,9 +278,9 @@ func (s *replicaSetClient) Watch(opts metav1.ListOptions) (watch.Interface, erro } // Patch applies the patch and returns the patched deployment. -func (s *replicaSetClient) Patch(o *v1beta2.ReplicaSet, patchType types.PatchType, data []byte, subresources ...string) (*v1beta2.ReplicaSet, error) { +func (s *replicaSetClient) Patch(o *v1.ReplicaSet, patchType types.PatchType, data []byte, subresources ...string) (*v1.ReplicaSet, error) { obj, err := s.objectClient.Patch(o.Name, o, patchType, data, subresources...) - return obj.(*v1beta2.ReplicaSet), err + return obj.(*v1.ReplicaSet), err } func (s *replicaSetClient) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error { @@ -323,20 +323,20 @@ func (s *replicaSetClient) AddClusterScopedFeatureLifecycle(ctx context.Context, s.Controller().AddClusterScopedFeatureHandler(ctx, enabled, name, clusterName, sync) } -type ReplicaSetIndexer func(obj *v1beta2.ReplicaSet) ([]string, error) +type ReplicaSetIndexer func(obj *v1.ReplicaSet) ([]string, error) type ReplicaSetClientCache interface { - Get(namespace, name string) (*v1beta2.ReplicaSet, error) - List(namespace string, selector labels.Selector) ([]*v1beta2.ReplicaSet, error) + Get(namespace, name string) (*v1.ReplicaSet, error) + List(namespace string, selector labels.Selector) ([]*v1.ReplicaSet, error) Index(name string, indexer ReplicaSetIndexer) - GetIndexed(name, key string) ([]*v1beta2.ReplicaSet, error) + GetIndexed(name, key string) ([]*v1.ReplicaSet, error) } type ReplicaSetClient interface { - Create(*v1beta2.ReplicaSet) (*v1beta2.ReplicaSet, error) - Get(namespace, name string, opts metav1.GetOptions) (*v1beta2.ReplicaSet, error) - Update(*v1beta2.ReplicaSet) (*v1beta2.ReplicaSet, error) + Create(*v1.ReplicaSet) (*v1.ReplicaSet, error) + Get(namespace, name string, opts metav1.GetOptions) (*v1.ReplicaSet, error) + Update(*v1.ReplicaSet) (*v1.ReplicaSet, error) Delete(namespace, name string, options *metav1.DeleteOptions) error List(namespace string, opts metav1.ListOptions) (*ReplicaSetList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) @@ -378,15 +378,15 @@ func (n *replicaSetClient2) Enqueue(namespace, name string) { n.iface.Controller().Enqueue(namespace, name) } -func (n *replicaSetClient2) Create(obj *v1beta2.ReplicaSet) (*v1beta2.ReplicaSet, error) { +func (n *replicaSetClient2) Create(obj *v1.ReplicaSet) (*v1.ReplicaSet, error) { return n.iface.Create(obj) } -func (n *replicaSetClient2) Get(namespace, name string, opts metav1.GetOptions) (*v1beta2.ReplicaSet, error) { +func (n *replicaSetClient2) Get(namespace, name string, opts metav1.GetOptions) (*v1.ReplicaSet, error) { return n.iface.GetNamespaced(namespace, name, opts) } -func (n *replicaSetClient2) Update(obj *v1beta2.ReplicaSet) (*v1beta2.ReplicaSet, error) { +func (n *replicaSetClient2) Update(obj *v1.ReplicaSet) (*v1.ReplicaSet, error) { return n.iface.Update(obj) } @@ -402,11 +402,11 @@ func (n *replicaSetClient2) Watch(opts metav1.ListOptions) (watch.Interface, err return n.iface.Watch(opts) } -func (n *replicaSetClientCache) Get(namespace, name string) (*v1beta2.ReplicaSet, error) { +func (n *replicaSetClientCache) Get(namespace, name string) (*v1.ReplicaSet, error) { return n.client.controller.Lister().Get(namespace, name) } -func (n *replicaSetClientCache) List(namespace string, selector labels.Selector) ([]*v1beta2.ReplicaSet, error) { +func (n *replicaSetClientCache) List(namespace string, selector labels.Selector) ([]*v1.ReplicaSet, error) { return n.client.controller.Lister().List(namespace, selector) } @@ -435,7 +435,7 @@ func (n *replicaSetClient2) OnRemove(ctx context.Context, name string, sync Repl func (n *replicaSetClientCache) Index(name string, indexer ReplicaSetIndexer) { err := n.client.controller.Informer().GetIndexer().AddIndexers(map[string]cache.IndexFunc{ name: func(obj interface{}) ([]string, error) { - if v, ok := obj.(*v1beta2.ReplicaSet); ok { + if v, ok := obj.(*v1.ReplicaSet); ok { return indexer(v) } return nil, nil @@ -447,14 +447,14 @@ func (n *replicaSetClientCache) Index(name string, indexer ReplicaSetIndexer) { } } -func (n *replicaSetClientCache) GetIndexed(name, key string) ([]*v1beta2.ReplicaSet, error) { - var result []*v1beta2.ReplicaSet +func (n *replicaSetClientCache) GetIndexed(name, key string) ([]*v1.ReplicaSet, error) { + var result []*v1.ReplicaSet objs, err := n.client.controller.Informer().GetIndexer().ByIndex(name, key) if err != nil { return nil, err } for _, obj := range objs { - if v, ok := obj.(*v1beta2.ReplicaSet); ok { + if v, ok := obj.(*v1.ReplicaSet); ok { result = append(result, v) } } @@ -478,7 +478,7 @@ func (n *replicaSetLifecycleDelegate) HasCreate() bool { return n.create != nil } -func (n *replicaSetLifecycleDelegate) Create(obj *v1beta2.ReplicaSet) (runtime.Object, error) { +func (n *replicaSetLifecycleDelegate) Create(obj *v1.ReplicaSet) (runtime.Object, error) { if n.create == nil { return obj, nil } @@ -489,14 +489,14 @@ func (n *replicaSetLifecycleDelegate) HasFinalize() bool { return n.remove != nil } -func (n *replicaSetLifecycleDelegate) Remove(obj *v1beta2.ReplicaSet) (runtime.Object, error) { +func (n *replicaSetLifecycleDelegate) Remove(obj *v1.ReplicaSet) (runtime.Object, error) { if n.remove == nil { return obj, nil } return n.remove(obj) } -func (n *replicaSetLifecycleDelegate) Updated(obj *v1beta2.ReplicaSet) (runtime.Object, error) { +func (n *replicaSetLifecycleDelegate) Updated(obj *v1.ReplicaSet) (runtime.Object, error) { if n.update == nil { return obj, nil } diff --git a/apis/apps/v1beta2/zz_generated_replica_set_lifecycle_adapter.go b/apis/apps/v1/zz_generated_replica_set_lifecycle_adapter.go similarity index 76% rename from apis/apps/v1beta2/zz_generated_replica_set_lifecycle_adapter.go rename to apis/apps/v1/zz_generated_replica_set_lifecycle_adapter.go index 710761e1..e7d0c7dc 100644 --- a/apis/apps/v1beta2/zz_generated_replica_set_lifecycle_adapter.go +++ b/apis/apps/v1/zz_generated_replica_set_lifecycle_adapter.go @@ -1,16 +1,16 @@ -package v1beta2 +package v1 import ( "github.com/rancher/norman/lifecycle" "github.com/rancher/norman/resource" - "k8s.io/api/apps/v1beta2" + v1 "k8s.io/api/apps/v1" "k8s.io/apimachinery/pkg/runtime" ) type ReplicaSetLifecycle interface { - Create(obj *v1beta2.ReplicaSet) (runtime.Object, error) - Remove(obj *v1beta2.ReplicaSet) (runtime.Object, error) - Updated(obj *v1beta2.ReplicaSet) (runtime.Object, error) + Create(obj *v1.ReplicaSet) (runtime.Object, error) + Remove(obj *v1.ReplicaSet) (runtime.Object, error) + Updated(obj *v1.ReplicaSet) (runtime.Object, error) } type replicaSetLifecycleAdapter struct { @@ -28,7 +28,7 @@ func (w *replicaSetLifecycleAdapter) HasFinalize() bool { } func (w *replicaSetLifecycleAdapter) Create(obj runtime.Object) (runtime.Object, error) { - o, err := w.lifecycle.Create(obj.(*v1beta2.ReplicaSet)) + o, err := w.lifecycle.Create(obj.(*v1.ReplicaSet)) if o == nil { return nil, err } @@ -36,7 +36,7 @@ func (w *replicaSetLifecycleAdapter) Create(obj runtime.Object) (runtime.Object, } func (w *replicaSetLifecycleAdapter) Finalize(obj runtime.Object) (runtime.Object, error) { - o, err := w.lifecycle.Remove(obj.(*v1beta2.ReplicaSet)) + o, err := w.lifecycle.Remove(obj.(*v1.ReplicaSet)) if o == nil { return nil, err } @@ -44,7 +44,7 @@ func (w *replicaSetLifecycleAdapter) Finalize(obj runtime.Object) (runtime.Objec } func (w *replicaSetLifecycleAdapter) Updated(obj runtime.Object) (runtime.Object, error) { - o, err := w.lifecycle.Updated(obj.(*v1beta2.ReplicaSet)) + o, err := w.lifecycle.Updated(obj.(*v1.ReplicaSet)) if o == nil { return nil, err } @@ -57,7 +57,7 @@ func NewReplicaSetLifecycleAdapter(name string, clusterScoped bool, client Repli } adapter := &replicaSetLifecycleAdapter{lifecycle: l} syncFn := lifecycle.NewObjectLifecycleAdapter(name, clusterScoped, adapter, client.ObjectClient()) - return func(key string, obj *v1beta2.ReplicaSet) (runtime.Object, error) { + return func(key string, obj *v1.ReplicaSet) (runtime.Object, error) { newObj, err := syncFn(key, obj) if o, ok := newObj.(runtime.Object); ok { return o, err diff --git a/apis/apps/v1beta2/zz_generated_scheme.go b/apis/apps/v1/zz_generated_scheme.go similarity index 96% rename from apis/apps/v1beta2/zz_generated_scheme.go rename to apis/apps/v1/zz_generated_scheme.go index f60e1340..1ea03aeb 100644 --- a/apis/apps/v1beta2/zz_generated_scheme.go +++ b/apis/apps/v1/zz_generated_scheme.go @@ -1,4 +1,4 @@ -package v1beta2 +package v1 import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" @@ -8,7 +8,7 @@ import ( const ( GroupName = "apps" - Version = "v1beta2" + Version = "v1" ) // SchemeGroupVersion is group version used to register these objects diff --git a/apis/apps/v1beta2/zz_generated_stateful_set_controller.go b/apis/apps/v1/zz_generated_stateful_set_controller.go similarity index 81% rename from apis/apps/v1beta2/zz_generated_stateful_set_controller.go rename to apis/apps/v1/zz_generated_stateful_set_controller.go index e61ff725..e871dfa3 100644 --- a/apis/apps/v1beta2/zz_generated_stateful_set_controller.go +++ b/apis/apps/v1/zz_generated_stateful_set_controller.go @@ -1,4 +1,4 @@ -package v1beta2 +package v1 import ( "context" @@ -6,7 +6,7 @@ import ( "github.com/rancher/norman/controller" "github.com/rancher/norman/objectclient" "github.com/rancher/norman/resource" - "k8s.io/api/apps/v1beta2" + v1 "k8s.io/api/apps/v1" "k8s.io/apimachinery/pkg/api/errors" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/labels" @@ -42,7 +42,7 @@ func init() { resource.Put(StatefulSetGroupVersionResource) } -func NewStatefulSet(namespace, name string, obj v1beta2.StatefulSet) *v1beta2.StatefulSet { +func NewStatefulSet(namespace, name string, obj v1.StatefulSet) *v1.StatefulSet { obj.APIVersion, obj.Kind = StatefulSetGroupVersionKind.ToAPIVersionAndKind() obj.Name = name obj.Namespace = namespace @@ -52,16 +52,16 @@ func NewStatefulSet(namespace, name string, obj v1beta2.StatefulSet) *v1beta2.St type StatefulSetList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []v1beta2.StatefulSet `json:"items"` + Items []v1.StatefulSet `json:"items"` } -type StatefulSetHandlerFunc func(key string, obj *v1beta2.StatefulSet) (runtime.Object, error) +type StatefulSetHandlerFunc func(key string, obj *v1.StatefulSet) (runtime.Object, error) -type StatefulSetChangeHandlerFunc func(obj *v1beta2.StatefulSet) (runtime.Object, error) +type StatefulSetChangeHandlerFunc func(obj *v1.StatefulSet) (runtime.Object, error) type StatefulSetLister interface { - List(namespace string, selector labels.Selector) (ret []*v1beta2.StatefulSet, err error) - Get(namespace, name string) (*v1beta2.StatefulSet, error) + List(namespace string, selector labels.Selector) (ret []*v1.StatefulSet, err error) + Get(namespace, name string) (*v1.StatefulSet, error) } type StatefulSetController interface { @@ -79,10 +79,10 @@ type StatefulSetController interface { type StatefulSetInterface interface { ObjectClient() *objectclient.ObjectClient - Create(*v1beta2.StatefulSet) (*v1beta2.StatefulSet, error) - GetNamespaced(namespace, name string, opts metav1.GetOptions) (*v1beta2.StatefulSet, error) - Get(name string, opts metav1.GetOptions) (*v1beta2.StatefulSet, error) - Update(*v1beta2.StatefulSet) (*v1beta2.StatefulSet, error) + Create(*v1.StatefulSet) (*v1.StatefulSet, error) + GetNamespaced(namespace, name string, opts metav1.GetOptions) (*v1.StatefulSet, error) + Get(name string, opts metav1.GetOptions) (*v1.StatefulSet, error) + Update(*v1.StatefulSet) (*v1.StatefulSet, error) Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*StatefulSetList, error) @@ -103,14 +103,14 @@ type statefulSetLister struct { controller *statefulSetController } -func (l *statefulSetLister) List(namespace string, selector labels.Selector) (ret []*v1beta2.StatefulSet, err error) { +func (l *statefulSetLister) List(namespace string, selector labels.Selector) (ret []*v1.StatefulSet, err error) { err = cache.ListAllByNamespace(l.controller.Informer().GetIndexer(), namespace, selector, func(obj interface{}) { - ret = append(ret, obj.(*v1beta2.StatefulSet)) + ret = append(ret, obj.(*v1.StatefulSet)) }) return } -func (l *statefulSetLister) Get(namespace, name string) (*v1beta2.StatefulSet, error) { +func (l *statefulSetLister) Get(namespace, name string) (*v1.StatefulSet, error) { var key string if namespace != "" { key = namespace + "/" + name @@ -127,7 +127,7 @@ func (l *statefulSetLister) Get(namespace, name string) (*v1beta2.StatefulSet, e Resource: "statefulSet", }, key) } - return obj.(*v1beta2.StatefulSet), nil + return obj.(*v1.StatefulSet), nil } type statefulSetController struct { @@ -148,7 +148,7 @@ func (c *statefulSetController) AddHandler(ctx context.Context, name string, han c.GenericController.AddHandler(ctx, name, func(key string, obj interface{}) (interface{}, error) { if obj == nil { return handler(key, nil) - } else if v, ok := obj.(*v1beta2.StatefulSet); ok { + } else if v, ok := obj.(*v1.StatefulSet); ok { return handler(key, v) } else { return nil, nil @@ -162,7 +162,7 @@ func (c *statefulSetController) AddFeatureHandler(ctx context.Context, enabled f return nil, nil } else if obj == nil { return handler(key, nil) - } else if v, ok := obj.(*v1beta2.StatefulSet); ok { + } else if v, ok := obj.(*v1.StatefulSet); ok { return handler(key, v) } else { return nil, nil @@ -174,7 +174,7 @@ func (c *statefulSetController) AddClusterScopedHandler(ctx context.Context, nam c.GenericController.AddHandler(ctx, name, func(key string, obj interface{}) (interface{}, error) { if obj == nil { return handler(key, nil) - } else if v, ok := obj.(*v1beta2.StatefulSet); ok && controller.ObjectInCluster(cluster, obj) { + } else if v, ok := obj.(*v1.StatefulSet); ok && controller.ObjectInCluster(cluster, obj) { return handler(key, v) } else { return nil, nil @@ -188,7 +188,7 @@ func (c *statefulSetController) AddClusterScopedFeatureHandler(ctx context.Conte return nil, nil } else if obj == nil { return handler(key, nil) - } else if v, ok := obj.(*v1beta2.StatefulSet); ok && controller.ObjectInCluster(cluster, obj) { + } else if v, ok := obj.(*v1.StatefulSet); ok && controller.ObjectInCluster(cluster, obj) { return handler(key, v) } else { return nil, nil @@ -200,7 +200,7 @@ type statefulSetFactory struct { } func (c statefulSetFactory) Object() runtime.Object { - return &v1beta2.StatefulSet{} + return &v1.StatefulSet{} } func (c statefulSetFactory) List() runtime.Object { @@ -240,24 +240,24 @@ func (s *statefulSetClient) ObjectClient() *objectclient.ObjectClient { return s.objectClient } -func (s *statefulSetClient) Create(o *v1beta2.StatefulSet) (*v1beta2.StatefulSet, error) { +func (s *statefulSetClient) Create(o *v1.StatefulSet) (*v1.StatefulSet, error) { obj, err := s.objectClient.Create(o) - return obj.(*v1beta2.StatefulSet), err + return obj.(*v1.StatefulSet), err } -func (s *statefulSetClient) Get(name string, opts metav1.GetOptions) (*v1beta2.StatefulSet, error) { +func (s *statefulSetClient) Get(name string, opts metav1.GetOptions) (*v1.StatefulSet, error) { obj, err := s.objectClient.Get(name, opts) - return obj.(*v1beta2.StatefulSet), err + return obj.(*v1.StatefulSet), err } -func (s *statefulSetClient) GetNamespaced(namespace, name string, opts metav1.GetOptions) (*v1beta2.StatefulSet, error) { +func (s *statefulSetClient) GetNamespaced(namespace, name string, opts metav1.GetOptions) (*v1.StatefulSet, error) { obj, err := s.objectClient.GetNamespaced(namespace, name, opts) - return obj.(*v1beta2.StatefulSet), err + return obj.(*v1.StatefulSet), err } -func (s *statefulSetClient) Update(o *v1beta2.StatefulSet) (*v1beta2.StatefulSet, error) { +func (s *statefulSetClient) Update(o *v1.StatefulSet) (*v1.StatefulSet, error) { obj, err := s.objectClient.Update(o.Name, o) - return obj.(*v1beta2.StatefulSet), err + return obj.(*v1.StatefulSet), err } func (s *statefulSetClient) Delete(name string, options *metav1.DeleteOptions) error { @@ -278,9 +278,9 @@ func (s *statefulSetClient) Watch(opts metav1.ListOptions) (watch.Interface, err } // Patch applies the patch and returns the patched deployment. -func (s *statefulSetClient) Patch(o *v1beta2.StatefulSet, patchType types.PatchType, data []byte, subresources ...string) (*v1beta2.StatefulSet, error) { +func (s *statefulSetClient) Patch(o *v1.StatefulSet, patchType types.PatchType, data []byte, subresources ...string) (*v1.StatefulSet, error) { obj, err := s.objectClient.Patch(o.Name, o, patchType, data, subresources...) - return obj.(*v1beta2.StatefulSet), err + return obj.(*v1.StatefulSet), err } func (s *statefulSetClient) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error { @@ -323,20 +323,20 @@ func (s *statefulSetClient) AddClusterScopedFeatureLifecycle(ctx context.Context s.Controller().AddClusterScopedFeatureHandler(ctx, enabled, name, clusterName, sync) } -type StatefulSetIndexer func(obj *v1beta2.StatefulSet) ([]string, error) +type StatefulSetIndexer func(obj *v1.StatefulSet) ([]string, error) type StatefulSetClientCache interface { - Get(namespace, name string) (*v1beta2.StatefulSet, error) - List(namespace string, selector labels.Selector) ([]*v1beta2.StatefulSet, error) + Get(namespace, name string) (*v1.StatefulSet, error) + List(namespace string, selector labels.Selector) ([]*v1.StatefulSet, error) Index(name string, indexer StatefulSetIndexer) - GetIndexed(name, key string) ([]*v1beta2.StatefulSet, error) + GetIndexed(name, key string) ([]*v1.StatefulSet, error) } type StatefulSetClient interface { - Create(*v1beta2.StatefulSet) (*v1beta2.StatefulSet, error) - Get(namespace, name string, opts metav1.GetOptions) (*v1beta2.StatefulSet, error) - Update(*v1beta2.StatefulSet) (*v1beta2.StatefulSet, error) + Create(*v1.StatefulSet) (*v1.StatefulSet, error) + Get(namespace, name string, opts metav1.GetOptions) (*v1.StatefulSet, error) + Update(*v1.StatefulSet) (*v1.StatefulSet, error) Delete(namespace, name string, options *metav1.DeleteOptions) error List(namespace string, opts metav1.ListOptions) (*StatefulSetList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) @@ -378,15 +378,15 @@ func (n *statefulSetClient2) Enqueue(namespace, name string) { n.iface.Controller().Enqueue(namespace, name) } -func (n *statefulSetClient2) Create(obj *v1beta2.StatefulSet) (*v1beta2.StatefulSet, error) { +func (n *statefulSetClient2) Create(obj *v1.StatefulSet) (*v1.StatefulSet, error) { return n.iface.Create(obj) } -func (n *statefulSetClient2) Get(namespace, name string, opts metav1.GetOptions) (*v1beta2.StatefulSet, error) { +func (n *statefulSetClient2) Get(namespace, name string, opts metav1.GetOptions) (*v1.StatefulSet, error) { return n.iface.GetNamespaced(namespace, name, opts) } -func (n *statefulSetClient2) Update(obj *v1beta2.StatefulSet) (*v1beta2.StatefulSet, error) { +func (n *statefulSetClient2) Update(obj *v1.StatefulSet) (*v1.StatefulSet, error) { return n.iface.Update(obj) } @@ -402,11 +402,11 @@ func (n *statefulSetClient2) Watch(opts metav1.ListOptions) (watch.Interface, er return n.iface.Watch(opts) } -func (n *statefulSetClientCache) Get(namespace, name string) (*v1beta2.StatefulSet, error) { +func (n *statefulSetClientCache) Get(namespace, name string) (*v1.StatefulSet, error) { return n.client.controller.Lister().Get(namespace, name) } -func (n *statefulSetClientCache) List(namespace string, selector labels.Selector) ([]*v1beta2.StatefulSet, error) { +func (n *statefulSetClientCache) List(namespace string, selector labels.Selector) ([]*v1.StatefulSet, error) { return n.client.controller.Lister().List(namespace, selector) } @@ -435,7 +435,7 @@ func (n *statefulSetClient2) OnRemove(ctx context.Context, name string, sync Sta func (n *statefulSetClientCache) Index(name string, indexer StatefulSetIndexer) { err := n.client.controller.Informer().GetIndexer().AddIndexers(map[string]cache.IndexFunc{ name: func(obj interface{}) ([]string, error) { - if v, ok := obj.(*v1beta2.StatefulSet); ok { + if v, ok := obj.(*v1.StatefulSet); ok { return indexer(v) } return nil, nil @@ -447,14 +447,14 @@ func (n *statefulSetClientCache) Index(name string, indexer StatefulSetIndexer) } } -func (n *statefulSetClientCache) GetIndexed(name, key string) ([]*v1beta2.StatefulSet, error) { - var result []*v1beta2.StatefulSet +func (n *statefulSetClientCache) GetIndexed(name, key string) ([]*v1.StatefulSet, error) { + var result []*v1.StatefulSet objs, err := n.client.controller.Informer().GetIndexer().ByIndex(name, key) if err != nil { return nil, err } for _, obj := range objs { - if v, ok := obj.(*v1beta2.StatefulSet); ok { + if v, ok := obj.(*v1.StatefulSet); ok { result = append(result, v) } } @@ -478,7 +478,7 @@ func (n *statefulSetLifecycleDelegate) HasCreate() bool { return n.create != nil } -func (n *statefulSetLifecycleDelegate) Create(obj *v1beta2.StatefulSet) (runtime.Object, error) { +func (n *statefulSetLifecycleDelegate) Create(obj *v1.StatefulSet) (runtime.Object, error) { if n.create == nil { return obj, nil } @@ -489,14 +489,14 @@ func (n *statefulSetLifecycleDelegate) HasFinalize() bool { return n.remove != nil } -func (n *statefulSetLifecycleDelegate) Remove(obj *v1beta2.StatefulSet) (runtime.Object, error) { +func (n *statefulSetLifecycleDelegate) Remove(obj *v1.StatefulSet) (runtime.Object, error) { if n.remove == nil { return obj, nil } return n.remove(obj) } -func (n *statefulSetLifecycleDelegate) Updated(obj *v1beta2.StatefulSet) (runtime.Object, error) { +func (n *statefulSetLifecycleDelegate) Updated(obj *v1.StatefulSet) (runtime.Object, error) { if n.update == nil { return obj, nil } diff --git a/apis/apps/v1beta2/zz_generated_stateful_set_lifecycle_adapter.go b/apis/apps/v1/zz_generated_stateful_set_lifecycle_adapter.go similarity index 76% rename from apis/apps/v1beta2/zz_generated_stateful_set_lifecycle_adapter.go rename to apis/apps/v1/zz_generated_stateful_set_lifecycle_adapter.go index c4b8e14c..883190d1 100644 --- a/apis/apps/v1beta2/zz_generated_stateful_set_lifecycle_adapter.go +++ b/apis/apps/v1/zz_generated_stateful_set_lifecycle_adapter.go @@ -1,16 +1,16 @@ -package v1beta2 +package v1 import ( "github.com/rancher/norman/lifecycle" "github.com/rancher/norman/resource" - "k8s.io/api/apps/v1beta2" + v1 "k8s.io/api/apps/v1" "k8s.io/apimachinery/pkg/runtime" ) type StatefulSetLifecycle interface { - Create(obj *v1beta2.StatefulSet) (runtime.Object, error) - Remove(obj *v1beta2.StatefulSet) (runtime.Object, error) - Updated(obj *v1beta2.StatefulSet) (runtime.Object, error) + Create(obj *v1.StatefulSet) (runtime.Object, error) + Remove(obj *v1.StatefulSet) (runtime.Object, error) + Updated(obj *v1.StatefulSet) (runtime.Object, error) } type statefulSetLifecycleAdapter struct { @@ -28,7 +28,7 @@ func (w *statefulSetLifecycleAdapter) HasFinalize() bool { } func (w *statefulSetLifecycleAdapter) Create(obj runtime.Object) (runtime.Object, error) { - o, err := w.lifecycle.Create(obj.(*v1beta2.StatefulSet)) + o, err := w.lifecycle.Create(obj.(*v1.StatefulSet)) if o == nil { return nil, err } @@ -36,7 +36,7 @@ func (w *statefulSetLifecycleAdapter) Create(obj runtime.Object) (runtime.Object } func (w *statefulSetLifecycleAdapter) Finalize(obj runtime.Object) (runtime.Object, error) { - o, err := w.lifecycle.Remove(obj.(*v1beta2.StatefulSet)) + o, err := w.lifecycle.Remove(obj.(*v1.StatefulSet)) if o == nil { return nil, err } @@ -44,7 +44,7 @@ func (w *statefulSetLifecycleAdapter) Finalize(obj runtime.Object) (runtime.Obje } func (w *statefulSetLifecycleAdapter) Updated(obj runtime.Object) (runtime.Object, error) { - o, err := w.lifecycle.Updated(obj.(*v1beta2.StatefulSet)) + o, err := w.lifecycle.Updated(obj.(*v1.StatefulSet)) if o == nil { return nil, err } @@ -57,7 +57,7 @@ func NewStatefulSetLifecycleAdapter(name string, clusterScoped bool, client Stat } adapter := &statefulSetLifecycleAdapter{lifecycle: l} syncFn := lifecycle.NewObjectLifecycleAdapter(name, clusterScoped, adapter, client.ObjectClient()) - return func(key string, obj *v1beta2.StatefulSet) (runtime.Object, error) { + return func(key string, obj *v1.StatefulSet) (runtime.Object, error) { newObj, err := syncFn(key, obj) if o, ok := newObj.(runtime.Object); ok { return o, err diff --git a/apis/extensions/v1beta1/zz_generated_deepcopy.go b/apis/extensions/v1beta1/zz_generated_deepcopy.go index dd26dde6..798ee10b 100644 --- a/apis/extensions/v1beta1/zz_generated_deepcopy.go +++ b/apis/extensions/v1beta1/zz_generated_deepcopy.go @@ -37,36 +37,3 @@ func (in *IngressList) DeepCopyObject() runtime.Object { } return nil } - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *PodSecurityPolicyList) DeepCopyInto(out *PodSecurityPolicyList) { - *out = *in - out.TypeMeta = in.TypeMeta - out.ListMeta = in.ListMeta - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]extensionsv1beta1.PodSecurityPolicy, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodSecurityPolicyList. -func (in *PodSecurityPolicyList) DeepCopy() *PodSecurityPolicyList { - if in == nil { - return nil - } - out := new(PodSecurityPolicyList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *PodSecurityPolicyList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} diff --git a/apis/extensions/v1beta1/zz_generated_k8s_client.go b/apis/extensions/v1beta1/zz_generated_k8s_client.go index 0712a537..2093c1f7 100644 --- a/apis/extensions/v1beta1/zz_generated_k8s_client.go +++ b/apis/extensions/v1beta1/zz_generated_k8s_client.go @@ -20,15 +20,13 @@ type Interface interface { RESTClient() rest.Interface controller.Starter - PodSecurityPoliciesGetter IngressesGetter } type Clients struct { Interface Interface - PodSecurityPolicy PodSecurityPolicyClient - Ingress IngressClient + Ingress IngressClient } type Client struct { @@ -36,8 +34,7 @@ type Client struct { restClient rest.Interface starters []controller.Starter - podSecurityPolicyControllers map[string]PodSecurityPolicyController - ingressControllers map[string]IngressController + ingressControllers map[string]IngressController } func Factory(ctx context.Context, config rest.Config) (context.Context, controller.Starter, error) { @@ -73,9 +70,6 @@ func NewClientsFromInterface(iface Interface) *Clients { return &Clients{ Interface: iface, - PodSecurityPolicy: &podSecurityPolicyClient2{ - iface: iface.PodSecurityPolicies(""), - }, Ingress: &ingressClient2{ iface: iface.Ingresses(""), }, @@ -95,8 +89,7 @@ func NewForConfig(config rest.Config) (Interface, error) { return &Client{ restClient: restClient, - podSecurityPolicyControllers: map[string]PodSecurityPolicyController{}, - ingressControllers: map[string]IngressController{}, + ingressControllers: map[string]IngressController{}, }, nil } @@ -112,19 +105,6 @@ func (c *Client) Start(ctx context.Context, threadiness int) error { return controller.Start(ctx, threadiness, c.starters...) } -type PodSecurityPoliciesGetter interface { - PodSecurityPolicies(namespace string) PodSecurityPolicyInterface -} - -func (c *Client) PodSecurityPolicies(namespace string) PodSecurityPolicyInterface { - objectClient := objectclient.NewObjectClient(namespace, c.restClient, &PodSecurityPolicyResource, PodSecurityPolicyGroupVersionKind, podSecurityPolicyFactory{}) - return &podSecurityPolicyClient{ - ns: namespace, - client: c, - objectClient: objectClient, - } -} - type IngressesGetter interface { Ingresses(namespace string) IngressInterface } diff --git a/apis/extensions/v1beta1/zz_generated_scheme.go b/apis/extensions/v1beta1/zz_generated_scheme.go index 85ef02e8..507b45f0 100644 --- a/apis/extensions/v1beta1/zz_generated_scheme.go +++ b/apis/extensions/v1beta1/zz_generated_scheme.go @@ -34,7 +34,6 @@ func addKnownTypes(scheme *runtime.Scheme) error { // TODO this gets cleaned up when the types are fixed scheme.AddKnownTypes(SchemeGroupVersion, - &PodSecurityPolicyList{}, &IngressList{}, ) metav1.AddToGroupVersion(scheme, SchemeGroupVersion) diff --git a/apis/extensions/v1beta1/fakes/zz_generated_pod_security_policy_mock.go b/apis/policy/v1beta1/fakes/zz_generated_pod_security_policy_mock.go similarity index 99% rename from apis/extensions/v1beta1/fakes/zz_generated_pod_security_policy_mock.go rename to apis/policy/v1beta1/fakes/zz_generated_pod_security_policy_mock.go index fc41de57..04a43462 100644 --- a/apis/extensions/v1beta1/fakes/zz_generated_pod_security_policy_mock.go +++ b/apis/policy/v1beta1/fakes/zz_generated_pod_security_policy_mock.go @@ -9,8 +9,8 @@ import ( controller "github.com/rancher/norman/controller" objectclient "github.com/rancher/norman/objectclient" - v1beta1a "github.com/rancher/types/apis/extensions/v1beta1" - v1beta1 "k8s.io/api/extensions/v1beta1" + v1beta1a "github.com/rancher/types/apis/policy/v1beta1" + v1beta1 "k8s.io/api/policy/v1beta1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" labels "k8s.io/apimachinery/pkg/labels" watch "k8s.io/apimachinery/pkg/watch" diff --git a/apis/policy/v1beta1/zz_generated_deepcopy.go b/apis/policy/v1beta1/zz_generated_deepcopy.go new file mode 100644 index 00000000..d8348006 --- /dev/null +++ b/apis/policy/v1beta1/zz_generated_deepcopy.go @@ -0,0 +1,39 @@ +package v1beta1 + +import ( + policyv1beta1 "k8s.io/api/policy/v1beta1" + runtime "k8s.io/apimachinery/pkg/runtime" +) + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *PodSecurityPolicyList) DeepCopyInto(out *PodSecurityPolicyList) { + *out = *in + out.TypeMeta = in.TypeMeta + out.ListMeta = in.ListMeta + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]policyv1beta1.PodSecurityPolicy, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodSecurityPolicyList. +func (in *PodSecurityPolicyList) DeepCopy() *PodSecurityPolicyList { + if in == nil { + return nil + } + out := new(PodSecurityPolicyList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *PodSecurityPolicyList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} diff --git a/apis/policy/v1beta1/zz_generated_k8s_client.go b/apis/policy/v1beta1/zz_generated_k8s_client.go new file mode 100644 index 00000000..0a52d5ce --- /dev/null +++ b/apis/policy/v1beta1/zz_generated_k8s_client.go @@ -0,0 +1,119 @@ +package v1beta1 + +import ( + "context" + "sync" + + "github.com/rancher/norman/controller" + "github.com/rancher/norman/objectclient" + "github.com/rancher/norman/objectclient/dynamic" + "github.com/rancher/norman/restwatch" + "k8s.io/client-go/rest" +) + +type ( + contextKeyType struct{} + contextClientsKeyType struct{} +) + +type Interface interface { + RESTClient() rest.Interface + controller.Starter + + PodSecurityPoliciesGetter +} + +type Clients struct { + Interface Interface + + PodSecurityPolicy PodSecurityPolicyClient +} + +type Client struct { + sync.Mutex + restClient rest.Interface + starters []controller.Starter + + podSecurityPolicyControllers map[string]PodSecurityPolicyController +} + +func Factory(ctx context.Context, config rest.Config) (context.Context, controller.Starter, error) { + c, err := NewForConfig(config) + if err != nil { + return ctx, nil, err + } + + cs := NewClientsFromInterface(c) + + ctx = context.WithValue(ctx, contextKeyType{}, c) + ctx = context.WithValue(ctx, contextClientsKeyType{}, cs) + return ctx, c, nil +} + +func ClientsFrom(ctx context.Context) *Clients { + return ctx.Value(contextClientsKeyType{}).(*Clients) +} + +func From(ctx context.Context) Interface { + return ctx.Value(contextKeyType{}).(Interface) +} + +func NewClients(config rest.Config) (*Clients, error) { + iface, err := NewForConfig(config) + if err != nil { + return nil, err + } + return NewClientsFromInterface(iface), nil +} + +func NewClientsFromInterface(iface Interface) *Clients { + return &Clients{ + Interface: iface, + + PodSecurityPolicy: &podSecurityPolicyClient2{ + iface: iface.PodSecurityPolicies(""), + }, + } +} + +func NewForConfig(config rest.Config) (Interface, error) { + if config.NegotiatedSerializer == nil { + config.NegotiatedSerializer = dynamic.NegotiatedSerializer + } + + restClient, err := restwatch.UnversionedRESTClientFor(&config) + if err != nil { + return nil, err + } + + return &Client{ + restClient: restClient, + + podSecurityPolicyControllers: map[string]PodSecurityPolicyController{}, + }, nil +} + +func (c *Client) RESTClient() rest.Interface { + return c.restClient +} + +func (c *Client) Sync(ctx context.Context) error { + return controller.Sync(ctx, c.starters...) +} + +func (c *Client) Start(ctx context.Context, threadiness int) error { + return controller.Start(ctx, threadiness, c.starters...) +} + +type PodSecurityPoliciesGetter interface { + PodSecurityPolicies(namespace string) PodSecurityPolicyInterface +} + +func (c *Client) PodSecurityPolicies(namespace string) PodSecurityPolicyInterface { + objectClient := objectclient.NewObjectClient(namespace, c.restClient, &PodSecurityPolicyResource, PodSecurityPolicyGroupVersionKind, podSecurityPolicyFactory{}) + return &podSecurityPolicyClient{ + ns: namespace, + client: c, + objectClient: objectClient, + } +} diff --git a/apis/extensions/v1beta1/zz_generated_pod_security_policy_controller.go b/apis/policy/v1beta1/zz_generated_pod_security_policy_controller.go similarity index 99% rename from apis/extensions/v1beta1/zz_generated_pod_security_policy_controller.go rename to apis/policy/v1beta1/zz_generated_pod_security_policy_controller.go index 6daf0d3e..6ab55187 100644 --- a/apis/extensions/v1beta1/zz_generated_pod_security_policy_controller.go +++ b/apis/policy/v1beta1/zz_generated_pod_security_policy_controller.go @@ -6,7 +6,7 @@ import ( "github.com/rancher/norman/controller" "github.com/rancher/norman/objectclient" "github.com/rancher/norman/resource" - "k8s.io/api/extensions/v1beta1" + "k8s.io/api/policy/v1beta1" "k8s.io/apimachinery/pkg/api/errors" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/labels" diff --git a/apis/extensions/v1beta1/zz_generated_pod_security_policy_lifecycle_adapter.go b/apis/policy/v1beta1/zz_generated_pod_security_policy_lifecycle_adapter.go similarity index 98% rename from apis/extensions/v1beta1/zz_generated_pod_security_policy_lifecycle_adapter.go rename to apis/policy/v1beta1/zz_generated_pod_security_policy_lifecycle_adapter.go index e024f114..d97a8abc 100644 --- a/apis/extensions/v1beta1/zz_generated_pod_security_policy_lifecycle_adapter.go +++ b/apis/policy/v1beta1/zz_generated_pod_security_policy_lifecycle_adapter.go @@ -3,7 +3,7 @@ package v1beta1 import ( "github.com/rancher/norman/lifecycle" "github.com/rancher/norman/resource" - "k8s.io/api/extensions/v1beta1" + "k8s.io/api/policy/v1beta1" "k8s.io/apimachinery/pkg/runtime" ) diff --git a/apis/policy/v1beta1/zz_generated_scheme.go b/apis/policy/v1beta1/zz_generated_scheme.go new file mode 100644 index 00000000..be2c7c03 --- /dev/null +++ b/apis/policy/v1beta1/zz_generated_scheme.go @@ -0,0 +1,41 @@ +package v1beta1 + +import ( + metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" + "k8s.io/apimachinery/pkg/runtime" + "k8s.io/apimachinery/pkg/runtime/schema" +) + +const ( + GroupName = "policy" + Version = "v1beta1" +) + +// SchemeGroupVersion is group version used to register these objects +var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: Version} + +// Kind takes an unqualified kind and returns a Group qualified GroupKind +func Kind(kind string) schema.GroupKind { + return SchemeGroupVersion.WithKind(kind).GroupKind() +} + +// Resource takes an unqualified resource and returns a Group qualified GroupResource +func Resource(resource string) schema.GroupResource { + return SchemeGroupVersion.WithResource(resource).GroupResource() +} + +var ( + SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) + AddToScheme = SchemeBuilder.AddToScheme +) + +// Adds the list of known types to api.Scheme. +func addKnownTypes(scheme *runtime.Scheme) error { + // TODO this gets cleaned up when the types are fixed + scheme.AddKnownTypes(SchemeGroupVersion, + + &PodSecurityPolicyList{}, + ) + metav1.AddToGroupVersion(scheme, SchemeGroupVersion) + return nil +}