build: update codegen code generator to 0.34.2

this commit update the codegen to latest version
v0.34.2 to support golang 1.25

Signed-off-by: subhamkrai <srai@redhat.com>
This commit is contained in:
subhamkrai committed 2025-12-01 17:02:59 +05:30
1 parent de4f96769a
commit 73d2541b3d
75 files changed
+1168 -2366

No files matched your search

+1 -1
View File
@@ -34,7 +34,7 @@ source "${CODE_GENERATOR}/kube_codegen.sh"
kube::codegen::gen_helpers \
--boilerplate "${boilerplate}" \
"${base_dir}/pkg/apis" \
# run code client,lister,informer generation
kube::codegen::gen_client \
--output-dir "${base_dir}/pkg/client" \
+1 -1
View File
@@ -221,7 +221,7 @@ $(CONTROLLER_GEN):
}
export CODE_GENERATOR_VERSION=0.31.3
export CODE_GENERATOR_VERSION=0.34.2
export CODE_GENERATOR=$(TOOLS_HOST_DIR)/code-generator-$(CODE_GENERATOR_VERSION)
$(CODE_GENERATOR):
mkdir -p $(TOOLS_HOST_DIR)
+2 -2
View File
@@ -19,8 +19,8 @@ limitations under the License.
package versioned
import (
"fmt"
"net/http"
fmt "fmt"
http "net/http"
cephv1 "github.com/rook/rook/pkg/client/clientset/versioned/typed/ceph.rook.io/v1"
discovery "k8s.io/client-go/discovery"
@@ -22,6 +22,7 @@ import (
clientset "github.com/rook/rook/pkg/client/clientset/versioned"
cephv1 "github.com/rook/rook/pkg/client/clientset/versioned/typed/ceph.rook.io/v1"
fakecephv1 "github.com/rook/rook/pkg/client/clientset/versioned/typed/ceph.rook.io/v1/fake"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/watch"
"k8s.io/client-go/discovery"
@@ -49,9 +50,13 @@ func NewSimpleClientset(objects ...runtime.Object) *Clientset {
cs.discovery = &fakediscovery.FakeDiscovery{Fake: &cs.Fake}
cs.AddReactor("*", "*", testing.ObjectReaction(o))
cs.AddWatchReactor("*", func(action testing.Action) (handled bool, ret watch.Interface, err error) {
var opts metav1.ListOptions
if watchActcion, ok := action.(testing.WatchActionImpl); ok {
opts = watchActcion.ListOptions
}
gvr := action.GetResource()
ns := action.GetNamespace()
watch, err := o.Watch(gvr, ns)
watch, err := o.Watch(gvr, ns, opts)
if err != nil {
return false, nil, err
}
@@ -19,10 +19,10 @@ limitations under the License.
package v1
import (
"net/http"
http "net/http"
v1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
"github.com/rook/rook/pkg/client/clientset/versioned/scheme"
cephrookiov1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
scheme "github.com/rook/rook/pkg/client/clientset/versioned/scheme"
rest "k8s.io/client-go/rest"
)
@@ -125,9 +125,7 @@ func (c *CephV1Client) CephRBDMirrors(namespace string) CephRBDMirrorInterface {
// where httpClient was generated with rest.HTTPClientFor(c).
func NewForConfig(c *rest.Config) (*CephV1Client, error) {
config := *c
if err := setConfigDefaults(&config); err != nil {
return nil, err
}
setConfigDefaults(&config)
httpClient, err := rest.HTTPClientFor(&config)
if err != nil {
return nil, err
@@ -139,9 +137,7 @@ func NewForConfig(c *rest.Config) (*CephV1Client, error) {
// Note the http client provided takes precedence over the configured transport values.
func NewForConfigAndClient(c *rest.Config, h *http.Client) (*CephV1Client, error) {
config := *c
if err := setConfigDefaults(&config); err != nil {
return nil, err
}
setConfigDefaults(&config)
client, err := rest.RESTClientForConfigAndClient(&config, h)
if err != nil {
return nil, err
@@ -164,17 +160,15 @@ func New(c rest.Interface) *CephV1Client {
return &CephV1Client{c}
}
func setConfigDefaults(config *rest.Config) error {
gv := v1.SchemeGroupVersion
func setConfigDefaults(config *rest.Config) {
gv := cephrookiov1.SchemeGroupVersion
config.GroupVersion = &gv
config.APIPath = "/apis"
config.NegotiatedSerializer = scheme.Codecs.WithoutConversion()
config.NegotiatedSerializer = rest.CodecFactoryForGeneratedClient(scheme.Scheme, scheme.Codecs).WithoutConversion()
if config.UserAgent == "" {
config.UserAgent = rest.DefaultKubernetesUserAgent()
}
return nil
}
// RESTClient returns a RESTClient that is used to communicate
@@ -19,9 +19,9 @@ limitations under the License.
package v1
import (
"context"
context "context"
v1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
cephrookiov1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
scheme "github.com/rook/rook/pkg/client/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -37,31 +37,32 @@ type CephBlockPoolsGetter interface {
// CephBlockPoolInterface has methods to work with CephBlockPool resources.
type CephBlockPoolInterface interface {
Create(ctx context.Context, cephBlockPool *v1.CephBlockPool, opts metav1.CreateOptions) (*v1.CephBlockPool, error)
Update(ctx context.Context, cephBlockPool *v1.CephBlockPool, opts metav1.UpdateOptions) (*v1.CephBlockPool, error)
Create(ctx context.Context, cephBlockPool *cephrookiov1.CephBlockPool, opts metav1.CreateOptions) (*cephrookiov1.CephBlockPool, error)
Update(ctx context.Context, cephBlockPool *cephrookiov1.CephBlockPool, opts metav1.UpdateOptions) (*cephrookiov1.CephBlockPool, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.CephBlockPool, error)
List(ctx context.Context, opts metav1.ListOptions) (*v1.CephBlockPoolList, error)
Get(ctx context.Context, name string, opts metav1.GetOptions) (*cephrookiov1.CephBlockPool, error)
List(ctx context.Context, opts metav1.ListOptions) (*cephrookiov1.CephBlockPoolList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.CephBlockPool, err error)
Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *cephrookiov1.CephBlockPool, err error)
CephBlockPoolExpansion
}
// cephBlockPools implements CephBlockPoolInterface
type cephBlockPools struct {
*gentype.ClientWithList[*v1.CephBlockPool, *v1.CephBlockPoolList]
*gentype.ClientWithList[*cephrookiov1.CephBlockPool, *cephrookiov1.CephBlockPoolList]
}
// newCephBlockPools returns a CephBlockPools
func newCephBlockPools(c *CephV1Client, namespace string) *cephBlockPools {
return &cephBlockPools{
gentype.NewClientWithList[*v1.CephBlockPool, *v1.CephBlockPoolList](
gentype.NewClientWithList[*cephrookiov1.CephBlockPool, *cephrookiov1.CephBlockPoolList](
"cephblockpools",
c.RESTClient(),
scheme.ParameterCodec,
namespace,
func() *v1.CephBlockPool { return &v1.CephBlockPool{} },
func() *v1.CephBlockPoolList { return &v1.CephBlockPoolList{} }),
func() *cephrookiov1.CephBlockPool { return &cephrookiov1.CephBlockPool{} },
func() *cephrookiov1.CephBlockPoolList { return &cephrookiov1.CephBlockPoolList{} },
),
}
}
@@ -19,9 +19,9 @@ limitations under the License.
package v1
import (
"context"
context "context"
v1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
cephrookiov1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
scheme "github.com/rook/rook/pkg/client/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -37,31 +37,34 @@ type CephBlockPoolRadosNamespacesGetter interface {
// CephBlockPoolRadosNamespaceInterface has methods to work with CephBlockPoolRadosNamespace resources.
type CephBlockPoolRadosNamespaceInterface interface {
Create(ctx context.Context, cephBlockPoolRadosNamespace *v1.CephBlockPoolRadosNamespace, opts metav1.CreateOptions) (*v1.CephBlockPoolRadosNamespace, error)
Update(ctx context.Context, cephBlockPoolRadosNamespace *v1.CephBlockPoolRadosNamespace, opts metav1.UpdateOptions) (*v1.CephBlockPoolRadosNamespace, error)
Create(ctx context.Context, cephBlockPoolRadosNamespace *cephrookiov1.CephBlockPoolRadosNamespace, opts metav1.CreateOptions) (*cephrookiov1.CephBlockPoolRadosNamespace, error)
Update(ctx context.Context, cephBlockPoolRadosNamespace *cephrookiov1.CephBlockPoolRadosNamespace, opts metav1.UpdateOptions) (*cephrookiov1.CephBlockPoolRadosNamespace, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.CephBlockPoolRadosNamespace, error)
List(ctx context.Context, opts metav1.ListOptions) (*v1.CephBlockPoolRadosNamespaceList, error)
Get(ctx context.Context, name string, opts metav1.GetOptions) (*cephrookiov1.CephBlockPoolRadosNamespace, error)
List(ctx context.Context, opts metav1.ListOptions) (*cephrookiov1.CephBlockPoolRadosNamespaceList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.CephBlockPoolRadosNamespace, err error)
Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *cephrookiov1.CephBlockPoolRadosNamespace, err error)
CephBlockPoolRadosNamespaceExpansion
}
// cephBlockPoolRadosNamespaces implements CephBlockPoolRadosNamespaceInterface
type cephBlockPoolRadosNamespaces struct {
*gentype.ClientWithList[*v1.CephBlockPoolRadosNamespace, *v1.CephBlockPoolRadosNamespaceList]
*gentype.ClientWithList[*cephrookiov1.CephBlockPoolRadosNamespace, *cephrookiov1.CephBlockPoolRadosNamespaceList]
}
// newCephBlockPoolRadosNamespaces returns a CephBlockPoolRadosNamespaces
func newCephBlockPoolRadosNamespaces(c *CephV1Client, namespace string) *cephBlockPoolRadosNamespaces {
return &cephBlockPoolRadosNamespaces{
gentype.NewClientWithList[*v1.CephBlockPoolRadosNamespace, *v1.CephBlockPoolRadosNamespaceList](
gentype.NewClientWithList[*cephrookiov1.CephBlockPoolRadosNamespace, *cephrookiov1.CephBlockPoolRadosNamespaceList](
"cephblockpoolradosnamespaces",
c.RESTClient(),
scheme.ParameterCodec,
namespace,
func() *v1.CephBlockPoolRadosNamespace { return &v1.CephBlockPoolRadosNamespace{} },
func() *v1.CephBlockPoolRadosNamespaceList { return &v1.CephBlockPoolRadosNamespaceList{} }),
func() *cephrookiov1.CephBlockPoolRadosNamespace { return &cephrookiov1.CephBlockPoolRadosNamespace{} },
func() *cephrookiov1.CephBlockPoolRadosNamespaceList {
return &cephrookiov1.CephBlockPoolRadosNamespaceList{}
},
),
}
}
@@ -19,9 +19,9 @@ limitations under the License.
package v1
import (
"context"
context "context"
v1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
cephrookiov1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
scheme "github.com/rook/rook/pkg/client/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -37,31 +37,32 @@ type CephBucketNotificationsGetter interface {
// CephBucketNotificationInterface has methods to work with CephBucketNotification resources.
type CephBucketNotificationInterface interface {
Create(ctx context.Context, cephBucketNotification *v1.CephBucketNotification, opts metav1.CreateOptions) (*v1.CephBucketNotification, error)
Update(ctx context.Context, cephBucketNotification *v1.CephBucketNotification, opts metav1.UpdateOptions) (*v1.CephBucketNotification, error)
Create(ctx context.Context, cephBucketNotification *cephrookiov1.CephBucketNotification, opts metav1.CreateOptions) (*cephrookiov1.CephBucketNotification, error)
Update(ctx context.Context, cephBucketNotification *cephrookiov1.CephBucketNotification, opts metav1.UpdateOptions) (*cephrookiov1.CephBucketNotification, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.CephBucketNotification, error)
List(ctx context.Context, opts metav1.ListOptions) (*v1.CephBucketNotificationList, error)
Get(ctx context.Context, name string, opts metav1.GetOptions) (*cephrookiov1.CephBucketNotification, error)
List(ctx context.Context, opts metav1.ListOptions) (*cephrookiov1.CephBucketNotificationList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.CephBucketNotification, err error)
Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *cephrookiov1.CephBucketNotification, err error)
CephBucketNotificationExpansion
}
// cephBucketNotifications implements CephBucketNotificationInterface
type cephBucketNotifications struct {
*gentype.ClientWithList[*v1.CephBucketNotification, *v1.CephBucketNotificationList]
*gentype.ClientWithList[*cephrookiov1.CephBucketNotification, *cephrookiov1.CephBucketNotificationList]
}
// newCephBucketNotifications returns a CephBucketNotifications
func newCephBucketNotifications(c *CephV1Client, namespace string) *cephBucketNotifications {
return &cephBucketNotifications{
gentype.NewClientWithList[*v1.CephBucketNotification, *v1.CephBucketNotificationList](
gentype.NewClientWithList[*cephrookiov1.CephBucketNotification, *cephrookiov1.CephBucketNotificationList](
"cephbucketnotifications",
c.RESTClient(),
scheme.ParameterCodec,
namespace,
func() *v1.CephBucketNotification { return &v1.CephBucketNotification{} },
func() *v1.CephBucketNotificationList { return &v1.CephBucketNotificationList{} }),
func() *cephrookiov1.CephBucketNotification { return &cephrookiov1.CephBucketNotification{} },
func() *cephrookiov1.CephBucketNotificationList { return &cephrookiov1.CephBucketNotificationList{} },
),
}
}
@@ -19,9 +19,9 @@ limitations under the License.
package v1
import (
"context"
context "context"
v1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
cephrookiov1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
scheme "github.com/rook/rook/pkg/client/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -37,31 +37,32 @@ type CephBucketTopicsGetter interface {
// CephBucketTopicInterface has methods to work with CephBucketTopic resources.
type CephBucketTopicInterface interface {
Create(ctx context.Context, cephBucketTopic *v1.CephBucketTopic, opts metav1.CreateOptions) (*v1.CephBucketTopic, error)
Update(ctx context.Context, cephBucketTopic *v1.CephBucketTopic, opts metav1.UpdateOptions) (*v1.CephBucketTopic, error)
Create(ctx context.Context, cephBucketTopic *cephrookiov1.CephBucketTopic, opts metav1.CreateOptions) (*cephrookiov1.CephBucketTopic, error)
Update(ctx context.Context, cephBucketTopic *cephrookiov1.CephBucketTopic, opts metav1.UpdateOptions) (*cephrookiov1.CephBucketTopic, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.CephBucketTopic, error)
List(ctx context.Context, opts metav1.ListOptions) (*v1.CephBucketTopicList, error)
Get(ctx context.Context, name string, opts metav1.GetOptions) (*cephrookiov1.CephBucketTopic, error)
List(ctx context.Context, opts metav1.ListOptions) (*cephrookiov1.CephBucketTopicList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.CephBucketTopic, err error)
Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *cephrookiov1.CephBucketTopic, err error)
CephBucketTopicExpansion
}
// cephBucketTopics implements CephBucketTopicInterface
type cephBucketTopics struct {
*gentype.ClientWithList[*v1.CephBucketTopic, *v1.CephBucketTopicList]
*gentype.ClientWithList[*cephrookiov1.CephBucketTopic, *cephrookiov1.CephBucketTopicList]
}
// newCephBucketTopics returns a CephBucketTopics
func newCephBucketTopics(c *CephV1Client, namespace string) *cephBucketTopics {
return &cephBucketTopics{
gentype.NewClientWithList[*v1.CephBucketTopic, *v1.CephBucketTopicList](
gentype.NewClientWithList[*cephrookiov1.CephBucketTopic, *cephrookiov1.CephBucketTopicList](
"cephbuckettopics",
c.RESTClient(),
scheme.ParameterCodec,
namespace,
func() *v1.CephBucketTopic { return &v1.CephBucketTopic{} },
func() *v1.CephBucketTopicList { return &v1.CephBucketTopicList{} }),
func() *cephrookiov1.CephBucketTopic { return &cephrookiov1.CephBucketTopic{} },
func() *cephrookiov1.CephBucketTopicList { return &cephrookiov1.CephBucketTopicList{} },
),
}
}
@@ -19,9 +19,9 @@ limitations under the License.
package v1
import (
"context"
context "context"
v1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
cephrookiov1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
scheme "github.com/rook/rook/pkg/client/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -37,31 +37,32 @@ type CephClientsGetter interface {
// CephClientInterface has methods to work with CephClient resources.
type CephClientInterface interface {
Create(ctx context.Context, cephClient *v1.CephClient, opts metav1.CreateOptions) (*v1.CephClient, error)
Update(ctx context.Context, cephClient *v1.CephClient, opts metav1.UpdateOptions) (*v1.CephClient, error)
Create(ctx context.Context, cephClient *cephrookiov1.CephClient, opts metav1.CreateOptions) (*cephrookiov1.CephClient, error)
Update(ctx context.Context, cephClient *cephrookiov1.CephClient, opts metav1.UpdateOptions) (*cephrookiov1.CephClient, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.CephClient, error)
List(ctx context.Context, opts metav1.ListOptions) (*v1.CephClientList, error)
Get(ctx context.Context, name string, opts metav1.GetOptions) (*cephrookiov1.CephClient, error)
List(ctx context.Context, opts metav1.ListOptions) (*cephrookiov1.CephClientList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.CephClient, err error)
Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *cephrookiov1.CephClient, err error)
CephClientExpansion
}
// cephClients implements CephClientInterface
type cephClients struct {
*gentype.ClientWithList[*v1.CephClient, *v1.CephClientList]
*gentype.ClientWithList[*cephrookiov1.CephClient, *cephrookiov1.CephClientList]
}
// newCephClients returns a CephClients
func newCephClients(c *CephV1Client, namespace string) *cephClients {
return &cephClients{
gentype.NewClientWithList[*v1.CephClient, *v1.CephClientList](
gentype.NewClientWithList[*cephrookiov1.CephClient, *cephrookiov1.CephClientList](
"cephclients",
c.RESTClient(),
scheme.ParameterCodec,
namespace,
func() *v1.CephClient { return &v1.CephClient{} },
func() *v1.CephClientList { return &v1.CephClientList{} }),
func() *cephrookiov1.CephClient { return &cephrookiov1.CephClient{} },
func() *cephrookiov1.CephClientList { return &cephrookiov1.CephClientList{} },
),
}
}
@@ -19,9 +19,9 @@ limitations under the License.
package v1
import (
"context"
context "context"
v1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
cephrookiov1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
scheme "github.com/rook/rook/pkg/client/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -37,31 +37,32 @@ type CephClustersGetter interface {
// CephClusterInterface has methods to work with CephCluster resources.
type CephClusterInterface interface {
Create(ctx context.Context, cephCluster *v1.CephCluster, opts metav1.CreateOptions) (*v1.CephCluster, error)
Update(ctx context.Context, cephCluster *v1.CephCluster, opts metav1.UpdateOptions) (*v1.CephCluster, error)
Create(ctx context.Context, cephCluster *cephrookiov1.CephCluster, opts metav1.CreateOptions) (*cephrookiov1.CephCluster, error)
Update(ctx context.Context, cephCluster *cephrookiov1.CephCluster, opts metav1.UpdateOptions) (*cephrookiov1.CephCluster, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.CephCluster, error)
List(ctx context.Context, opts metav1.ListOptions) (*v1.CephClusterList, error)
Get(ctx context.Context, name string, opts metav1.GetOptions) (*cephrookiov1.CephCluster, error)
List(ctx context.Context, opts metav1.ListOptions) (*cephrookiov1.CephClusterList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.CephCluster, err error)
Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *cephrookiov1.CephCluster, err error)
CephClusterExpansion
}
// cephClusters implements CephClusterInterface
type cephClusters struct {
*gentype.ClientWithList[*v1.CephCluster, *v1.CephClusterList]
*gentype.ClientWithList[*cephrookiov1.CephCluster, *cephrookiov1.CephClusterList]
}
// newCephClusters returns a CephClusters
func newCephClusters(c *CephV1Client, namespace string) *cephClusters {
return &cephClusters{
gentype.NewClientWithList[*v1.CephCluster, *v1.CephClusterList](
gentype.NewClientWithList[*cephrookiov1.CephCluster, *cephrookiov1.CephClusterList](
"cephclusters",
c.RESTClient(),
scheme.ParameterCodec,
namespace,
func() *v1.CephCluster { return &v1.CephCluster{} },
func() *v1.CephClusterList { return &v1.CephClusterList{} }),
func() *cephrookiov1.CephCluster { return &cephrookiov1.CephCluster{} },
func() *cephrookiov1.CephClusterList { return &cephrookiov1.CephClusterList{} },
),
}
}
@@ -19,9 +19,9 @@ limitations under the License.
package v1
import (
"context"
context "context"
v1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
cephrookiov1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
scheme "github.com/rook/rook/pkg/client/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -37,31 +37,32 @@ type CephCOSIDriversGetter interface {
// CephCOSIDriverInterface has methods to work with CephCOSIDriver resources.
type CephCOSIDriverInterface interface {
Create(ctx context.Context, cephCOSIDriver *v1.CephCOSIDriver, opts metav1.CreateOptions) (*v1.CephCOSIDriver, error)
Update(ctx context.Context, cephCOSIDriver *v1.CephCOSIDriver, opts metav1.UpdateOptions) (*v1.CephCOSIDriver, error)
Create(ctx context.Context, cephCOSIDriver *cephrookiov1.CephCOSIDriver, opts metav1.CreateOptions) (*cephrookiov1.CephCOSIDriver, error)
Update(ctx context.Context, cephCOSIDriver *cephrookiov1.CephCOSIDriver, opts metav1.UpdateOptions) (*cephrookiov1.CephCOSIDriver, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.CephCOSIDriver, error)
List(ctx context.Context, opts metav1.ListOptions) (*v1.CephCOSIDriverList, error)
Get(ctx context.Context, name string, opts metav1.GetOptions) (*cephrookiov1.CephCOSIDriver, error)
List(ctx context.Context, opts metav1.ListOptions) (*cephrookiov1.CephCOSIDriverList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.CephCOSIDriver, err error)
Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *cephrookiov1.CephCOSIDriver, err error)
CephCOSIDriverExpansion
}
// cephCOSIDrivers implements CephCOSIDriverInterface
type cephCOSIDrivers struct {
*gentype.ClientWithList[*v1.CephCOSIDriver, *v1.CephCOSIDriverList]
*gentype.ClientWithList[*cephrookiov1.CephCOSIDriver, *cephrookiov1.CephCOSIDriverList]
}
// newCephCOSIDrivers returns a CephCOSIDrivers
func newCephCOSIDrivers(c *CephV1Client, namespace string) *cephCOSIDrivers {
return &cephCOSIDrivers{
gentype.NewClientWithList[*v1.CephCOSIDriver, *v1.CephCOSIDriverList](
gentype.NewClientWithList[*cephrookiov1.CephCOSIDriver, *cephrookiov1.CephCOSIDriverList](
"cephcosidrivers",
c.RESTClient(),
scheme.ParameterCodec,
namespace,
func() *v1.CephCOSIDriver { return &v1.CephCOSIDriver{} },
func() *v1.CephCOSIDriverList { return &v1.CephCOSIDriverList{} }),
func() *cephrookiov1.CephCOSIDriver { return &cephrookiov1.CephCOSIDriver{} },
func() *cephrookiov1.CephCOSIDriverList { return &cephrookiov1.CephCOSIDriverList{} },
),
}
}
@@ -19,9 +19,9 @@ limitations under the License.
package v1
import (
"context"
context "context"
v1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
cephrookiov1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
scheme "github.com/rook/rook/pkg/client/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -37,31 +37,32 @@ type CephFilesystemsGetter interface {
// CephFilesystemInterface has methods to work with CephFilesystem resources.
type CephFilesystemInterface interface {
Create(ctx context.Context, cephFilesystem *v1.CephFilesystem, opts metav1.CreateOptions) (*v1.CephFilesystem, error)
Update(ctx context.Context, cephFilesystem *v1.CephFilesystem, opts metav1.UpdateOptions) (*v1.CephFilesystem, error)
Create(ctx context.Context, cephFilesystem *cephrookiov1.CephFilesystem, opts metav1.CreateOptions) (*cephrookiov1.CephFilesystem, error)
Update(ctx context.Context, cephFilesystem *cephrookiov1.CephFilesystem, opts metav1.UpdateOptions) (*cephrookiov1.CephFilesystem, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.CephFilesystem, error)
List(ctx context.Context, opts metav1.ListOptions) (*v1.CephFilesystemList, error)
Get(ctx context.Context, name string, opts metav1.GetOptions) (*cephrookiov1.CephFilesystem, error)
List(ctx context.Context, opts metav1.ListOptions) (*cephrookiov1.CephFilesystemList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.CephFilesystem, err error)
Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *cephrookiov1.CephFilesystem, err error)
CephFilesystemExpansion
}
// cephFilesystems implements CephFilesystemInterface
type cephFilesystems struct {
*gentype.ClientWithList[*v1.CephFilesystem, *v1.CephFilesystemList]
*gentype.ClientWithList[*cephrookiov1.CephFilesystem, *cephrookiov1.CephFilesystemList]
}
// newCephFilesystems returns a CephFilesystems
func newCephFilesystems(c *CephV1Client, namespace string) *cephFilesystems {
return &cephFilesystems{
gentype.NewClientWithList[*v1.CephFilesystem, *v1.CephFilesystemList](
gentype.NewClientWithList[*cephrookiov1.CephFilesystem, *cephrookiov1.CephFilesystemList](
"cephfilesystems",
c.RESTClient(),
scheme.ParameterCodec,
namespace,
func() *v1.CephFilesystem { return &v1.CephFilesystem{} },
func() *v1.CephFilesystemList { return &v1.CephFilesystemList{} }),
func() *cephrookiov1.CephFilesystem { return &cephrookiov1.CephFilesystem{} },
func() *cephrookiov1.CephFilesystemList { return &cephrookiov1.CephFilesystemList{} },
),
}
}
@@ -19,9 +19,9 @@ limitations under the License.
package v1
import (
"context"
context "context"
v1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
cephrookiov1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
scheme "github.com/rook/rook/pkg/client/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -37,31 +37,32 @@ type CephFilesystemMirrorsGetter interface {
// CephFilesystemMirrorInterface has methods to work with CephFilesystemMirror resources.
type CephFilesystemMirrorInterface interface {
Create(ctx context.Context, cephFilesystemMirror *v1.CephFilesystemMirror, opts metav1.CreateOptions) (*v1.CephFilesystemMirror, error)
Update(ctx context.Context, cephFilesystemMirror *v1.CephFilesystemMirror, opts metav1.UpdateOptions) (*v1.CephFilesystemMirror, error)
Create(ctx context.Context, cephFilesystemMirror *cephrookiov1.CephFilesystemMirror, opts metav1.CreateOptions) (*cephrookiov1.CephFilesystemMirror, error)
Update(ctx context.Context, cephFilesystemMirror *cephrookiov1.CephFilesystemMirror, opts metav1.UpdateOptions) (*cephrookiov1.CephFilesystemMirror, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.CephFilesystemMirror, error)
List(ctx context.Context, opts metav1.ListOptions) (*v1.CephFilesystemMirrorList, error)
Get(ctx context.Context, name string, opts metav1.GetOptions) (*cephrookiov1.CephFilesystemMirror, error)
List(ctx context.Context, opts metav1.ListOptions) (*cephrookiov1.CephFilesystemMirrorList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.CephFilesystemMirror, err error)
Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *cephrookiov1.CephFilesystemMirror, err error)
CephFilesystemMirrorExpansion
}
// cephFilesystemMirrors implements CephFilesystemMirrorInterface
type cephFilesystemMirrors struct {
*gentype.ClientWithList[*v1.CephFilesystemMirror, *v1.CephFilesystemMirrorList]
*gentype.ClientWithList[*cephrookiov1.CephFilesystemMirror, *cephrookiov1.CephFilesystemMirrorList]
}
// newCephFilesystemMirrors returns a CephFilesystemMirrors
func newCephFilesystemMirrors(c *CephV1Client, namespace string) *cephFilesystemMirrors {
return &cephFilesystemMirrors{
gentype.NewClientWithList[*v1.CephFilesystemMirror, *v1.CephFilesystemMirrorList](
gentype.NewClientWithList[*cephrookiov1.CephFilesystemMirror, *cephrookiov1.CephFilesystemMirrorList](
"cephfilesystemmirrors",
c.RESTClient(),
scheme.ParameterCodec,
namespace,
func() *v1.CephFilesystemMirror { return &v1.CephFilesystemMirror{} },
func() *v1.CephFilesystemMirrorList { return &v1.CephFilesystemMirrorList{} }),
func() *cephrookiov1.CephFilesystemMirror { return &cephrookiov1.CephFilesystemMirror{} },
func() *cephrookiov1.CephFilesystemMirrorList { return &cephrookiov1.CephFilesystemMirrorList{} },
),
}
}
@@ -19,9 +19,9 @@ limitations under the License.
package v1
import (
"context"
context "context"
v1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
cephrookiov1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
scheme "github.com/rook/rook/pkg/client/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -37,31 +37,34 @@ type CephFilesystemSubVolumeGroupsGetter interface {
// CephFilesystemSubVolumeGroupInterface has methods to work with CephFilesystemSubVolumeGroup resources.
type CephFilesystemSubVolumeGroupInterface interface {
Create(ctx context.Context, cephFilesystemSubVolumeGroup *v1.CephFilesystemSubVolumeGroup, opts metav1.CreateOptions) (*v1.CephFilesystemSubVolumeGroup, error)
Update(ctx context.Context, cephFilesystemSubVolumeGroup *v1.CephFilesystemSubVolumeGroup, opts metav1.UpdateOptions) (*v1.CephFilesystemSubVolumeGroup, error)
Create(ctx context.Context, cephFilesystemSubVolumeGroup *cephrookiov1.CephFilesystemSubVolumeGroup, opts metav1.CreateOptions) (*cephrookiov1.CephFilesystemSubVolumeGroup, error)
Update(ctx context.Context, cephFilesystemSubVolumeGroup *cephrookiov1.CephFilesystemSubVolumeGroup, opts metav1.UpdateOptions) (*cephrookiov1.CephFilesystemSubVolumeGroup, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.CephFilesystemSubVolumeGroup, error)
List(ctx context.Context, opts metav1.ListOptions) (*v1.CephFilesystemSubVolumeGroupList, error)
Get(ctx context.Context, name string, opts metav1.GetOptions) (*cephrookiov1.CephFilesystemSubVolumeGroup, error)
List(ctx context.Context, opts metav1.ListOptions) (*cephrookiov1.CephFilesystemSubVolumeGroupList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.CephFilesystemSubVolumeGroup, err error)
Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *cephrookiov1.CephFilesystemSubVolumeGroup, err error)
CephFilesystemSubVolumeGroupExpansion
}
// cephFilesystemSubVolumeGroups implements CephFilesystemSubVolumeGroupInterface
type cephFilesystemSubVolumeGroups struct {
*gentype.ClientWithList[*v1.CephFilesystemSubVolumeGroup, *v1.CephFilesystemSubVolumeGroupList]
*gentype.ClientWithList[*cephrookiov1.CephFilesystemSubVolumeGroup, *cephrookiov1.CephFilesystemSubVolumeGroupList]
}
// newCephFilesystemSubVolumeGroups returns a CephFilesystemSubVolumeGroups
func newCephFilesystemSubVolumeGroups(c *CephV1Client, namespace string) *cephFilesystemSubVolumeGroups {
return &cephFilesystemSubVolumeGroups{
gentype.NewClientWithList[*v1.CephFilesystemSubVolumeGroup, *v1.CephFilesystemSubVolumeGroupList](
gentype.NewClientWithList[*cephrookiov1.CephFilesystemSubVolumeGroup, *cephrookiov1.CephFilesystemSubVolumeGroupList](
"cephfilesystemsubvolumegroups",
c.RESTClient(),
scheme.ParameterCodec,
namespace,
func() *v1.CephFilesystemSubVolumeGroup { return &v1.CephFilesystemSubVolumeGroup{} },
func() *v1.CephFilesystemSubVolumeGroupList { return &v1.CephFilesystemSubVolumeGroupList{} }),
func() *cephrookiov1.CephFilesystemSubVolumeGroup { return &cephrookiov1.CephFilesystemSubVolumeGroup{} },
func() *cephrookiov1.CephFilesystemSubVolumeGroupList {
return &cephrookiov1.CephFilesystemSubVolumeGroupList{}
},
),
}
}
@@ -19,9 +19,9 @@ limitations under the License.
package v1
import (
"context"
context "context"
v1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
cephrookiov1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
scheme "github.com/rook/rook/pkg/client/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -37,31 +37,32 @@ type CephNFSesGetter interface {
// CephNFSInterface has methods to work with CephNFS resources.
type CephNFSInterface interface {
Create(ctx context.Context, cephNFS *v1.CephNFS, opts metav1.CreateOptions) (*v1.CephNFS, error)
Update(ctx context.Context, cephNFS *v1.CephNFS, opts metav1.UpdateOptions) (*v1.CephNFS, error)
Create(ctx context.Context, cephNFS *cephrookiov1.CephNFS, opts metav1.CreateOptions) (*cephrookiov1.CephNFS, error)
Update(ctx context.Context, cephNFS *cephrookiov1.CephNFS, opts metav1.UpdateOptions) (*cephrookiov1.CephNFS, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.CephNFS, error)
List(ctx context.Context, opts metav1.ListOptions) (*v1.CephNFSList, error)
Get(ctx context.Context, name string, opts metav1.GetOptions) (*cephrookiov1.CephNFS, error)
List(ctx context.Context, opts metav1.ListOptions) (*cephrookiov1.CephNFSList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.CephNFS, err error)
Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *cephrookiov1.CephNFS, err error)
CephNFSExpansion
}
// cephNFSes implements CephNFSInterface
type cephNFSes struct {
*gentype.ClientWithList[*v1.CephNFS, *v1.CephNFSList]
*gentype.ClientWithList[*cephrookiov1.CephNFS, *cephrookiov1.CephNFSList]
}
// newCephNFSes returns a CephNFSes
func newCephNFSes(c *CephV1Client, namespace string) *cephNFSes {
return &cephNFSes{
gentype.NewClientWithList[*v1.CephNFS, *v1.CephNFSList](
gentype.NewClientWithList[*cephrookiov1.CephNFS, *cephrookiov1.CephNFSList](
"cephnfses",
c.RESTClient(),
scheme.ParameterCodec,
namespace,
func() *v1.CephNFS { return &v1.CephNFS{} },
func() *v1.CephNFSList { return &v1.CephNFSList{} }),
func() *cephrookiov1.CephNFS { return &cephrookiov1.CephNFS{} },
func() *cephrookiov1.CephNFSList { return &cephrookiov1.CephNFSList{} },
),
}
}
@@ -19,9 +19,9 @@ limitations under the License.
package v1
import (
"context"
context "context"
v1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
cephrookiov1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
scheme "github.com/rook/rook/pkg/client/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -37,31 +37,32 @@ type CephObjectRealmsGetter interface {
// CephObjectRealmInterface has methods to work with CephObjectRealm resources.
type CephObjectRealmInterface interface {
Create(ctx context.Context, cephObjectRealm *v1.CephObjectRealm, opts metav1.CreateOptions) (*v1.CephObjectRealm, error)
Update(ctx context.Context, cephObjectRealm *v1.CephObjectRealm, opts metav1.UpdateOptions) (*v1.CephObjectRealm, error)
Create(ctx context.Context, cephObjectRealm *cephrookiov1.CephObjectRealm, opts metav1.CreateOptions) (*cephrookiov1.CephObjectRealm, error)
Update(ctx context.Context, cephObjectRealm *cephrookiov1.CephObjectRealm, opts metav1.UpdateOptions) (*cephrookiov1.CephObjectRealm, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.CephObjectRealm, error)
List(ctx context.Context, opts metav1.ListOptions) (*v1.CephObjectRealmList, error)
Get(ctx context.Context, name string, opts metav1.GetOptions) (*cephrookiov1.CephObjectRealm, error)
List(ctx context.Context, opts metav1.ListOptions) (*cephrookiov1.CephObjectRealmList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.CephObjectRealm, err error)
Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *cephrookiov1.CephObjectRealm, err error)
CephObjectRealmExpansion
}
// cephObjectRealms implements CephObjectRealmInterface
type cephObjectRealms struct {
*gentype.ClientWithList[*v1.CephObjectRealm, *v1.CephObjectRealmList]
*gentype.ClientWithList[*cephrookiov1.CephObjectRealm, *cephrookiov1.CephObjectRealmList]
}
// newCephObjectRealms returns a CephObjectRealms
func newCephObjectRealms(c *CephV1Client, namespace string) *cephObjectRealms {
return &cephObjectRealms{
gentype.NewClientWithList[*v1.CephObjectRealm, *v1.CephObjectRealmList](
gentype.NewClientWithList[*cephrookiov1.CephObjectRealm, *cephrookiov1.CephObjectRealmList](
"cephobjectrealms",
c.RESTClient(),
scheme.ParameterCodec,
namespace,
func() *v1.CephObjectRealm { return &v1.CephObjectRealm{} },
func() *v1.CephObjectRealmList { return &v1.CephObjectRealmList{} }),
func() *cephrookiov1.CephObjectRealm { return &cephrookiov1.CephObjectRealm{} },
func() *cephrookiov1.CephObjectRealmList { return &cephrookiov1.CephObjectRealmList{} },
),
}
}
@@ -19,9 +19,9 @@ limitations under the License.
package v1
import (
"context"
context "context"
v1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
cephrookiov1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
scheme "github.com/rook/rook/pkg/client/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -37,31 +37,32 @@ type CephObjectStoresGetter interface {
// CephObjectStoreInterface has methods to work with CephObjectStore resources.
type CephObjectStoreInterface interface {
Create(ctx context.Context, cephObjectStore *v1.CephObjectStore, opts metav1.CreateOptions) (*v1.CephObjectStore, error)
Update(ctx context.Context, cephObjectStore *v1.CephObjectStore, opts metav1.UpdateOptions) (*v1.CephObjectStore, error)
Create(ctx context.Context, cephObjectStore *cephrookiov1.CephObjectStore, opts metav1.CreateOptions) (*cephrookiov1.CephObjectStore, error)
Update(ctx context.Context, cephObjectStore *cephrookiov1.CephObjectStore, opts metav1.UpdateOptions) (*cephrookiov1.CephObjectStore, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.CephObjectStore, error)
List(ctx context.Context, opts metav1.ListOptions) (*v1.CephObjectStoreList, error)
Get(ctx context.Context, name string, opts metav1.GetOptions) (*cephrookiov1.CephObjectStore, error)
List(ctx context.Context, opts metav1.ListOptions) (*cephrookiov1.CephObjectStoreList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.CephObjectStore, err error)
Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *cephrookiov1.CephObjectStore, err error)
CephObjectStoreExpansion
}
// cephObjectStores implements CephObjectStoreInterface
type cephObjectStores struct {
*gentype.ClientWithList[*v1.CephObjectStore, *v1.CephObjectStoreList]
*gentype.ClientWithList[*cephrookiov1.CephObjectStore, *cephrookiov1.CephObjectStoreList]
}
// newCephObjectStores returns a CephObjectStores
func newCephObjectStores(c *CephV1Client, namespace string) *cephObjectStores {
return &cephObjectStores{
gentype.NewClientWithList[*v1.CephObjectStore, *v1.CephObjectStoreList](
gentype.NewClientWithList[*cephrookiov1.CephObjectStore, *cephrookiov1.CephObjectStoreList](
"cephobjectstores",
c.RESTClient(),
scheme.ParameterCodec,
namespace,
func() *v1.CephObjectStore { return &v1.CephObjectStore{} },
func() *v1.CephObjectStoreList { return &v1.CephObjectStoreList{} }),
func() *cephrookiov1.CephObjectStore { return &cephrookiov1.CephObjectStore{} },
func() *cephrookiov1.CephObjectStoreList { return &cephrookiov1.CephObjectStoreList{} },
),
}
}
@@ -19,9 +19,9 @@ limitations under the License.
package v1
import (
"context"
context "context"
v1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
cephrookiov1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
scheme "github.com/rook/rook/pkg/client/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -37,31 +37,32 @@ type CephObjectStoreUsersGetter interface {
// CephObjectStoreUserInterface has methods to work with CephObjectStoreUser resources.
type CephObjectStoreUserInterface interface {
Create(ctx context.Context, cephObjectStoreUser *v1.CephObjectStoreUser, opts metav1.CreateOptions) (*v1.CephObjectStoreUser, error)
Update(ctx context.Context, cephObjectStoreUser *v1.CephObjectStoreUser, opts metav1.UpdateOptions) (*v1.CephObjectStoreUser, error)
Create(ctx context.Context, cephObjectStoreUser *cephrookiov1.CephObjectStoreUser, opts metav1.CreateOptions) (*cephrookiov1.CephObjectStoreUser, error)
Update(ctx context.Context, cephObjectStoreUser *cephrookiov1.CephObjectStoreUser, opts metav1.UpdateOptions) (*cephrookiov1.CephObjectStoreUser, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.CephObjectStoreUser, error)
List(ctx context.Context, opts metav1.ListOptions) (*v1.CephObjectStoreUserList, error)
Get(ctx context.Context, name string, opts metav1.GetOptions) (*cephrookiov1.CephObjectStoreUser, error)
List(ctx context.Context, opts metav1.ListOptions) (*cephrookiov1.CephObjectStoreUserList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.CephObjectStoreUser, err error)
Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *cephrookiov1.CephObjectStoreUser, err error)
CephObjectStoreUserExpansion
}
// cephObjectStoreUsers implements CephObjectStoreUserInterface
type cephObjectStoreUsers struct {
*gentype.ClientWithList[*v1.CephObjectStoreUser, *v1.CephObjectStoreUserList]
*gentype.ClientWithList[*cephrookiov1.CephObjectStoreUser, *cephrookiov1.CephObjectStoreUserList]
}
// newCephObjectStoreUsers returns a CephObjectStoreUsers
func newCephObjectStoreUsers(c *CephV1Client, namespace string) *cephObjectStoreUsers {
return &cephObjectStoreUsers{
gentype.NewClientWithList[*v1.CephObjectStoreUser, *v1.CephObjectStoreUserList](
gentype.NewClientWithList[*cephrookiov1.CephObjectStoreUser, *cephrookiov1.CephObjectStoreUserList](
"cephobjectstoreusers",
c.RESTClient(),
scheme.ParameterCodec,
namespace,
func() *v1.CephObjectStoreUser { return &v1.CephObjectStoreUser{} },
func() *v1.CephObjectStoreUserList { return &v1.CephObjectStoreUserList{} }),
func() *cephrookiov1.CephObjectStoreUser { return &cephrookiov1.CephObjectStoreUser{} },
func() *cephrookiov1.CephObjectStoreUserList { return &cephrookiov1.CephObjectStoreUserList{} },
),
}
}
@@ -19,9 +19,9 @@ limitations under the License.
package v1
import (
"context"
context "context"
v1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
cephrookiov1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
scheme "github.com/rook/rook/pkg/client/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -37,31 +37,32 @@ type CephObjectZonesGetter interface {
// CephObjectZoneInterface has methods to work with CephObjectZone resources.
type CephObjectZoneInterface interface {
Create(ctx context.Context, cephObjectZone *v1.CephObjectZone, opts metav1.CreateOptions) (*v1.CephObjectZone, error)
Update(ctx context.Context, cephObjectZone *v1.CephObjectZone, opts metav1.UpdateOptions) (*v1.CephObjectZone, error)
Create(ctx context.Context, cephObjectZone *cephrookiov1.CephObjectZone, opts metav1.CreateOptions) (*cephrookiov1.CephObjectZone, error)
Update(ctx context.Context, cephObjectZone *cephrookiov1.CephObjectZone, opts metav1.UpdateOptions) (*cephrookiov1.CephObjectZone, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.CephObjectZone, error)
List(ctx context.Context, opts metav1.ListOptions) (*v1.CephObjectZoneList, error)
Get(ctx context.Context, name string, opts metav1.GetOptions) (*cephrookiov1.CephObjectZone, error)
List(ctx context.Context, opts metav1.ListOptions) (*cephrookiov1.CephObjectZoneList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.CephObjectZone, err error)
Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *cephrookiov1.CephObjectZone, err error)
CephObjectZoneExpansion
}
// cephObjectZones implements CephObjectZoneInterface
type cephObjectZones struct {
*gentype.ClientWithList[*v1.CephObjectZone, *v1.CephObjectZoneList]
*gentype.ClientWithList[*cephrookiov1.CephObjectZone, *cephrookiov1.CephObjectZoneList]
}
// newCephObjectZones returns a CephObjectZones
func newCephObjectZones(c *CephV1Client, namespace string) *cephObjectZones {
return &cephObjectZones{
gentype.NewClientWithList[*v1.CephObjectZone, *v1.CephObjectZoneList](
gentype.NewClientWithList[*cephrookiov1.CephObjectZone, *cephrookiov1.CephObjectZoneList](
"cephobjectzones",
c.RESTClient(),
scheme.ParameterCodec,
namespace,
func() *v1.CephObjectZone { return &v1.CephObjectZone{} },
func() *v1.CephObjectZoneList { return &v1.CephObjectZoneList{} }),
func() *cephrookiov1.CephObjectZone { return &cephrookiov1.CephObjectZone{} },
func() *cephrookiov1.CephObjectZoneList { return &cephrookiov1.CephObjectZoneList{} },
),
}
}
@@ -19,9 +19,9 @@ limitations under the License.
package v1
import (
"context"
context "context"
v1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
cephrookiov1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
scheme "github.com/rook/rook/pkg/client/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -37,31 +37,32 @@ type CephObjectZoneGroupsGetter interface {
// CephObjectZoneGroupInterface has methods to work with CephObjectZoneGroup resources.
type CephObjectZoneGroupInterface interface {
Create(ctx context.Context, cephObjectZoneGroup *v1.CephObjectZoneGroup, opts metav1.CreateOptions) (*v1.CephObjectZoneGroup, error)
Update(ctx context.Context, cephObjectZoneGroup *v1.CephObjectZoneGroup, opts metav1.UpdateOptions) (*v1.CephObjectZoneGroup, error)
Create(ctx context.Context, cephObjectZoneGroup *cephrookiov1.CephObjectZoneGroup, opts metav1.CreateOptions) (*cephrookiov1.CephObjectZoneGroup, error)
Update(ctx context.Context, cephObjectZoneGroup *cephrookiov1.CephObjectZoneGroup, opts metav1.UpdateOptions) (*cephrookiov1.CephObjectZoneGroup, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.CephObjectZoneGroup, error)
List(ctx context.Context, opts metav1.ListOptions) (*v1.CephObjectZoneGroupList, error)
Get(ctx context.Context, name string, opts metav1.GetOptions) (*cephrookiov1.CephObjectZoneGroup, error)
List(ctx context.Context, opts metav1.ListOptions) (*cephrookiov1.CephObjectZoneGroupList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.CephObjectZoneGroup, err error)
Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *cephrookiov1.CephObjectZoneGroup, err error)
CephObjectZoneGroupExpansion
}
// cephObjectZoneGroups implements CephObjectZoneGroupInterface
type cephObjectZoneGroups struct {
*gentype.ClientWithList[*v1.CephObjectZoneGroup, *v1.CephObjectZoneGroupList]
*gentype.ClientWithList[*cephrookiov1.CephObjectZoneGroup, *cephrookiov1.CephObjectZoneGroupList]
}
// newCephObjectZoneGroups returns a CephObjectZoneGroups
func newCephObjectZoneGroups(c *CephV1Client, namespace string) *cephObjectZoneGroups {
return &cephObjectZoneGroups{
gentype.NewClientWithList[*v1.CephObjectZoneGroup, *v1.CephObjectZoneGroupList](
gentype.NewClientWithList[*cephrookiov1.CephObjectZoneGroup, *cephrookiov1.CephObjectZoneGroupList](
"cephobjectzonegroups",
c.RESTClient(),
scheme.ParameterCodec,
namespace,
func() *v1.CephObjectZoneGroup { return &v1.CephObjectZoneGroup{} },
func() *v1.CephObjectZoneGroupList { return &v1.CephObjectZoneGroupList{} }),
func() *cephrookiov1.CephObjectZoneGroup { return &cephrookiov1.CephObjectZoneGroup{} },
func() *cephrookiov1.CephObjectZoneGroupList { return &cephrookiov1.CephObjectZoneGroupList{} },
),
}
}
@@ -19,9 +19,9 @@ limitations under the License.
package v1
import (
"context"
context "context"
v1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
cephrookiov1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
scheme "github.com/rook/rook/pkg/client/clientset/versioned/scheme"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
types "k8s.io/apimachinery/pkg/types"
@@ -37,31 +37,32 @@ type CephRBDMirrorsGetter interface {
// CephRBDMirrorInterface has methods to work with CephRBDMirror resources.
type CephRBDMirrorInterface interface {
Create(ctx context.Context, cephRBDMirror *v1.CephRBDMirror, opts metav1.CreateOptions) (*v1.CephRBDMirror, error)
Update(ctx context.Context, cephRBDMirror *v1.CephRBDMirror, opts metav1.UpdateOptions) (*v1.CephRBDMirror, error)
Create(ctx context.Context, cephRBDMirror *cephrookiov1.CephRBDMirror, opts metav1.CreateOptions) (*cephrookiov1.CephRBDMirror, error)
Update(ctx context.Context, cephRBDMirror *cephrookiov1.CephRBDMirror, opts metav1.UpdateOptions) (*cephrookiov1.CephRBDMirror, error)
Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
Get(ctx context.Context, name string, opts metav1.GetOptions) (*v1.CephRBDMirror, error)
List(ctx context.Context, opts metav1.ListOptions) (*v1.CephRBDMirrorList, error)
Get(ctx context.Context, name string, opts metav1.GetOptions) (*cephrookiov1.CephRBDMirror, error)
List(ctx context.Context, opts metav1.ListOptions) (*cephrookiov1.CephRBDMirrorList, error)
Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.CephRBDMirror, err error)
Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *cephrookiov1.CephRBDMirror, err error)
CephRBDMirrorExpansion
}
// cephRBDMirrors implements CephRBDMirrorInterface
type cephRBDMirrors struct {
*gentype.ClientWithList[*v1.CephRBDMirror, *v1.CephRBDMirrorList]
*gentype.ClientWithList[*cephrookiov1.CephRBDMirror, *cephrookiov1.CephRBDMirrorList]
}
// newCephRBDMirrors returns a CephRBDMirrors
func newCephRBDMirrors(c *CephV1Client, namespace string) *cephRBDMirrors {
return &cephRBDMirrors{
gentype.NewClientWithList[*v1.CephRBDMirror, *v1.CephRBDMirrorList](
gentype.NewClientWithList[*cephrookiov1.CephRBDMirror, *cephrookiov1.CephRBDMirrorList](
"cephrbdmirrors",
c.RESTClient(),
scheme.ParameterCodec,
namespace,
func() *v1.CephRBDMirror { return &v1.CephRBDMirror{} },
func() *v1.CephRBDMirrorList { return &v1.CephRBDMirrorList{} }),
func() *cephrookiov1.CephRBDMirror { return &cephrookiov1.CephRBDMirror{} },
func() *cephrookiov1.CephRBDMirrorList { return &cephrookiov1.CephRBDMirrorList{} },
),
}
}
@@ -29,71 +29,71 @@ type FakeCephV1 struct {
}
func (c *FakeCephV1) CephBlockPools(namespace string) v1.CephBlockPoolInterface {
return &FakeCephBlockPools{c, namespace}
return newFakeCephBlockPools(c, namespace)
}
func (c *FakeCephV1) CephBlockPoolRadosNamespaces(namespace string) v1.CephBlockPoolRadosNamespaceInterface {
return &FakeCephBlockPoolRadosNamespaces{c, namespace}
return newFakeCephBlockPoolRadosNamespaces(c, namespace)
}
func (c *FakeCephV1) CephBucketNotifications(namespace string) v1.CephBucketNotificationInterface {
return &FakeCephBucketNotifications{c, namespace}
return newFakeCephBucketNotifications(c, namespace)
}
func (c *FakeCephV1) CephBucketTopics(namespace string) v1.CephBucketTopicInterface {
return &FakeCephBucketTopics{c, namespace}
return newFakeCephBucketTopics(c, namespace)
}
func (c *FakeCephV1) CephCOSIDrivers(namespace string) v1.CephCOSIDriverInterface {
return &FakeCephCOSIDrivers{c, namespace}
return newFakeCephCOSIDrivers(c, namespace)
}
func (c *FakeCephV1) CephClients(namespace string) v1.CephClientInterface {
return &FakeCephClients{c, namespace}
return newFakeCephClients(c, namespace)
}
func (c *FakeCephV1) CephClusters(namespace string) v1.CephClusterInterface {
return &FakeCephClusters{c, namespace}
return newFakeCephClusters(c, namespace)
}
func (c *FakeCephV1) CephFilesystems(namespace string) v1.CephFilesystemInterface {
return &FakeCephFilesystems{c, namespace}
return newFakeCephFilesystems(c, namespace)
}
func (c *FakeCephV1) CephFilesystemMirrors(namespace string) v1.CephFilesystemMirrorInterface {
return &FakeCephFilesystemMirrors{c, namespace}
return newFakeCephFilesystemMirrors(c, namespace)
}
func (c *FakeCephV1) CephFilesystemSubVolumeGroups(namespace string) v1.CephFilesystemSubVolumeGroupInterface {
return &FakeCephFilesystemSubVolumeGroups{c, namespace}
return newFakeCephFilesystemSubVolumeGroups(c, namespace)
}
func (c *FakeCephV1) CephNFSes(namespace string) v1.CephNFSInterface {
return &FakeCephNFSes{c, namespace}
return newFakeCephNFSes(c, namespace)
}
func (c *FakeCephV1) CephObjectRealms(namespace string) v1.CephObjectRealmInterface {
return &FakeCephObjectRealms{c, namespace}
return newFakeCephObjectRealms(c, namespace)
}
func (c *FakeCephV1) CephObjectStores(namespace string) v1.CephObjectStoreInterface {
return &FakeCephObjectStores{c, namespace}
return newFakeCephObjectStores(c, namespace)
}
func (c *FakeCephV1) CephObjectStoreUsers(namespace string) v1.CephObjectStoreUserInterface {
return &FakeCephObjectStoreUsers{c, namespace}
return newFakeCephObjectStoreUsers(c, namespace)
}
func (c *FakeCephV1) CephObjectZones(namespace string) v1.CephObjectZoneInterface {
return &FakeCephObjectZones{c, namespace}
return newFakeCephObjectZones(c, namespace)
}
func (c *FakeCephV1) CephObjectZoneGroups(namespace string) v1.CephObjectZoneGroupInterface {
return &FakeCephObjectZoneGroups{c, namespace}
return newFakeCephObjectZoneGroups(c, namespace)
}
func (c *FakeCephV1) CephRBDMirrors(namespace string) v1.CephRBDMirrorInterface {
return &FakeCephRBDMirrors{c, namespace}
return newFakeCephRBDMirrors(c, namespace)
}
// RESTClient returns a RESTClient that is used to communicate
@@ -19,116 +19,32 @@ limitations under the License.
package fake
import (
"context"
v1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
labels "k8s.io/apimachinery/pkg/labels"
types "k8s.io/apimachinery/pkg/types"
watch "k8s.io/apimachinery/pkg/watch"
testing "k8s.io/client-go/testing"
cephrookiov1 "github.com/rook/rook/pkg/client/clientset/versioned/typed/ceph.rook.io/v1"
gentype "k8s.io/client-go/gentype"
)
// FakeCephBlockPools implements CephBlockPoolInterface
type FakeCephBlockPools struct {
// fakeCephBlockPools implements CephBlockPoolInterface
type fakeCephBlockPools struct {
*gentype.FakeClientWithList[*v1.CephBlockPool, *v1.CephBlockPoolList]
Fake *FakeCephV1
ns string
}
var cephblockpoolsResource = v1.SchemeGroupVersion.WithResource("cephblockpools")
var cephblockpoolsKind = v1.SchemeGroupVersion.WithKind("CephBlockPool")
// Get takes name of the cephBlockPool, and returns the corresponding cephBlockPool object, and an error if there is any.
func (c *FakeCephBlockPools) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.CephBlockPool, err error) {
emptyResult := &v1.CephBlockPool{}
obj, err := c.Fake.
Invokes(testing.NewGetActionWithOptions(cephblockpoolsResource, c.ns, name, options), emptyResult)
if obj == nil {
return emptyResult, err
func newFakeCephBlockPools(fake *FakeCephV1, namespace string) cephrookiov1.CephBlockPoolInterface {
return &fakeCephBlockPools{
gentype.NewFakeClientWithList[*v1.CephBlockPool, *v1.CephBlockPoolList](
fake.Fake,
namespace,
v1.SchemeGroupVersion.WithResource("cephblockpools"),
v1.SchemeGroupVersion.WithKind("CephBlockPool"),
func() *v1.CephBlockPool { return &v1.CephBlockPool{} },
func() *v1.CephBlockPoolList { return &v1.CephBlockPoolList{} },
func(dst, src *v1.CephBlockPoolList) { dst.ListMeta = src.ListMeta },
func(list *v1.CephBlockPoolList) []*v1.CephBlockPool { return gentype.ToPointerSlice(list.Items) },
func(list *v1.CephBlockPoolList, items []*v1.CephBlockPool) {
list.Items = gentype.FromPointerSlice(items)
},
),
fake,
}
return obj.(*v1.CephBlockPool), err
}
// List takes label and field selectors, and returns the list of CephBlockPools that match those selectors.
func (c *FakeCephBlockPools) List(ctx context.Context, opts metav1.ListOptions) (result *v1.CephBlockPoolList, err error) {
emptyResult := &v1.CephBlockPoolList{}
obj, err := c.Fake.
Invokes(testing.NewListActionWithOptions(cephblockpoolsResource, cephblockpoolsKind, c.ns, opts), emptyResult)
if obj == nil {
return emptyResult, err
}
label, _, _ := testing.ExtractFromListOptions(opts)
if label == nil {
label = labels.Everything()
}
list := &v1.CephBlockPoolList{ListMeta: obj.(*v1.CephBlockPoolList).ListMeta}
for _, item := range obj.(*v1.CephBlockPoolList).Items {
if label.Matches(labels.Set(item.Labels)) {
list.Items = append(list.Items, item)
}
}
return list, err
}
// Watch returns a watch.Interface that watches the requested cephBlockPools.
func (c *FakeCephBlockPools) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
return c.Fake.
InvokesWatch(testing.NewWatchActionWithOptions(cephblockpoolsResource, c.ns, opts))
}
// Create takes the representation of a cephBlockPool and creates it. Returns the server's representation of the cephBlockPool, and an error, if there is any.
func (c *FakeCephBlockPools) Create(ctx context.Context, cephBlockPool *v1.CephBlockPool, opts metav1.CreateOptions) (result *v1.CephBlockPool, err error) {
emptyResult := &v1.CephBlockPool{}
obj, err := c.Fake.
Invokes(testing.NewCreateActionWithOptions(cephblockpoolsResource, c.ns, cephBlockPool, opts), emptyResult)
if obj == nil {
return emptyResult, err
}
return obj.(*v1.CephBlockPool), err
}
// Update takes the representation of a cephBlockPool and updates it. Returns the server's representation of the cephBlockPool, and an error, if there is any.
func (c *FakeCephBlockPools) Update(ctx context.Context, cephBlockPool *v1.CephBlockPool, opts metav1.UpdateOptions) (result *v1.CephBlockPool, err error) {
emptyResult := &v1.CephBlockPool{}
obj, err := c.Fake.
Invokes(testing.NewUpdateActionWithOptions(cephblockpoolsResource, c.ns, cephBlockPool, opts), emptyResult)
if obj == nil {
return emptyResult, err
}
return obj.(*v1.CephBlockPool), err
}
// Delete takes name of the cephBlockPool and deletes it. Returns an error if one occurs.
func (c *FakeCephBlockPools) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
_, err := c.Fake.
Invokes(testing.NewDeleteActionWithOptions(cephblockpoolsResource, c.ns, name, opts), &v1.CephBlockPool{})
return err
}
// DeleteCollection deletes a collection of objects.
func (c *FakeCephBlockPools) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
action := testing.NewDeleteCollectionActionWithOptions(cephblockpoolsResource, c.ns, opts, listOpts)
_, err := c.Fake.Invokes(action, &v1.CephBlockPoolList{})
return err
}
// Patch applies the patch and returns the patched cephBlockPool.
func (c *FakeCephBlockPools) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.CephBlockPool, err error) {
emptyResult := &v1.CephBlockPool{}
obj, err := c.Fake.
Invokes(testing.NewPatchSubresourceActionWithOptions(cephblockpoolsResource, c.ns, name, pt, data, opts, subresources...), emptyResult)
if obj == nil {
return emptyResult, err
}
return obj.(*v1.CephBlockPool), err
}
@@ -19,116 +19,34 @@ limitations under the License.
package fake
import (
"context"
v1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
labels "k8s.io/apimachinery/pkg/labels"
types "k8s.io/apimachinery/pkg/types"
watch "k8s.io/apimachinery/pkg/watch"
testing "k8s.io/client-go/testing"
cephrookiov1 "github.com/rook/rook/pkg/client/clientset/versioned/typed/ceph.rook.io/v1"
gentype "k8s.io/client-go/gentype"
)
// FakeCephBlockPoolRadosNamespaces implements CephBlockPoolRadosNamespaceInterface
type FakeCephBlockPoolRadosNamespaces struct {
// fakeCephBlockPoolRadosNamespaces implements CephBlockPoolRadosNamespaceInterface
type fakeCephBlockPoolRadosNamespaces struct {
*gentype.FakeClientWithList[*v1.CephBlockPoolRadosNamespace, *v1.CephBlockPoolRadosNamespaceList]
Fake *FakeCephV1
ns string
}
var cephblockpoolradosnamespacesResource = v1.SchemeGroupVersion.WithResource("cephblockpoolradosnamespaces")
var cephblockpoolradosnamespacesKind = v1.SchemeGroupVersion.WithKind("CephBlockPoolRadosNamespace")
// Get takes name of the cephBlockPoolRadosNamespace, and returns the corresponding cephBlockPoolRadosNamespace object, and an error if there is any.
func (c *FakeCephBlockPoolRadosNamespaces) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.CephBlockPoolRadosNamespace, err error) {
emptyResult := &v1.CephBlockPoolRadosNamespace{}
obj, err := c.Fake.
Invokes(testing.NewGetActionWithOptions(cephblockpoolradosnamespacesResource, c.ns, name, options), emptyResult)
if obj == nil {
return emptyResult, err
func newFakeCephBlockPoolRadosNamespaces(fake *FakeCephV1, namespace string) cephrookiov1.CephBlockPoolRadosNamespaceInterface {
return &fakeCephBlockPoolRadosNamespaces{
gentype.NewFakeClientWithList[*v1.CephBlockPoolRadosNamespace, *v1.CephBlockPoolRadosNamespaceList](
fake.Fake,
namespace,
v1.SchemeGroupVersion.WithResource("cephblockpoolradosnamespaces"),
v1.SchemeGroupVersion.WithKind("CephBlockPoolRadosNamespace"),
func() *v1.CephBlockPoolRadosNamespace { return &v1.CephBlockPoolRadosNamespace{} },
func() *v1.CephBlockPoolRadosNamespaceList { return &v1.CephBlockPoolRadosNamespaceList{} },
func(dst, src *v1.CephBlockPoolRadosNamespaceList) { dst.ListMeta = src.ListMeta },
func(list *v1.CephBlockPoolRadosNamespaceList) []*v1.CephBlockPoolRadosNamespace {
return gentype.ToPointerSlice(list.Items)
},
func(list *v1.CephBlockPoolRadosNamespaceList, items []*v1.CephBlockPoolRadosNamespace) {
list.Items = gentype.FromPointerSlice(items)
},
),
fake,
}
return obj.(*v1.CephBlockPoolRadosNamespace), err
}
// List takes label and field selectors, and returns the list of CephBlockPoolRadosNamespaces that match those selectors.
func (c *FakeCephBlockPoolRadosNamespaces) List(ctx context.Context, opts metav1.ListOptions) (result *v1.CephBlockPoolRadosNamespaceList, err error) {
emptyResult := &v1.CephBlockPoolRadosNamespaceList{}
obj, err := c.Fake.
Invokes(testing.NewListActionWithOptions(cephblockpoolradosnamespacesResource, cephblockpoolradosnamespacesKind, c.ns, opts), emptyResult)
if obj == nil {
return emptyResult, err
}
label, _, _ := testing.ExtractFromListOptions(opts)
if label == nil {
label = labels.Everything()
}
list := &v1.CephBlockPoolRadosNamespaceList{ListMeta: obj.(*v1.CephBlockPoolRadosNamespaceList).ListMeta}
for _, item := range obj.(*v1.CephBlockPoolRadosNamespaceList).Items {
if label.Matches(labels.Set(item.Labels)) {
list.Items = append(list.Items, item)
}
}
return list, err
}
// Watch returns a watch.Interface that watches the requested cephBlockPoolRadosNamespaces.
func (c *FakeCephBlockPoolRadosNamespaces) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
return c.Fake.
InvokesWatch(testing.NewWatchActionWithOptions(cephblockpoolradosnamespacesResource, c.ns, opts))
}
// Create takes the representation of a cephBlockPoolRadosNamespace and creates it. Returns the server's representation of the cephBlockPoolRadosNamespace, and an error, if there is any.
func (c *FakeCephBlockPoolRadosNamespaces) Create(ctx context.Context, cephBlockPoolRadosNamespace *v1.CephBlockPoolRadosNamespace, opts metav1.CreateOptions) (result *v1.CephBlockPoolRadosNamespace, err error) {
emptyResult := &v1.CephBlockPoolRadosNamespace{}
obj, err := c.Fake.
Invokes(testing.NewCreateActionWithOptions(cephblockpoolradosnamespacesResource, c.ns, cephBlockPoolRadosNamespace, opts), emptyResult)
if obj == nil {
return emptyResult, err
}
return obj.(*v1.CephBlockPoolRadosNamespace), err
}
// Update takes the representation of a cephBlockPoolRadosNamespace and updates it. Returns the server's representation of the cephBlockPoolRadosNamespace, and an error, if there is any.
func (c *FakeCephBlockPoolRadosNamespaces) Update(ctx context.Context, cephBlockPoolRadosNamespace *v1.CephBlockPoolRadosNamespace, opts metav1.UpdateOptions) (result *v1.CephBlockPoolRadosNamespace, err error) {
emptyResult := &v1.CephBlockPoolRadosNamespace{}
obj, err := c.Fake.
Invokes(testing.NewUpdateActionWithOptions(cephblockpoolradosnamespacesResource, c.ns, cephBlockPoolRadosNamespace, opts), emptyResult)
if obj == nil {
return emptyResult, err
}
return obj.(*v1.CephBlockPoolRadosNamespace), err
}
// Delete takes name of the cephBlockPoolRadosNamespace and deletes it. Returns an error if one occurs.
func (c *FakeCephBlockPoolRadosNamespaces) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
_, err := c.Fake.
Invokes(testing.NewDeleteActionWithOptions(cephblockpoolradosnamespacesResource, c.ns, name, opts), &v1.CephBlockPoolRadosNamespace{})
return err
}
// DeleteCollection deletes a collection of objects.
func (c *FakeCephBlockPoolRadosNamespaces) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
action := testing.NewDeleteCollectionActionWithOptions(cephblockpoolradosnamespacesResource, c.ns, opts, listOpts)
_, err := c.Fake.Invokes(action, &v1.CephBlockPoolRadosNamespaceList{})
return err
}
// Patch applies the patch and returns the patched cephBlockPoolRadosNamespace.
func (c *FakeCephBlockPoolRadosNamespaces) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.CephBlockPoolRadosNamespace, err error) {
emptyResult := &v1.CephBlockPoolRadosNamespace{}
obj, err := c.Fake.
Invokes(testing.NewPatchSubresourceActionWithOptions(cephblockpoolradosnamespacesResource, c.ns, name, pt, data, opts, subresources...), emptyResult)
if obj == nil {
return emptyResult, err
}
return obj.(*v1.CephBlockPoolRadosNamespace), err
}
@@ -19,116 +19,34 @@ limitations under the License.
package fake
import (
"context"
v1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
labels "k8s.io/apimachinery/pkg/labels"
types "k8s.io/apimachinery/pkg/types"
watch "k8s.io/apimachinery/pkg/watch"
testing "k8s.io/client-go/testing"
cephrookiov1 "github.com/rook/rook/pkg/client/clientset/versioned/typed/ceph.rook.io/v1"
gentype "k8s.io/client-go/gentype"
)
// FakeCephBucketNotifications implements CephBucketNotificationInterface
type FakeCephBucketNotifications struct {
// fakeCephBucketNotifications implements CephBucketNotificationInterface
type fakeCephBucketNotifications struct {
*gentype.FakeClientWithList[*v1.CephBucketNotification, *v1.CephBucketNotificationList]
Fake *FakeCephV1
ns string
}
var cephbucketnotificationsResource = v1.SchemeGroupVersion.WithResource("cephbucketnotifications")
var cephbucketnotificationsKind = v1.SchemeGroupVersion.WithKind("CephBucketNotification")
// Get takes name of the cephBucketNotification, and returns the corresponding cephBucketNotification object, and an error if there is any.
func (c *FakeCephBucketNotifications) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.CephBucketNotification, err error) {
emptyResult := &v1.CephBucketNotification{}
obj, err := c.Fake.
Invokes(testing.NewGetActionWithOptions(cephbucketnotificationsResource, c.ns, name, options), emptyResult)
if obj == nil {
return emptyResult, err
func newFakeCephBucketNotifications(fake *FakeCephV1, namespace string) cephrookiov1.CephBucketNotificationInterface {
return &fakeCephBucketNotifications{
gentype.NewFakeClientWithList[*v1.CephBucketNotification, *v1.CephBucketNotificationList](
fake.Fake,
namespace,
v1.SchemeGroupVersion.WithResource("cephbucketnotifications"),
v1.SchemeGroupVersion.WithKind("CephBucketNotification"),
func() *v1.CephBucketNotification { return &v1.CephBucketNotification{} },
func() *v1.CephBucketNotificationList { return &v1.CephBucketNotificationList{} },
func(dst, src *v1.CephBucketNotificationList) { dst.ListMeta = src.ListMeta },
func(list *v1.CephBucketNotificationList) []*v1.CephBucketNotification {
return gentype.ToPointerSlice(list.Items)
},
func(list *v1.CephBucketNotificationList, items []*v1.CephBucketNotification) {
list.Items = gentype.FromPointerSlice(items)
},
),
fake,
}
return obj.(*v1.CephBucketNotification), err
}
// List takes label and field selectors, and returns the list of CephBucketNotifications that match those selectors.
func (c *FakeCephBucketNotifications) List(ctx context.Context, opts metav1.ListOptions) (result *v1.CephBucketNotificationList, err error) {
emptyResult := &v1.CephBucketNotificationList{}
obj, err := c.Fake.
Invokes(testing.NewListActionWithOptions(cephbucketnotificationsResource, cephbucketnotificationsKind, c.ns, opts), emptyResult)
if obj == nil {
return emptyResult, err
}
label, _, _ := testing.ExtractFromListOptions(opts)
if label == nil {
label = labels.Everything()
}
list := &v1.CephBucketNotificationList{ListMeta: obj.(*v1.CephBucketNotificationList).ListMeta}
for _, item := range obj.(*v1.CephBucketNotificationList).Items {
if label.Matches(labels.Set(item.Labels)) {
list.Items = append(list.Items, item)
}
}
return list, err
}
// Watch returns a watch.Interface that watches the requested cephBucketNotifications.
func (c *FakeCephBucketNotifications) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
return c.Fake.
InvokesWatch(testing.NewWatchActionWithOptions(cephbucketnotificationsResource, c.ns, opts))
}
// Create takes the representation of a cephBucketNotification and creates it. Returns the server's representation of the cephBucketNotification, and an error, if there is any.
func (c *FakeCephBucketNotifications) Create(ctx context.Context, cephBucketNotification *v1.CephBucketNotification, opts metav1.CreateOptions) (result *v1.CephBucketNotification, err error) {
emptyResult := &v1.CephBucketNotification{}
obj, err := c.Fake.
Invokes(testing.NewCreateActionWithOptions(cephbucketnotificationsResource, c.ns, cephBucketNotification, opts), emptyResult)
if obj == nil {
return emptyResult, err
}
return obj.(*v1.CephBucketNotification), err
}
// Update takes the representation of a cephBucketNotification and updates it. Returns the server's representation of the cephBucketNotification, and an error, if there is any.
func (c *FakeCephBucketNotifications) Update(ctx context.Context, cephBucketNotification *v1.CephBucketNotification, opts metav1.UpdateOptions) (result *v1.CephBucketNotification, err error) {
emptyResult := &v1.CephBucketNotification{}
obj, err := c.Fake.
Invokes(testing.NewUpdateActionWithOptions(cephbucketnotificationsResource, c.ns, cephBucketNotification, opts), emptyResult)
if obj == nil {
return emptyResult, err
}
return obj.(*v1.CephBucketNotification), err
}
// Delete takes name of the cephBucketNotification and deletes it. Returns an error if one occurs.
func (c *FakeCephBucketNotifications) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
_, err := c.Fake.
Invokes(testing.NewDeleteActionWithOptions(cephbucketnotificationsResource, c.ns, name, opts), &v1.CephBucketNotification{})
return err
}
// DeleteCollection deletes a collection of objects.
func (c *FakeCephBucketNotifications) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
action := testing.NewDeleteCollectionActionWithOptions(cephbucketnotificationsResource, c.ns, opts, listOpts)
_, err := c.Fake.Invokes(action, &v1.CephBucketNotificationList{})
return err
}
// Patch applies the patch and returns the patched cephBucketNotification.
func (c *FakeCephBucketNotifications) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.CephBucketNotification, err error) {
emptyResult := &v1.CephBucketNotification{}
obj, err := c.Fake.
Invokes(testing.NewPatchSubresourceActionWithOptions(cephbucketnotificationsResource, c.ns, name, pt, data, opts, subresources...), emptyResult)
if obj == nil {
return emptyResult, err
}
return obj.(*v1.CephBucketNotification), err
}
@@ -19,116 +19,32 @@ limitations under the License.
package fake
import (
"context"
v1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
labels "k8s.io/apimachinery/pkg/labels"
types "k8s.io/apimachinery/pkg/types"
watch "k8s.io/apimachinery/pkg/watch"
testing "k8s.io/client-go/testing"
cephrookiov1 "github.com/rook/rook/pkg/client/clientset/versioned/typed/ceph.rook.io/v1"
gentype "k8s.io/client-go/gentype"
)
// FakeCephBucketTopics implements CephBucketTopicInterface
type FakeCephBucketTopics struct {
// fakeCephBucketTopics implements CephBucketTopicInterface
type fakeCephBucketTopics struct {
*gentype.FakeClientWithList[*v1.CephBucketTopic, *v1.CephBucketTopicList]
Fake *FakeCephV1
ns string
}
var cephbuckettopicsResource = v1.SchemeGroupVersion.WithResource("cephbuckettopics")
var cephbuckettopicsKind = v1.SchemeGroupVersion.WithKind("CephBucketTopic")
// Get takes name of the cephBucketTopic, and returns the corresponding cephBucketTopic object, and an error if there is any.
func (c *FakeCephBucketTopics) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.CephBucketTopic, err error) {
emptyResult := &v1.CephBucketTopic{}
obj, err := c.Fake.
Invokes(testing.NewGetActionWithOptions(cephbuckettopicsResource, c.ns, name, options), emptyResult)
if obj == nil {
return emptyResult, err
func newFakeCephBucketTopics(fake *FakeCephV1, namespace string) cephrookiov1.CephBucketTopicInterface {
return &fakeCephBucketTopics{
gentype.NewFakeClientWithList[*v1.CephBucketTopic, *v1.CephBucketTopicList](
fake.Fake,
namespace,
v1.SchemeGroupVersion.WithResource("cephbuckettopics"),
v1.SchemeGroupVersion.WithKind("CephBucketTopic"),
func() *v1.CephBucketTopic { return &v1.CephBucketTopic{} },
func() *v1.CephBucketTopicList { return &v1.CephBucketTopicList{} },
func(dst, src *v1.CephBucketTopicList) { dst.ListMeta = src.ListMeta },
func(list *v1.CephBucketTopicList) []*v1.CephBucketTopic { return gentype.ToPointerSlice(list.Items) },
func(list *v1.CephBucketTopicList, items []*v1.CephBucketTopic) {
list.Items = gentype.FromPointerSlice(items)
},
),
fake,
}
return obj.(*v1.CephBucketTopic), err
}
// List takes label and field selectors, and returns the list of CephBucketTopics that match those selectors.
func (c *FakeCephBucketTopics) List(ctx context.Context, opts metav1.ListOptions) (result *v1.CephBucketTopicList, err error) {
emptyResult := &v1.CephBucketTopicList{}
obj, err := c.Fake.
Invokes(testing.NewListActionWithOptions(cephbuckettopicsResource, cephbuckettopicsKind, c.ns, opts), emptyResult)
if obj == nil {
return emptyResult, err
}
label, _, _ := testing.ExtractFromListOptions(opts)
if label == nil {
label = labels.Everything()
}
list := &v1.CephBucketTopicList{ListMeta: obj.(*v1.CephBucketTopicList).ListMeta}
for _, item := range obj.(*v1.CephBucketTopicList).Items {
if label.Matches(labels.Set(item.Labels)) {
list.Items = append(list.Items, item)
}
}
return list, err
}
// Watch returns a watch.Interface that watches the requested cephBucketTopics.
func (c *FakeCephBucketTopics) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
return c.Fake.
InvokesWatch(testing.NewWatchActionWithOptions(cephbuckettopicsResource, c.ns, opts))
}
// Create takes the representation of a cephBucketTopic and creates it. Returns the server's representation of the cephBucketTopic, and an error, if there is any.
func (c *FakeCephBucketTopics) Create(ctx context.Context, cephBucketTopic *v1.CephBucketTopic, opts metav1.CreateOptions) (result *v1.CephBucketTopic, err error) {
emptyResult := &v1.CephBucketTopic{}
obj, err := c.Fake.
Invokes(testing.NewCreateActionWithOptions(cephbuckettopicsResource, c.ns, cephBucketTopic, opts), emptyResult)
if obj == nil {
return emptyResult, err
}
return obj.(*v1.CephBucketTopic), err
}
// Update takes the representation of a cephBucketTopic and updates it. Returns the server's representation of the cephBucketTopic, and an error, if there is any.
func (c *FakeCephBucketTopics) Update(ctx context.Context, cephBucketTopic *v1.CephBucketTopic, opts metav1.UpdateOptions) (result *v1.CephBucketTopic, err error) {
emptyResult := &v1.CephBucketTopic{}
obj, err := c.Fake.
Invokes(testing.NewUpdateActionWithOptions(cephbuckettopicsResource, c.ns, cephBucketTopic, opts), emptyResult)
if obj == nil {
return emptyResult, err
}
return obj.(*v1.CephBucketTopic), err
}
// Delete takes name of the cephBucketTopic and deletes it. Returns an error if one occurs.
func (c *FakeCephBucketTopics) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
_, err := c.Fake.
Invokes(testing.NewDeleteActionWithOptions(cephbuckettopicsResource, c.ns, name, opts), &v1.CephBucketTopic{})
return err
}
// DeleteCollection deletes a collection of objects.
func (c *FakeCephBucketTopics) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
action := testing.NewDeleteCollectionActionWithOptions(cephbuckettopicsResource, c.ns, opts, listOpts)
_, err := c.Fake.Invokes(action, &v1.CephBucketTopicList{})
return err
}
// Patch applies the patch and returns the patched cephBucketTopic.
func (c *FakeCephBucketTopics) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.CephBucketTopic, err error) {
emptyResult := &v1.CephBucketTopic{}
obj, err := c.Fake.
Invokes(testing.NewPatchSubresourceActionWithOptions(cephbuckettopicsResource, c.ns, name, pt, data, opts, subresources...), emptyResult)
if obj == nil {
return emptyResult, err
}
return obj.(*v1.CephBucketTopic), err
}
@@ -19,116 +19,30 @@ limitations under the License.
package fake
import (
"context"
v1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
labels "k8s.io/apimachinery/pkg/labels"
types "k8s.io/apimachinery/pkg/types"
watch "k8s.io/apimachinery/pkg/watch"
testing "k8s.io/client-go/testing"
cephrookiov1 "github.com/rook/rook/pkg/client/clientset/versioned/typed/ceph.rook.io/v1"
gentype "k8s.io/client-go/gentype"
)
// FakeCephClients implements CephClientInterface
type FakeCephClients struct {
// fakeCephClients implements CephClientInterface
type fakeCephClients struct {
*gentype.FakeClientWithList[*v1.CephClient, *v1.CephClientList]
Fake *FakeCephV1
ns string
}
var cephclientsResource = v1.SchemeGroupVersion.WithResource("cephclients")
var cephclientsKind = v1.SchemeGroupVersion.WithKind("CephClient")
// Get takes name of the cephClient, and returns the corresponding cephClient object, and an error if there is any.
func (c *FakeCephClients) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.CephClient, err error) {
emptyResult := &v1.CephClient{}
obj, err := c.Fake.
Invokes(testing.NewGetActionWithOptions(cephclientsResource, c.ns, name, options), emptyResult)
if obj == nil {
return emptyResult, err
func newFakeCephClients(fake *FakeCephV1, namespace string) cephrookiov1.CephClientInterface {
return &fakeCephClients{
gentype.NewFakeClientWithList[*v1.CephClient, *v1.CephClientList](
fake.Fake,
namespace,
v1.SchemeGroupVersion.WithResource("cephclients"),
v1.SchemeGroupVersion.WithKind("CephClient"),
func() *v1.CephClient { return &v1.CephClient{} },
func() *v1.CephClientList { return &v1.CephClientList{} },
func(dst, src *v1.CephClientList) { dst.ListMeta = src.ListMeta },
func(list *v1.CephClientList) []*v1.CephClient { return gentype.ToPointerSlice(list.Items) },
func(list *v1.CephClientList, items []*v1.CephClient) { list.Items = gentype.FromPointerSlice(items) },
),
fake,
}
return obj.(*v1.CephClient), err
}
// List takes label and field selectors, and returns the list of CephClients that match those selectors.
func (c *FakeCephClients) List(ctx context.Context, opts metav1.ListOptions) (result *v1.CephClientList, err error) {
emptyResult := &v1.CephClientList{}
obj, err := c.Fake.
Invokes(testing.NewListActionWithOptions(cephclientsResource, cephclientsKind, c.ns, opts), emptyResult)
if obj == nil {
return emptyResult, err
}
label, _, _ := testing.ExtractFromListOptions(opts)
if label == nil {
label = labels.Everything()
}
list := &v1.CephClientList{ListMeta: obj.(*v1.CephClientList).ListMeta}
for _, item := range obj.(*v1.CephClientList).Items {
if label.Matches(labels.Set(item.Labels)) {
list.Items = append(list.Items, item)
}
}
return list, err
}
// Watch returns a watch.Interface that watches the requested cephClients.
func (c *FakeCephClients) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
return c.Fake.
InvokesWatch(testing.NewWatchActionWithOptions(cephclientsResource, c.ns, opts))
}
// Create takes the representation of a cephClient and creates it. Returns the server's representation of the cephClient, and an error, if there is any.
func (c *FakeCephClients) Create(ctx context.Context, cephClient *v1.CephClient, opts metav1.CreateOptions) (result *v1.CephClient, err error) {
emptyResult := &v1.CephClient{}
obj, err := c.Fake.
Invokes(testing.NewCreateActionWithOptions(cephclientsResource, c.ns, cephClient, opts), emptyResult)
if obj == nil {
return emptyResult, err
}
return obj.(*v1.CephClient), err
}
// Update takes the representation of a cephClient and updates it. Returns the server's representation of the cephClient, and an error, if there is any.
func (c *FakeCephClients) Update(ctx context.Context, cephClient *v1.CephClient, opts metav1.UpdateOptions) (result *v1.CephClient, err error) {
emptyResult := &v1.CephClient{}
obj, err := c.Fake.
Invokes(testing.NewUpdateActionWithOptions(cephclientsResource, c.ns, cephClient, opts), emptyResult)
if obj == nil {
return emptyResult, err
}
return obj.(*v1.CephClient), err
}
// Delete takes name of the cephClient and deletes it. Returns an error if one occurs.
func (c *FakeCephClients) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
_, err := c.Fake.
Invokes(testing.NewDeleteActionWithOptions(cephclientsResource, c.ns, name, opts), &v1.CephClient{})
return err
}
// DeleteCollection deletes a collection of objects.
func (c *FakeCephClients) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
action := testing.NewDeleteCollectionActionWithOptions(cephclientsResource, c.ns, opts, listOpts)
_, err := c.Fake.Invokes(action, &v1.CephClientList{})
return err
}
// Patch applies the patch and returns the patched cephClient.
func (c *FakeCephClients) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.CephClient, err error) {
emptyResult := &v1.CephClient{}
obj, err := c.Fake.
Invokes(testing.NewPatchSubresourceActionWithOptions(cephclientsResource, c.ns, name, pt, data, opts, subresources...), emptyResult)
if obj == nil {
return emptyResult, err
}
return obj.(*v1.CephClient), err
}
@@ -19,116 +19,30 @@ limitations under the License.
package fake
import (
"context"
v1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
labels "k8s.io/apimachinery/pkg/labels"
types "k8s.io/apimachinery/pkg/types"
watch "k8s.io/apimachinery/pkg/watch"
testing "k8s.io/client-go/testing"
cephrookiov1 "github.com/rook/rook/pkg/client/clientset/versioned/typed/ceph.rook.io/v1"
gentype "k8s.io/client-go/gentype"
)
// FakeCephClusters implements CephClusterInterface
type FakeCephClusters struct {
// fakeCephClusters implements CephClusterInterface
type fakeCephClusters struct {
*gentype.FakeClientWithList[*v1.CephCluster, *v1.CephClusterList]
Fake *FakeCephV1
ns string
}
var cephclustersResource = v1.SchemeGroupVersion.WithResource("cephclusters")
var cephclustersKind = v1.SchemeGroupVersion.WithKind("CephCluster")
// Get takes name of the cephCluster, and returns the corresponding cephCluster object, and an error if there is any.
func (c *FakeCephClusters) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.CephCluster, err error) {
emptyResult := &v1.CephCluster{}
obj, err := c.Fake.
Invokes(testing.NewGetActionWithOptions(cephclustersResource, c.ns, name, options), emptyResult)
if obj == nil {
return emptyResult, err
func newFakeCephClusters(fake *FakeCephV1, namespace string) cephrookiov1.CephClusterInterface {
return &fakeCephClusters{
gentype.NewFakeClientWithList[*v1.CephCluster, *v1.CephClusterList](
fake.Fake,
namespace,
v1.SchemeGroupVersion.WithResource("cephclusters"),
v1.SchemeGroupVersion.WithKind("CephCluster"),
func() *v1.CephCluster { return &v1.CephCluster{} },
func() *v1.CephClusterList { return &v1.CephClusterList{} },
func(dst, src *v1.CephClusterList) { dst.ListMeta = src.ListMeta },
func(list *v1.CephClusterList) []*v1.CephCluster { return gentype.ToPointerSlice(list.Items) },
func(list *v1.CephClusterList, items []*v1.CephCluster) { list.Items = gentype.FromPointerSlice(items) },
),
fake,
}
return obj.(*v1.CephCluster), err
}
// List takes label and field selectors, and returns the list of CephClusters that match those selectors.
func (c *FakeCephClusters) List(ctx context.Context, opts metav1.ListOptions) (result *v1.CephClusterList, err error) {
emptyResult := &v1.CephClusterList{}
obj, err := c.Fake.
Invokes(testing.NewListActionWithOptions(cephclustersResource, cephclustersKind, c.ns, opts), emptyResult)
if obj == nil {
return emptyResult, err
}
label, _, _ := testing.ExtractFromListOptions(opts)
if label == nil {
label = labels.Everything()
}
list := &v1.CephClusterList{ListMeta: obj.(*v1.CephClusterList).ListMeta}
for _, item := range obj.(*v1.CephClusterList).Items {
if label.Matches(labels.Set(item.Labels)) {
list.Items = append(list.Items, item)
}
}
return list, err
}
// Watch returns a watch.Interface that watches the requested cephClusters.
func (c *FakeCephClusters) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
return c.Fake.
InvokesWatch(testing.NewWatchActionWithOptions(cephclustersResource, c.ns, opts))
}
// Create takes the representation of a cephCluster and creates it. Returns the server's representation of the cephCluster, and an error, if there is any.
func (c *FakeCephClusters) Create(ctx context.Context, cephCluster *v1.CephCluster, opts metav1.CreateOptions) (result *v1.CephCluster, err error) {
emptyResult := &v1.CephCluster{}
obj, err := c.Fake.
Invokes(testing.NewCreateActionWithOptions(cephclustersResource, c.ns, cephCluster, opts), emptyResult)
if obj == nil {
return emptyResult, err
}
return obj.(*v1.CephCluster), err
}
// Update takes the representation of a cephCluster and updates it. Returns the server's representation of the cephCluster, and an error, if there is any.
func (c *FakeCephClusters) Update(ctx context.Context, cephCluster *v1.CephCluster, opts metav1.UpdateOptions) (result *v1.CephCluster, err error) {
emptyResult := &v1.CephCluster{}
obj, err := c.Fake.
Invokes(testing.NewUpdateActionWithOptions(cephclustersResource, c.ns, cephCluster, opts), emptyResult)
if obj == nil {
return emptyResult, err
}
return obj.(*v1.CephCluster), err
}
// Delete takes name of the cephCluster and deletes it. Returns an error if one occurs.
func (c *FakeCephClusters) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
_, err := c.Fake.
Invokes(testing.NewDeleteActionWithOptions(cephclustersResource, c.ns, name, opts), &v1.CephCluster{})
return err
}
// DeleteCollection deletes a collection of objects.
func (c *FakeCephClusters) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
action := testing.NewDeleteCollectionActionWithOptions(cephclustersResource, c.ns, opts, listOpts)
_, err := c.Fake.Invokes(action, &v1.CephClusterList{})
return err
}
// Patch applies the patch and returns the patched cephCluster.
func (c *FakeCephClusters) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.CephCluster, err error) {
emptyResult := &v1.CephCluster{}
obj, err := c.Fake.
Invokes(testing.NewPatchSubresourceActionWithOptions(cephclustersResource, c.ns, name, pt, data, opts, subresources...), emptyResult)
if obj == nil {
return emptyResult, err
}
return obj.(*v1.CephCluster), err
}
@@ -19,116 +19,32 @@ limitations under the License.
package fake
import (
"context"
v1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
labels "k8s.io/apimachinery/pkg/labels"
types "k8s.io/apimachinery/pkg/types"
watch "k8s.io/apimachinery/pkg/watch"
testing "k8s.io/client-go/testing"
cephrookiov1 "github.com/rook/rook/pkg/client/clientset/versioned/typed/ceph.rook.io/v1"
gentype "k8s.io/client-go/gentype"
)
// FakeCephCOSIDrivers implements CephCOSIDriverInterface
type FakeCephCOSIDrivers struct {
// fakeCephCOSIDrivers implements CephCOSIDriverInterface
type fakeCephCOSIDrivers struct {
*gentype.FakeClientWithList[*v1.CephCOSIDriver, *v1.CephCOSIDriverList]
Fake *FakeCephV1
ns string
}
var cephcosidriversResource = v1.SchemeGroupVersion.WithResource("cephcosidrivers")
var cephcosidriversKind = v1.SchemeGroupVersion.WithKind("CephCOSIDriver")
// Get takes name of the cephCOSIDriver, and returns the corresponding cephCOSIDriver object, and an error if there is any.
func (c *FakeCephCOSIDrivers) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.CephCOSIDriver, err error) {
emptyResult := &v1.CephCOSIDriver{}
obj, err := c.Fake.
Invokes(testing.NewGetActionWithOptions(cephcosidriversResource, c.ns, name, options), emptyResult)
if obj == nil {
return emptyResult, err
func newFakeCephCOSIDrivers(fake *FakeCephV1, namespace string) cephrookiov1.CephCOSIDriverInterface {
return &fakeCephCOSIDrivers{
gentype.NewFakeClientWithList[*v1.CephCOSIDriver, *v1.CephCOSIDriverList](
fake.Fake,
namespace,
v1.SchemeGroupVersion.WithResource("cephcosidrivers"),
v1.SchemeGroupVersion.WithKind("CephCOSIDriver"),
func() *v1.CephCOSIDriver { return &v1.CephCOSIDriver{} },
func() *v1.CephCOSIDriverList { return &v1.CephCOSIDriverList{} },
func(dst, src *v1.CephCOSIDriverList) { dst.ListMeta = src.ListMeta },
func(list *v1.CephCOSIDriverList) []*v1.CephCOSIDriver { return gentype.ToPointerSlice(list.Items) },
func(list *v1.CephCOSIDriverList, items []*v1.CephCOSIDriver) {
list.Items = gentype.FromPointerSlice(items)
},
),
fake,
}
return obj.(*v1.CephCOSIDriver), err
}
// List takes label and field selectors, and returns the list of CephCOSIDrivers that match those selectors.
func (c *FakeCephCOSIDrivers) List(ctx context.Context, opts metav1.ListOptions) (result *v1.CephCOSIDriverList, err error) {
emptyResult := &v1.CephCOSIDriverList{}
obj, err := c.Fake.
Invokes(testing.NewListActionWithOptions(cephcosidriversResource, cephcosidriversKind, c.ns, opts), emptyResult)
if obj == nil {
return emptyResult, err
}
label, _, _ := testing.ExtractFromListOptions(opts)
if label == nil {
label = labels.Everything()
}
list := &v1.CephCOSIDriverList{ListMeta: obj.(*v1.CephCOSIDriverList).ListMeta}
for _, item := range obj.(*v1.CephCOSIDriverList).Items {
if label.Matches(labels.Set(item.Labels)) {
list.Items = append(list.Items, item)
}
}
return list, err
}
// Watch returns a watch.Interface that watches the requested cephCOSIDrivers.
func (c *FakeCephCOSIDrivers) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
return c.Fake.
InvokesWatch(testing.NewWatchActionWithOptions(cephcosidriversResource, c.ns, opts))
}
// Create takes the representation of a cephCOSIDriver and creates it. Returns the server's representation of the cephCOSIDriver, and an error, if there is any.
func (c *FakeCephCOSIDrivers) Create(ctx context.Context, cephCOSIDriver *v1.CephCOSIDriver, opts metav1.CreateOptions) (result *v1.CephCOSIDriver, err error) {
emptyResult := &v1.CephCOSIDriver{}
obj, err := c.Fake.
Invokes(testing.NewCreateActionWithOptions(cephcosidriversResource, c.ns, cephCOSIDriver, opts), emptyResult)
if obj == nil {
return emptyResult, err
}
return obj.(*v1.CephCOSIDriver), err
}
// Update takes the representation of a cephCOSIDriver and updates it. Returns the server's representation of the cephCOSIDriver, and an error, if there is any.
func (c *FakeCephCOSIDrivers) Update(ctx context.Context, cephCOSIDriver *v1.CephCOSIDriver, opts metav1.UpdateOptions) (result *v1.CephCOSIDriver, err error) {
emptyResult := &v1.CephCOSIDriver{}
obj, err := c.Fake.
Invokes(testing.NewUpdateActionWithOptions(cephcosidriversResource, c.ns, cephCOSIDriver, opts), emptyResult)
if obj == nil {
return emptyResult, err
}
return obj.(*v1.CephCOSIDriver), err
}
// Delete takes name of the cephCOSIDriver and deletes it. Returns an error if one occurs.
func (c *FakeCephCOSIDrivers) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
_, err := c.Fake.
Invokes(testing.NewDeleteActionWithOptions(cephcosidriversResource, c.ns, name, opts), &v1.CephCOSIDriver{})
return err
}
// DeleteCollection deletes a collection of objects.
func (c *FakeCephCOSIDrivers) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
action := testing.NewDeleteCollectionActionWithOptions(cephcosidriversResource, c.ns, opts, listOpts)
_, err := c.Fake.Invokes(action, &v1.CephCOSIDriverList{})
return err
}
// Patch applies the patch and returns the patched cephCOSIDriver.
func (c *FakeCephCOSIDrivers) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.CephCOSIDriver, err error) {
emptyResult := &v1.CephCOSIDriver{}
obj, err := c.Fake.
Invokes(testing.NewPatchSubresourceActionWithOptions(cephcosidriversResource, c.ns, name, pt, data, opts, subresources...), emptyResult)
if obj == nil {
return emptyResult, err
}
return obj.(*v1.CephCOSIDriver), err
}
@@ -19,116 +19,32 @@ limitations under the License.
package fake
import (
"context"
v1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
labels "k8s.io/apimachinery/pkg/labels"
types "k8s.io/apimachinery/pkg/types"
watch "k8s.io/apimachinery/pkg/watch"
testing "k8s.io/client-go/testing"
cephrookiov1 "github.com/rook/rook/pkg/client/clientset/versioned/typed/ceph.rook.io/v1"
gentype "k8s.io/client-go/gentype"
)
// FakeCephFilesystems implements CephFilesystemInterface
type FakeCephFilesystems struct {
// fakeCephFilesystems implements CephFilesystemInterface
type fakeCephFilesystems struct {
*gentype.FakeClientWithList[*v1.CephFilesystem, *v1.CephFilesystemList]
Fake *FakeCephV1
ns string
}
var cephfilesystemsResource = v1.SchemeGroupVersion.WithResource("cephfilesystems")
var cephfilesystemsKind = v1.SchemeGroupVersion.WithKind("CephFilesystem")
// Get takes name of the cephFilesystem, and returns the corresponding cephFilesystem object, and an error if there is any.
func (c *FakeCephFilesystems) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.CephFilesystem, err error) {
emptyResult := &v1.CephFilesystem{}
obj, err := c.Fake.
Invokes(testing.NewGetActionWithOptions(cephfilesystemsResource, c.ns, name, options), emptyResult)
if obj == nil {
return emptyResult, err
func newFakeCephFilesystems(fake *FakeCephV1, namespace string) cephrookiov1.CephFilesystemInterface {
return &fakeCephFilesystems{
gentype.NewFakeClientWithList[*v1.CephFilesystem, *v1.CephFilesystemList](
fake.Fake,
namespace,
v1.SchemeGroupVersion.WithResource("cephfilesystems"),
v1.SchemeGroupVersion.WithKind("CephFilesystem"),
func() *v1.CephFilesystem { return &v1.CephFilesystem{} },
func() *v1.CephFilesystemList { return &v1.CephFilesystemList{} },
func(dst, src *v1.CephFilesystemList) { dst.ListMeta = src.ListMeta },
func(list *v1.CephFilesystemList) []*v1.CephFilesystem { return gentype.ToPointerSlice(list.Items) },
func(list *v1.CephFilesystemList, items []*v1.CephFilesystem) {
list.Items = gentype.FromPointerSlice(items)
},
),
fake,
}
return obj.(*v1.CephFilesystem), err
}
// List takes label and field selectors, and returns the list of CephFilesystems that match those selectors.
func (c *FakeCephFilesystems) List(ctx context.Context, opts metav1.ListOptions) (result *v1.CephFilesystemList, err error) {
emptyResult := &v1.CephFilesystemList{}
obj, err := c.Fake.
Invokes(testing.NewListActionWithOptions(cephfilesystemsResource, cephfilesystemsKind, c.ns, opts), emptyResult)
if obj == nil {
return emptyResult, err
}
label, _, _ := testing.ExtractFromListOptions(opts)
if label == nil {
label = labels.Everything()
}
list := &v1.CephFilesystemList{ListMeta: obj.(*v1.CephFilesystemList).ListMeta}
for _, item := range obj.(*v1.CephFilesystemList).Items {
if label.Matches(labels.Set(item.Labels)) {
list.Items = append(list.Items, item)
}
}
return list, err
}
// Watch returns a watch.Interface that watches the requested cephFilesystems.
func (c *FakeCephFilesystems) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
return c.Fake.
InvokesWatch(testing.NewWatchActionWithOptions(cephfilesystemsResource, c.ns, opts))
}
// Create takes the representation of a cephFilesystem and creates it. Returns the server's representation of the cephFilesystem, and an error, if there is any.
func (c *FakeCephFilesystems) Create(ctx context.Context, cephFilesystem *v1.CephFilesystem, opts metav1.CreateOptions) (result *v1.CephFilesystem, err error) {
emptyResult := &v1.CephFilesystem{}
obj, err := c.Fake.
Invokes(testing.NewCreateActionWithOptions(cephfilesystemsResource, c.ns, cephFilesystem, opts), emptyResult)
if obj == nil {
return emptyResult, err
}
return obj.(*v1.CephFilesystem), err
}
// Update takes the representation of a cephFilesystem and updates it. Returns the server's representation of the cephFilesystem, and an error, if there is any.
func (c *FakeCephFilesystems) Update(ctx context.Context, cephFilesystem *v1.CephFilesystem, opts metav1.UpdateOptions) (result *v1.CephFilesystem, err error) {
emptyResult := &v1.CephFilesystem{}
obj, err := c.Fake.
Invokes(testing.NewUpdateActionWithOptions(cephfilesystemsResource, c.ns, cephFilesystem, opts), emptyResult)
if obj == nil {
return emptyResult, err
}
return obj.(*v1.CephFilesystem), err
}
// Delete takes name of the cephFilesystem and deletes it. Returns an error if one occurs.
func (c *FakeCephFilesystems) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
_, err := c.Fake.
Invokes(testing.NewDeleteActionWithOptions(cephfilesystemsResource, c.ns, name, opts), &v1.CephFilesystem{})
return err
}
// DeleteCollection deletes a collection of objects.
func (c *FakeCephFilesystems) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
action := testing.NewDeleteCollectionActionWithOptions(cephfilesystemsResource, c.ns, opts, listOpts)
_, err := c.Fake.Invokes(action, &v1.CephFilesystemList{})
return err
}
// Patch applies the patch and returns the patched cephFilesystem.
func (c *FakeCephFilesystems) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.CephFilesystem, err error) {
emptyResult := &v1.CephFilesystem{}
obj, err := c.Fake.
Invokes(testing.NewPatchSubresourceActionWithOptions(cephfilesystemsResource, c.ns, name, pt, data, opts, subresources...), emptyResult)
if obj == nil {
return emptyResult, err
}
return obj.(*v1.CephFilesystem), err
}
@@ -19,116 +19,34 @@ limitations under the License.
package fake
import (
"context"
v1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
labels "k8s.io/apimachinery/pkg/labels"
types "k8s.io/apimachinery/pkg/types"
watch "k8s.io/apimachinery/pkg/watch"
testing "k8s.io/client-go/testing"
cephrookiov1 "github.com/rook/rook/pkg/client/clientset/versioned/typed/ceph.rook.io/v1"
gentype "k8s.io/client-go/gentype"
)
// FakeCephFilesystemMirrors implements CephFilesystemMirrorInterface
type FakeCephFilesystemMirrors struct {
// fakeCephFilesystemMirrors implements CephFilesystemMirrorInterface
type fakeCephFilesystemMirrors struct {
*gentype.FakeClientWithList[*v1.CephFilesystemMirror, *v1.CephFilesystemMirrorList]
Fake *FakeCephV1
ns string
}
var cephfilesystemmirrorsResource = v1.SchemeGroupVersion.WithResource("cephfilesystemmirrors")
var cephfilesystemmirrorsKind = v1.SchemeGroupVersion.WithKind("CephFilesystemMirror")
// Get takes name of the cephFilesystemMirror, and returns the corresponding cephFilesystemMirror object, and an error if there is any.
func (c *FakeCephFilesystemMirrors) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.CephFilesystemMirror, err error) {
emptyResult := &v1.CephFilesystemMirror{}
obj, err := c.Fake.
Invokes(testing.NewGetActionWithOptions(cephfilesystemmirrorsResource, c.ns, name, options), emptyResult)
if obj == nil {
return emptyResult, err
func newFakeCephFilesystemMirrors(fake *FakeCephV1, namespace string) cephrookiov1.CephFilesystemMirrorInterface {
return &fakeCephFilesystemMirrors{
gentype.NewFakeClientWithList[*v1.CephFilesystemMirror, *v1.CephFilesystemMirrorList](
fake.Fake,
namespace,
v1.SchemeGroupVersion.WithResource("cephfilesystemmirrors"),
v1.SchemeGroupVersion.WithKind("CephFilesystemMirror"),
func() *v1.CephFilesystemMirror { return &v1.CephFilesystemMirror{} },
func() *v1.CephFilesystemMirrorList { return &v1.CephFilesystemMirrorList{} },
func(dst, src *v1.CephFilesystemMirrorList) { dst.ListMeta = src.ListMeta },
func(list *v1.CephFilesystemMirrorList) []*v1.CephFilesystemMirror {
return gentype.ToPointerSlice(list.Items)
},
func(list *v1.CephFilesystemMirrorList, items []*v1.CephFilesystemMirror) {
list.Items = gentype.FromPointerSlice(items)
},
),
fake,
}
return obj.(*v1.CephFilesystemMirror), err
}
// List takes label and field selectors, and returns the list of CephFilesystemMirrors that match those selectors.
func (c *FakeCephFilesystemMirrors) List(ctx context.Context, opts metav1.ListOptions) (result *v1.CephFilesystemMirrorList, err error) {
emptyResult := &v1.CephFilesystemMirrorList{}
obj, err := c.Fake.
Invokes(testing.NewListActionWithOptions(cephfilesystemmirrorsResource, cephfilesystemmirrorsKind, c.ns, opts), emptyResult)
if obj == nil {
return emptyResult, err
}
label, _, _ := testing.ExtractFromListOptions(opts)
if label == nil {
label = labels.Everything()
}
list := &v1.CephFilesystemMirrorList{ListMeta: obj.(*v1.CephFilesystemMirrorList).ListMeta}
for _, item := range obj.(*v1.CephFilesystemMirrorList).Items {
if label.Matches(labels.Set(item.Labels)) {
list.Items = append(list.Items, item)
}
}
return list, err
}
// Watch returns a watch.Interface that watches the requested cephFilesystemMirrors.
func (c *FakeCephFilesystemMirrors) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
return c.Fake.
InvokesWatch(testing.NewWatchActionWithOptions(cephfilesystemmirrorsResource, c.ns, opts))
}
// Create takes the representation of a cephFilesystemMirror and creates it. Returns the server's representation of the cephFilesystemMirror, and an error, if there is any.
func (c *FakeCephFilesystemMirrors) Create(ctx context.Context, cephFilesystemMirror *v1.CephFilesystemMirror, opts metav1.CreateOptions) (result *v1.CephFilesystemMirror, err error) {
emptyResult := &v1.CephFilesystemMirror{}
obj, err := c.Fake.
Invokes(testing.NewCreateActionWithOptions(cephfilesystemmirrorsResource, c.ns, cephFilesystemMirror, opts), emptyResult)
if obj == nil {
return emptyResult, err
}
return obj.(*v1.CephFilesystemMirror), err
}
// Update takes the representation of a cephFilesystemMirror and updates it. Returns the server's representation of the cephFilesystemMirror, and an error, if there is any.
func (c *FakeCephFilesystemMirrors) Update(ctx context.Context, cephFilesystemMirror *v1.CephFilesystemMirror, opts metav1.UpdateOptions) (result *v1.CephFilesystemMirror, err error) {
emptyResult := &v1.CephFilesystemMirror{}
obj, err := c.Fake.
Invokes(testing.NewUpdateActionWithOptions(cephfilesystemmirrorsResource, c.ns, cephFilesystemMirror, opts), emptyResult)
if obj == nil {
return emptyResult, err
}
return obj.(*v1.CephFilesystemMirror), err
}
// Delete takes name of the cephFilesystemMirror and deletes it. Returns an error if one occurs.
func (c *FakeCephFilesystemMirrors) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
_, err := c.Fake.
Invokes(testing.NewDeleteActionWithOptions(cephfilesystemmirrorsResource, c.ns, name, opts), &v1.CephFilesystemMirror{})
return err
}
// DeleteCollection deletes a collection of objects.
func (c *FakeCephFilesystemMirrors) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
action := testing.NewDeleteCollectionActionWithOptions(cephfilesystemmirrorsResource, c.ns, opts, listOpts)
_, err := c.Fake.Invokes(action, &v1.CephFilesystemMirrorList{})
return err
}
// Patch applies the patch and returns the patched cephFilesystemMirror.
func (c *FakeCephFilesystemMirrors) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.CephFilesystemMirror, err error) {
emptyResult := &v1.CephFilesystemMirror{}
obj, err := c.Fake.
Invokes(testing.NewPatchSubresourceActionWithOptions(cephfilesystemmirrorsResource, c.ns, name, pt, data, opts, subresources...), emptyResult)
if obj == nil {
return emptyResult, err
}
return obj.(*v1.CephFilesystemMirror), err
}
@@ -19,116 +19,34 @@ limitations under the License.
package fake
import (
"context"
v1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
labels "k8s.io/apimachinery/pkg/labels"
types "k8s.io/apimachinery/pkg/types"
watch "k8s.io/apimachinery/pkg/watch"
testing "k8s.io/client-go/testing"
cephrookiov1 "github.com/rook/rook/pkg/client/clientset/versioned/typed/ceph.rook.io/v1"
gentype "k8s.io/client-go/gentype"
)
// FakeCephFilesystemSubVolumeGroups implements CephFilesystemSubVolumeGroupInterface
type FakeCephFilesystemSubVolumeGroups struct {
// fakeCephFilesystemSubVolumeGroups implements CephFilesystemSubVolumeGroupInterface
type fakeCephFilesystemSubVolumeGroups struct {
*gentype.FakeClientWithList[*v1.CephFilesystemSubVolumeGroup, *v1.CephFilesystemSubVolumeGroupList]
Fake *FakeCephV1
ns string
}
var cephfilesystemsubvolumegroupsResource = v1.SchemeGroupVersion.WithResource("cephfilesystemsubvolumegroups")
var cephfilesystemsubvolumegroupsKind = v1.SchemeGroupVersion.WithKind("CephFilesystemSubVolumeGroup")
// Get takes name of the cephFilesystemSubVolumeGroup, and returns the corresponding cephFilesystemSubVolumeGroup object, and an error if there is any.
func (c *FakeCephFilesystemSubVolumeGroups) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.CephFilesystemSubVolumeGroup, err error) {
emptyResult := &v1.CephFilesystemSubVolumeGroup{}
obj, err := c.Fake.
Invokes(testing.NewGetActionWithOptions(cephfilesystemsubvolumegroupsResource, c.ns, name, options), emptyResult)
if obj == nil {
return emptyResult, err
func newFakeCephFilesystemSubVolumeGroups(fake *FakeCephV1, namespace string) cephrookiov1.CephFilesystemSubVolumeGroupInterface {
return &fakeCephFilesystemSubVolumeGroups{
gentype.NewFakeClientWithList[*v1.CephFilesystemSubVolumeGroup, *v1.CephFilesystemSubVolumeGroupList](
fake.Fake,
namespace,
v1.SchemeGroupVersion.WithResource("cephfilesystemsubvolumegroups"),
v1.SchemeGroupVersion.WithKind("CephFilesystemSubVolumeGroup"),
func() *v1.CephFilesystemSubVolumeGroup { return &v1.CephFilesystemSubVolumeGroup{} },
func() *v1.CephFilesystemSubVolumeGroupList { return &v1.CephFilesystemSubVolumeGroupList{} },
func(dst, src *v1.CephFilesystemSubVolumeGroupList) { dst.ListMeta = src.ListMeta },
func(list *v1.CephFilesystemSubVolumeGroupList) []*v1.CephFilesystemSubVolumeGroup {
return gentype.ToPointerSlice(list.Items)
},
func(list *v1.CephFilesystemSubVolumeGroupList, items []*v1.CephFilesystemSubVolumeGroup) {
list.Items = gentype.FromPointerSlice(items)
},
),
fake,
}
return obj.(*v1.CephFilesystemSubVolumeGroup), err
}
// List takes label and field selectors, and returns the list of CephFilesystemSubVolumeGroups that match those selectors.
func (c *FakeCephFilesystemSubVolumeGroups) List(ctx context.Context, opts metav1.ListOptions) (result *v1.CephFilesystemSubVolumeGroupList, err error) {
emptyResult := &v1.CephFilesystemSubVolumeGroupList{}
obj, err := c.Fake.
Invokes(testing.NewListActionWithOptions(cephfilesystemsubvolumegroupsResource, cephfilesystemsubvolumegroupsKind, c.ns, opts), emptyResult)
if obj == nil {
return emptyResult, err
}
label, _, _ := testing.ExtractFromListOptions(opts)
if label == nil {
label = labels.Everything()
}
list := &v1.CephFilesystemSubVolumeGroupList{ListMeta: obj.(*v1.CephFilesystemSubVolumeGroupList).ListMeta}
for _, item := range obj.(*v1.CephFilesystemSubVolumeGroupList).Items {
if label.Matches(labels.Set(item.Labels)) {
list.Items = append(list.Items, item)
}
}
return list, err
}
// Watch returns a watch.Interface that watches the requested cephFilesystemSubVolumeGroups.
func (c *FakeCephFilesystemSubVolumeGroups) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
return c.Fake.
InvokesWatch(testing.NewWatchActionWithOptions(cephfilesystemsubvolumegroupsResource, c.ns, opts))
}
// Create takes the representation of a cephFilesystemSubVolumeGroup and creates it. Returns the server's representation of the cephFilesystemSubVolumeGroup, and an error, if there is any.
func (c *FakeCephFilesystemSubVolumeGroups) Create(ctx context.Context, cephFilesystemSubVolumeGroup *v1.CephFilesystemSubVolumeGroup, opts metav1.CreateOptions) (result *v1.CephFilesystemSubVolumeGroup, err error) {
emptyResult := &v1.CephFilesystemSubVolumeGroup{}
obj, err := c.Fake.
Invokes(testing.NewCreateActionWithOptions(cephfilesystemsubvolumegroupsResource, c.ns, cephFilesystemSubVolumeGroup, opts), emptyResult)
if obj == nil {
return emptyResult, err
}
return obj.(*v1.CephFilesystemSubVolumeGroup), err
}
// Update takes the representation of a cephFilesystemSubVolumeGroup and updates it. Returns the server's representation of the cephFilesystemSubVolumeGroup, and an error, if there is any.
func (c *FakeCephFilesystemSubVolumeGroups) Update(ctx context.Context, cephFilesystemSubVolumeGroup *v1.CephFilesystemSubVolumeGroup, opts metav1.UpdateOptions) (result *v1.CephFilesystemSubVolumeGroup, err error) {
emptyResult := &v1.CephFilesystemSubVolumeGroup{}
obj, err := c.Fake.
Invokes(testing.NewUpdateActionWithOptions(cephfilesystemsubvolumegroupsResource, c.ns, cephFilesystemSubVolumeGroup, opts), emptyResult)
if obj == nil {
return emptyResult, err
}
return obj.(*v1.CephFilesystemSubVolumeGroup), err
}
// Delete takes name of the cephFilesystemSubVolumeGroup and deletes it. Returns an error if one occurs.
func (c *FakeCephFilesystemSubVolumeGroups) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
_, err := c.Fake.
Invokes(testing.NewDeleteActionWithOptions(cephfilesystemsubvolumegroupsResource, c.ns, name, opts), &v1.CephFilesystemSubVolumeGroup{})
return err
}
// DeleteCollection deletes a collection of objects.
func (c *FakeCephFilesystemSubVolumeGroups) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
action := testing.NewDeleteCollectionActionWithOptions(cephfilesystemsubvolumegroupsResource, c.ns, opts, listOpts)
_, err := c.Fake.Invokes(action, &v1.CephFilesystemSubVolumeGroupList{})
return err
}
// Patch applies the patch and returns the patched cephFilesystemSubVolumeGroup.
func (c *FakeCephFilesystemSubVolumeGroups) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.CephFilesystemSubVolumeGroup, err error) {
emptyResult := &v1.CephFilesystemSubVolumeGroup{}
obj, err := c.Fake.
Invokes(testing.NewPatchSubresourceActionWithOptions(cephfilesystemsubvolumegroupsResource, c.ns, name, pt, data, opts, subresources...), emptyResult)
if obj == nil {
return emptyResult, err
}
return obj.(*v1.CephFilesystemSubVolumeGroup), err
}
@@ -19,116 +19,30 @@ limitations under the License.
package fake
import (
"context"
v1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
labels "k8s.io/apimachinery/pkg/labels"
types "k8s.io/apimachinery/pkg/types"
watch "k8s.io/apimachinery/pkg/watch"
testing "k8s.io/client-go/testing"
cephrookiov1 "github.com/rook/rook/pkg/client/clientset/versioned/typed/ceph.rook.io/v1"
gentype "k8s.io/client-go/gentype"
)
// FakeCephNFSes implements CephNFSInterface
type FakeCephNFSes struct {
// fakeCephNFSes implements CephNFSInterface
type fakeCephNFSes struct {
*gentype.FakeClientWithList[*v1.CephNFS, *v1.CephNFSList]
Fake *FakeCephV1
ns string
}
var cephnfsesResource = v1.SchemeGroupVersion.WithResource("cephnfses")
var cephnfsesKind = v1.SchemeGroupVersion.WithKind("CephNFS")
// Get takes name of the cephNFS, and returns the corresponding cephNFS object, and an error if there is any.
func (c *FakeCephNFSes) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.CephNFS, err error) {
emptyResult := &v1.CephNFS{}
obj, err := c.Fake.
Invokes(testing.NewGetActionWithOptions(cephnfsesResource, c.ns, name, options), emptyResult)
if obj == nil {
return emptyResult, err
func newFakeCephNFSes(fake *FakeCephV1, namespace string) cephrookiov1.CephNFSInterface {
return &fakeCephNFSes{
gentype.NewFakeClientWithList[*v1.CephNFS, *v1.CephNFSList](
fake.Fake,
namespace,
v1.SchemeGroupVersion.WithResource("cephnfses"),
v1.SchemeGroupVersion.WithKind("CephNFS"),
func() *v1.CephNFS { return &v1.CephNFS{} },
func() *v1.CephNFSList { return &v1.CephNFSList{} },
func(dst, src *v1.CephNFSList) { dst.ListMeta = src.ListMeta },
func(list *v1.CephNFSList) []*v1.CephNFS { return gentype.ToPointerSlice(list.Items) },
func(list *v1.CephNFSList, items []*v1.CephNFS) { list.Items = gentype.FromPointerSlice(items) },
),
fake,
}
return obj.(*v1.CephNFS), err
}
// List takes label and field selectors, and returns the list of CephNFSes that match those selectors.
func (c *FakeCephNFSes) List(ctx context.Context, opts metav1.ListOptions) (result *v1.CephNFSList, err error) {
emptyResult := &v1.CephNFSList{}
obj, err := c.Fake.
Invokes(testing.NewListActionWithOptions(cephnfsesResource, cephnfsesKind, c.ns, opts), emptyResult)
if obj == nil {
return emptyResult, err
}
label, _, _ := testing.ExtractFromListOptions(opts)
if label == nil {
label = labels.Everything()
}
list := &v1.CephNFSList{ListMeta: obj.(*v1.CephNFSList).ListMeta}
for _, item := range obj.(*v1.CephNFSList).Items {
if label.Matches(labels.Set(item.Labels)) {
list.Items = append(list.Items, item)
}
}
return list, err
}
// Watch returns a watch.Interface that watches the requested cephNFSes.
func (c *FakeCephNFSes) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
return c.Fake.
InvokesWatch(testing.NewWatchActionWithOptions(cephnfsesResource, c.ns, opts))
}
// Create takes the representation of a cephNFS and creates it. Returns the server's representation of the cephNFS, and an error, if there is any.
func (c *FakeCephNFSes) Create(ctx context.Context, cephNFS *v1.CephNFS, opts metav1.CreateOptions) (result *v1.CephNFS, err error) {
emptyResult := &v1.CephNFS{}
obj, err := c.Fake.
Invokes(testing.NewCreateActionWithOptions(cephnfsesResource, c.ns, cephNFS, opts), emptyResult)
if obj == nil {
return emptyResult, err
}
return obj.(*v1.CephNFS), err
}
// Update takes the representation of a cephNFS and updates it. Returns the server's representation of the cephNFS, and an error, if there is any.
func (c *FakeCephNFSes) Update(ctx context.Context, cephNFS *v1.CephNFS, opts metav1.UpdateOptions) (result *v1.CephNFS, err error) {
emptyResult := &v1.CephNFS{}
obj, err := c.Fake.
Invokes(testing.NewUpdateActionWithOptions(cephnfsesResource, c.ns, cephNFS, opts), emptyResult)
if obj == nil {
return emptyResult, err
}
return obj.(*v1.CephNFS), err
}
// Delete takes name of the cephNFS and deletes it. Returns an error if one occurs.
func (c *FakeCephNFSes) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
_, err := c.Fake.
Invokes(testing.NewDeleteActionWithOptions(cephnfsesResource, c.ns, name, opts), &v1.CephNFS{})
return err
}
// DeleteCollection deletes a collection of objects.
func (c *FakeCephNFSes) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
action := testing.NewDeleteCollectionActionWithOptions(cephnfsesResource, c.ns, opts, listOpts)
_, err := c.Fake.Invokes(action, &v1.CephNFSList{})
return err
}
// Patch applies the patch and returns the patched cephNFS.
func (c *FakeCephNFSes) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.CephNFS, err error) {
emptyResult := &v1.CephNFS{}
obj, err := c.Fake.
Invokes(testing.NewPatchSubresourceActionWithOptions(cephnfsesResource, c.ns, name, pt, data, opts, subresources...), emptyResult)
if obj == nil {
return emptyResult, err
}
return obj.(*v1.CephNFS), err
}
@@ -19,116 +19,32 @@ limitations under the License.
package fake
import (
"context"
v1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
labels "k8s.io/apimachinery/pkg/labels"
types "k8s.io/apimachinery/pkg/types"
watch "k8s.io/apimachinery/pkg/watch"
testing "k8s.io/client-go/testing"
cephrookiov1 "github.com/rook/rook/pkg/client/clientset/versioned/typed/ceph.rook.io/v1"
gentype "k8s.io/client-go/gentype"
)
// FakeCephObjectRealms implements CephObjectRealmInterface
type FakeCephObjectRealms struct {
// fakeCephObjectRealms implements CephObjectRealmInterface
type fakeCephObjectRealms struct {
*gentype.FakeClientWithList[*v1.CephObjectRealm, *v1.CephObjectRealmList]
Fake *FakeCephV1
ns string
}
var cephobjectrealmsResource = v1.SchemeGroupVersion.WithResource("cephobjectrealms")
var cephobjectrealmsKind = v1.SchemeGroupVersion.WithKind("CephObjectRealm")
// Get takes name of the cephObjectRealm, and returns the corresponding cephObjectRealm object, and an error if there is any.
func (c *FakeCephObjectRealms) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.CephObjectRealm, err error) {
emptyResult := &v1.CephObjectRealm{}
obj, err := c.Fake.
Invokes(testing.NewGetActionWithOptions(cephobjectrealmsResource, c.ns, name, options), emptyResult)
if obj == nil {
return emptyResult, err
func newFakeCephObjectRealms(fake *FakeCephV1, namespace string) cephrookiov1.CephObjectRealmInterface {
return &fakeCephObjectRealms{
gentype.NewFakeClientWithList[*v1.CephObjectRealm, *v1.CephObjectRealmList](
fake.Fake,
namespace,
v1.SchemeGroupVersion.WithResource("cephobjectrealms"),
v1.SchemeGroupVersion.WithKind("CephObjectRealm"),
func() *v1.CephObjectRealm { return &v1.CephObjectRealm{} },
func() *v1.CephObjectRealmList { return &v1.CephObjectRealmList{} },
func(dst, src *v1.CephObjectRealmList) { dst.ListMeta = src.ListMeta },
func(list *v1.CephObjectRealmList) []*v1.CephObjectRealm { return gentype.ToPointerSlice(list.Items) },
func(list *v1.CephObjectRealmList, items []*v1.CephObjectRealm) {
list.Items = gentype.FromPointerSlice(items)
},
),
fake,
}
return obj.(*v1.CephObjectRealm), err
}
// List takes label and field selectors, and returns the list of CephObjectRealms that match those selectors.
func (c *FakeCephObjectRealms) List(ctx context.Context, opts metav1.ListOptions) (result *v1.CephObjectRealmList, err error) {
emptyResult := &v1.CephObjectRealmList{}
obj, err := c.Fake.
Invokes(testing.NewListActionWithOptions(cephobjectrealmsResource, cephobjectrealmsKind, c.ns, opts), emptyResult)
if obj == nil {
return emptyResult, err
}
label, _, _ := testing.ExtractFromListOptions(opts)
if label == nil {
label = labels.Everything()
}
list := &v1.CephObjectRealmList{ListMeta: obj.(*v1.CephObjectRealmList).ListMeta}
for _, item := range obj.(*v1.CephObjectRealmList).Items {
if label.Matches(labels.Set(item.Labels)) {
list.Items = append(list.Items, item)
}
}
return list, err
}
// Watch returns a watch.Interface that watches the requested cephObjectRealms.
func (c *FakeCephObjectRealms) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
return c.Fake.
InvokesWatch(testing.NewWatchActionWithOptions(cephobjectrealmsResource, c.ns, opts))
}
// Create takes the representation of a cephObjectRealm and creates it. Returns the server's representation of the cephObjectRealm, and an error, if there is any.
func (c *FakeCephObjectRealms) Create(ctx context.Context, cephObjectRealm *v1.CephObjectRealm, opts metav1.CreateOptions) (result *v1.CephObjectRealm, err error) {
emptyResult := &v1.CephObjectRealm{}
obj, err := c.Fake.
Invokes(testing.NewCreateActionWithOptions(cephobjectrealmsResource, c.ns, cephObjectRealm, opts), emptyResult)
if obj == nil {
return emptyResult, err
}
return obj.(*v1.CephObjectRealm), err
}
// Update takes the representation of a cephObjectRealm and updates it. Returns the server's representation of the cephObjectRealm, and an error, if there is any.
func (c *FakeCephObjectRealms) Update(ctx context.Context, cephObjectRealm *v1.CephObjectRealm, opts metav1.UpdateOptions) (result *v1.CephObjectRealm, err error) {
emptyResult := &v1.CephObjectRealm{}
obj, err := c.Fake.
Invokes(testing.NewUpdateActionWithOptions(cephobjectrealmsResource, c.ns, cephObjectRealm, opts), emptyResult)
if obj == nil {
return emptyResult, err
}
return obj.(*v1.CephObjectRealm), err
}
// Delete takes name of the cephObjectRealm and deletes it. Returns an error if one occurs.
func (c *FakeCephObjectRealms) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
_, err := c.Fake.
Invokes(testing.NewDeleteActionWithOptions(cephobjectrealmsResource, c.ns, name, opts), &v1.CephObjectRealm{})
return err
}
// DeleteCollection deletes a collection of objects.
func (c *FakeCephObjectRealms) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
action := testing.NewDeleteCollectionActionWithOptions(cephobjectrealmsResource, c.ns, opts, listOpts)
_, err := c.Fake.Invokes(action, &v1.CephObjectRealmList{})
return err
}
// Patch applies the patch and returns the patched cephObjectRealm.
func (c *FakeCephObjectRealms) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.CephObjectRealm, err error) {
emptyResult := &v1.CephObjectRealm{}
obj, err := c.Fake.
Invokes(testing.NewPatchSubresourceActionWithOptions(cephobjectrealmsResource, c.ns, name, pt, data, opts, subresources...), emptyResult)
if obj == nil {
return emptyResult, err
}
return obj.(*v1.CephObjectRealm), err
}
@@ -19,116 +19,32 @@ limitations under the License.
package fake
import (
"context"
v1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
labels "k8s.io/apimachinery/pkg/labels"
types "k8s.io/apimachinery/pkg/types"
watch "k8s.io/apimachinery/pkg/watch"
testing "k8s.io/client-go/testing"
cephrookiov1 "github.com/rook/rook/pkg/client/clientset/versioned/typed/ceph.rook.io/v1"
gentype "k8s.io/client-go/gentype"
)
// FakeCephObjectStores implements CephObjectStoreInterface
type FakeCephObjectStores struct {
// fakeCephObjectStores implements CephObjectStoreInterface
type fakeCephObjectStores struct {
*gentype.FakeClientWithList[*v1.CephObjectStore, *v1.CephObjectStoreList]
Fake *FakeCephV1
ns string
}
var cephobjectstoresResource = v1.SchemeGroupVersion.WithResource("cephobjectstores")
var cephobjectstoresKind = v1.SchemeGroupVersion.WithKind("CephObjectStore")
// Get takes name of the cephObjectStore, and returns the corresponding cephObjectStore object, and an error if there is any.
func (c *FakeCephObjectStores) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.CephObjectStore, err error) {
emptyResult := &v1.CephObjectStore{}
obj, err := c.Fake.
Invokes(testing.NewGetActionWithOptions(cephobjectstoresResource, c.ns, name, options), emptyResult)
if obj == nil {
return emptyResult, err
func newFakeCephObjectStores(fake *FakeCephV1, namespace string) cephrookiov1.CephObjectStoreInterface {
return &fakeCephObjectStores{
gentype.NewFakeClientWithList[*v1.CephObjectStore, *v1.CephObjectStoreList](
fake.Fake,
namespace,
v1.SchemeGroupVersion.WithResource("cephobjectstores"),
v1.SchemeGroupVersion.WithKind("CephObjectStore"),
func() *v1.CephObjectStore { return &v1.CephObjectStore{} },
func() *v1.CephObjectStoreList { return &v1.CephObjectStoreList{} },
func(dst, src *v1.CephObjectStoreList) { dst.ListMeta = src.ListMeta },
func(list *v1.CephObjectStoreList) []*v1.CephObjectStore { return gentype.ToPointerSlice(list.Items) },
func(list *v1.CephObjectStoreList, items []*v1.CephObjectStore) {
list.Items = gentype.FromPointerSlice(items)
},
),
fake,
}
return obj.(*v1.CephObjectStore), err
}
// List takes label and field selectors, and returns the list of CephObjectStores that match those selectors.
func (c *FakeCephObjectStores) List(ctx context.Context, opts metav1.ListOptions) (result *v1.CephObjectStoreList, err error) {
emptyResult := &v1.CephObjectStoreList{}
obj, err := c.Fake.
Invokes(testing.NewListActionWithOptions(cephobjectstoresResource, cephobjectstoresKind, c.ns, opts), emptyResult)
if obj == nil {
return emptyResult, err
}
label, _, _ := testing.ExtractFromListOptions(opts)
if label == nil {
label = labels.Everything()
}
list := &v1.CephObjectStoreList{ListMeta: obj.(*v1.CephObjectStoreList).ListMeta}
for _, item := range obj.(*v1.CephObjectStoreList).Items {
if label.Matches(labels.Set(item.Labels)) {
list.Items = append(list.Items, item)
}
}
return list, err
}
// Watch returns a watch.Interface that watches the requested cephObjectStores.
func (c *FakeCephObjectStores) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
return c.Fake.
InvokesWatch(testing.NewWatchActionWithOptions(cephobjectstoresResource, c.ns, opts))
}
// Create takes the representation of a cephObjectStore and creates it. Returns the server's representation of the cephObjectStore, and an error, if there is any.
func (c *FakeCephObjectStores) Create(ctx context.Context, cephObjectStore *v1.CephObjectStore, opts metav1.CreateOptions) (result *v1.CephObjectStore, err error) {
emptyResult := &v1.CephObjectStore{}
obj, err := c.Fake.
Invokes(testing.NewCreateActionWithOptions(cephobjectstoresResource, c.ns, cephObjectStore, opts), emptyResult)
if obj == nil {
return emptyResult, err
}
return obj.(*v1.CephObjectStore), err
}
// Update takes the representation of a cephObjectStore and updates it. Returns the server's representation of the cephObjectStore, and an error, if there is any.
func (c *FakeCephObjectStores) Update(ctx context.Context, cephObjectStore *v1.CephObjectStore, opts metav1.UpdateOptions) (result *v1.CephObjectStore, err error) {
emptyResult := &v1.CephObjectStore{}
obj, err := c.Fake.
Invokes(testing.NewUpdateActionWithOptions(cephobjectstoresResource, c.ns, cephObjectStore, opts), emptyResult)
if obj == nil {
return emptyResult, err
}
return obj.(*v1.CephObjectStore), err
}
// Delete takes name of the cephObjectStore and deletes it. Returns an error if one occurs.
func (c *FakeCephObjectStores) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
_, err := c.Fake.
Invokes(testing.NewDeleteActionWithOptions(cephobjectstoresResource, c.ns, name, opts), &v1.CephObjectStore{})
return err
}
// DeleteCollection deletes a collection of objects.
func (c *FakeCephObjectStores) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
action := testing.NewDeleteCollectionActionWithOptions(cephobjectstoresResource, c.ns, opts, listOpts)
_, err := c.Fake.Invokes(action, &v1.CephObjectStoreList{})
return err
}
// Patch applies the patch and returns the patched cephObjectStore.
func (c *FakeCephObjectStores) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.CephObjectStore, err error) {
emptyResult := &v1.CephObjectStore{}
obj, err := c.Fake.
Invokes(testing.NewPatchSubresourceActionWithOptions(cephobjectstoresResource, c.ns, name, pt, data, opts, subresources...), emptyResult)
if obj == nil {
return emptyResult, err
}
return obj.(*v1.CephObjectStore), err
}
@@ -19,116 +19,34 @@ limitations under the License.
package fake
import (
"context"
v1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
labels "k8s.io/apimachinery/pkg/labels"
types "k8s.io/apimachinery/pkg/types"
watch "k8s.io/apimachinery/pkg/watch"
testing "k8s.io/client-go/testing"
cephrookiov1 "github.com/rook/rook/pkg/client/clientset/versioned/typed/ceph.rook.io/v1"
gentype "k8s.io/client-go/gentype"
)
// FakeCephObjectStoreUsers implements CephObjectStoreUserInterface
type FakeCephObjectStoreUsers struct {
// fakeCephObjectStoreUsers implements CephObjectStoreUserInterface
type fakeCephObjectStoreUsers struct {
*gentype.FakeClientWithList[*v1.CephObjectStoreUser, *v1.CephObjectStoreUserList]
Fake *FakeCephV1
ns string
}
var cephobjectstoreusersResource = v1.SchemeGroupVersion.WithResource("cephobjectstoreusers")
var cephobjectstoreusersKind = v1.SchemeGroupVersion.WithKind("CephObjectStoreUser")
// Get takes name of the cephObjectStoreUser, and returns the corresponding cephObjectStoreUser object, and an error if there is any.
func (c *FakeCephObjectStoreUsers) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.CephObjectStoreUser, err error) {
emptyResult := &v1.CephObjectStoreUser{}
obj, err := c.Fake.
Invokes(testing.NewGetActionWithOptions(cephobjectstoreusersResource, c.ns, name, options), emptyResult)
if obj == nil {
return emptyResult, err
func newFakeCephObjectStoreUsers(fake *FakeCephV1, namespace string) cephrookiov1.CephObjectStoreUserInterface {
return &fakeCephObjectStoreUsers{
gentype.NewFakeClientWithList[*v1.CephObjectStoreUser, *v1.CephObjectStoreUserList](
fake.Fake,
namespace,
v1.SchemeGroupVersion.WithResource("cephobjectstoreusers"),
v1.SchemeGroupVersion.WithKind("CephObjectStoreUser"),
func() *v1.CephObjectStoreUser { return &v1.CephObjectStoreUser{} },
func() *v1.CephObjectStoreUserList { return &v1.CephObjectStoreUserList{} },
func(dst, src *v1.CephObjectStoreUserList) { dst.ListMeta = src.ListMeta },
func(list *v1.CephObjectStoreUserList) []*v1.CephObjectStoreUser {
return gentype.ToPointerSlice(list.Items)
},
func(list *v1.CephObjectStoreUserList, items []*v1.CephObjectStoreUser) {
list.Items = gentype.FromPointerSlice(items)
},
),
fake,
}
return obj.(*v1.CephObjectStoreUser), err
}
// List takes label and field selectors, and returns the list of CephObjectStoreUsers that match those selectors.
func (c *FakeCephObjectStoreUsers) List(ctx context.Context, opts metav1.ListOptions) (result *v1.CephObjectStoreUserList, err error) {
emptyResult := &v1.CephObjectStoreUserList{}
obj, err := c.Fake.
Invokes(testing.NewListActionWithOptions(cephobjectstoreusersResource, cephobjectstoreusersKind, c.ns, opts), emptyResult)
if obj == nil {
return emptyResult, err
}
label, _, _ := testing.ExtractFromListOptions(opts)
if label == nil {
label = labels.Everything()
}
list := &v1.CephObjectStoreUserList{ListMeta: obj.(*v1.CephObjectStoreUserList).ListMeta}
for _, item := range obj.(*v1.CephObjectStoreUserList).Items {
if label.Matches(labels.Set(item.Labels)) {
list.Items = append(list.Items, item)
}
}
return list, err
}
// Watch returns a watch.Interface that watches the requested cephObjectStoreUsers.
func (c *FakeCephObjectStoreUsers) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
return c.Fake.
InvokesWatch(testing.NewWatchActionWithOptions(cephobjectstoreusersResource, c.ns, opts))
}
// Create takes the representation of a cephObjectStoreUser and creates it. Returns the server's representation of the cephObjectStoreUser, and an error, if there is any.
func (c *FakeCephObjectStoreUsers) Create(ctx context.Context, cephObjectStoreUser *v1.CephObjectStoreUser, opts metav1.CreateOptions) (result *v1.CephObjectStoreUser, err error) {
emptyResult := &v1.CephObjectStoreUser{}
obj, err := c.Fake.
Invokes(testing.NewCreateActionWithOptions(cephobjectstoreusersResource, c.ns, cephObjectStoreUser, opts), emptyResult)
if obj == nil {
return emptyResult, err
}
return obj.(*v1.CephObjectStoreUser), err
}
// Update takes the representation of a cephObjectStoreUser and updates it. Returns the server's representation of the cephObjectStoreUser, and an error, if there is any.
func (c *FakeCephObjectStoreUsers) Update(ctx context.Context, cephObjectStoreUser *v1.CephObjectStoreUser, opts metav1.UpdateOptions) (result *v1.CephObjectStoreUser, err error) {
emptyResult := &v1.CephObjectStoreUser{}
obj, err := c.Fake.
Invokes(testing.NewUpdateActionWithOptions(cephobjectstoreusersResource, c.ns, cephObjectStoreUser, opts), emptyResult)
if obj == nil {
return emptyResult, err
}
return obj.(*v1.CephObjectStoreUser), err
}
// Delete takes name of the cephObjectStoreUser and deletes it. Returns an error if one occurs.
func (c *FakeCephObjectStoreUsers) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
_, err := c.Fake.
Invokes(testing.NewDeleteActionWithOptions(cephobjectstoreusersResource, c.ns, name, opts), &v1.CephObjectStoreUser{})
return err
}
// DeleteCollection deletes a collection of objects.
func (c *FakeCephObjectStoreUsers) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
action := testing.NewDeleteCollectionActionWithOptions(cephobjectstoreusersResource, c.ns, opts, listOpts)
_, err := c.Fake.Invokes(action, &v1.CephObjectStoreUserList{})
return err
}
// Patch applies the patch and returns the patched cephObjectStoreUser.
func (c *FakeCephObjectStoreUsers) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.CephObjectStoreUser, err error) {
emptyResult := &v1.CephObjectStoreUser{}
obj, err := c.Fake.
Invokes(testing.NewPatchSubresourceActionWithOptions(cephobjectstoreusersResource, c.ns, name, pt, data, opts, subresources...), emptyResult)
if obj == nil {
return emptyResult, err
}
return obj.(*v1.CephObjectStoreUser), err
}
@@ -19,116 +19,32 @@ limitations under the License.
package fake
import (
"context"
v1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
labels "k8s.io/apimachinery/pkg/labels"
types "k8s.io/apimachinery/pkg/types"
watch "k8s.io/apimachinery/pkg/watch"
testing "k8s.io/client-go/testing"
cephrookiov1 "github.com/rook/rook/pkg/client/clientset/versioned/typed/ceph.rook.io/v1"
gentype "k8s.io/client-go/gentype"
)
// FakeCephObjectZones implements CephObjectZoneInterface
type FakeCephObjectZones struct {
// fakeCephObjectZones implements CephObjectZoneInterface
type fakeCephObjectZones struct {
*gentype.FakeClientWithList[*v1.CephObjectZone, *v1.CephObjectZoneList]
Fake *FakeCephV1
ns string
}
var cephobjectzonesResource = v1.SchemeGroupVersion.WithResource("cephobjectzones")
var cephobjectzonesKind = v1.SchemeGroupVersion.WithKind("CephObjectZone")
// Get takes name of the cephObjectZone, and returns the corresponding cephObjectZone object, and an error if there is any.
func (c *FakeCephObjectZones) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.CephObjectZone, err error) {
emptyResult := &v1.CephObjectZone{}
obj, err := c.Fake.
Invokes(testing.NewGetActionWithOptions(cephobjectzonesResource, c.ns, name, options), emptyResult)
if obj == nil {
return emptyResult, err
func newFakeCephObjectZones(fake *FakeCephV1, namespace string) cephrookiov1.CephObjectZoneInterface {
return &fakeCephObjectZones{
gentype.NewFakeClientWithList[*v1.CephObjectZone, *v1.CephObjectZoneList](
fake.Fake,
namespace,
v1.SchemeGroupVersion.WithResource("cephobjectzones"),
v1.SchemeGroupVersion.WithKind("CephObjectZone"),
func() *v1.CephObjectZone { return &v1.CephObjectZone{} },
func() *v1.CephObjectZoneList { return &v1.CephObjectZoneList{} },
func(dst, src *v1.CephObjectZoneList) { dst.ListMeta = src.ListMeta },
func(list *v1.CephObjectZoneList) []*v1.CephObjectZone { return gentype.ToPointerSlice(list.Items) },
func(list *v1.CephObjectZoneList, items []*v1.CephObjectZone) {
list.Items = gentype.FromPointerSlice(items)
},
),
fake,
}
return obj.(*v1.CephObjectZone), err
}
// List takes label and field selectors, and returns the list of CephObjectZones that match those selectors.
func (c *FakeCephObjectZones) List(ctx context.Context, opts metav1.ListOptions) (result *v1.CephObjectZoneList, err error) {
emptyResult := &v1.CephObjectZoneList{}
obj, err := c.Fake.
Invokes(testing.NewListActionWithOptions(cephobjectzonesResource, cephobjectzonesKind, c.ns, opts), emptyResult)
if obj == nil {
return emptyResult, err
}
label, _, _ := testing.ExtractFromListOptions(opts)
if label == nil {
label = labels.Everything()
}
list := &v1.CephObjectZoneList{ListMeta: obj.(*v1.CephObjectZoneList).ListMeta}
for _, item := range obj.(*v1.CephObjectZoneList).Items {
if label.Matches(labels.Set(item.Labels)) {
list.Items = append(list.Items, item)
}
}
return list, err
}
// Watch returns a watch.Interface that watches the requested cephObjectZones.
func (c *FakeCephObjectZones) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
return c.Fake.
InvokesWatch(testing.NewWatchActionWithOptions(cephobjectzonesResource, c.ns, opts))
}
// Create takes the representation of a cephObjectZone and creates it. Returns the server's representation of the cephObjectZone, and an error, if there is any.
func (c *FakeCephObjectZones) Create(ctx context.Context, cephObjectZone *v1.CephObjectZone, opts metav1.CreateOptions) (result *v1.CephObjectZone, err error) {
emptyResult := &v1.CephObjectZone{}
obj, err := c.Fake.
Invokes(testing.NewCreateActionWithOptions(cephobjectzonesResource, c.ns, cephObjectZone, opts), emptyResult)
if obj == nil {
return emptyResult, err
}
return obj.(*v1.CephObjectZone), err
}
// Update takes the representation of a cephObjectZone and updates it. Returns the server's representation of the cephObjectZone, and an error, if there is any.
func (c *FakeCephObjectZones) Update(ctx context.Context, cephObjectZone *v1.CephObjectZone, opts metav1.UpdateOptions) (result *v1.CephObjectZone, err error) {
emptyResult := &v1.CephObjectZone{}
obj, err := c.Fake.
Invokes(testing.NewUpdateActionWithOptions(cephobjectzonesResource, c.ns, cephObjectZone, opts), emptyResult)
if obj == nil {
return emptyResult, err
}
return obj.(*v1.CephObjectZone), err
}
// Delete takes name of the cephObjectZone and deletes it. Returns an error if one occurs.
func (c *FakeCephObjectZones) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
_, err := c.Fake.
Invokes(testing.NewDeleteActionWithOptions(cephobjectzonesResource, c.ns, name, opts), &v1.CephObjectZone{})
return err
}
// DeleteCollection deletes a collection of objects.
func (c *FakeCephObjectZones) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
action := testing.NewDeleteCollectionActionWithOptions(cephobjectzonesResource, c.ns, opts, listOpts)
_, err := c.Fake.Invokes(action, &v1.CephObjectZoneList{})
return err
}
// Patch applies the patch and returns the patched cephObjectZone.
func (c *FakeCephObjectZones) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.CephObjectZone, err error) {
emptyResult := &v1.CephObjectZone{}
obj, err := c.Fake.
Invokes(testing.NewPatchSubresourceActionWithOptions(cephobjectzonesResource, c.ns, name, pt, data, opts, subresources...), emptyResult)
if obj == nil {
return emptyResult, err
}
return obj.(*v1.CephObjectZone), err
}
@@ -19,116 +19,34 @@ limitations under the License.
package fake
import (
"context"
v1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
labels "k8s.io/apimachinery/pkg/labels"
types "k8s.io/apimachinery/pkg/types"
watch "k8s.io/apimachinery/pkg/watch"
testing "k8s.io/client-go/testing"
cephrookiov1 "github.com/rook/rook/pkg/client/clientset/versioned/typed/ceph.rook.io/v1"
gentype "k8s.io/client-go/gentype"
)
// FakeCephObjectZoneGroups implements CephObjectZoneGroupInterface
type FakeCephObjectZoneGroups struct {
// fakeCephObjectZoneGroups implements CephObjectZoneGroupInterface
type fakeCephObjectZoneGroups struct {
*gentype.FakeClientWithList[*v1.CephObjectZoneGroup, *v1.CephObjectZoneGroupList]
Fake *FakeCephV1
ns string
}
var cephobjectzonegroupsResource = v1.SchemeGroupVersion.WithResource("cephobjectzonegroups")
var cephobjectzonegroupsKind = v1.SchemeGroupVersion.WithKind("CephObjectZoneGroup")
// Get takes name of the cephObjectZoneGroup, and returns the corresponding cephObjectZoneGroup object, and an error if there is any.
func (c *FakeCephObjectZoneGroups) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.CephObjectZoneGroup, err error) {
emptyResult := &v1.CephObjectZoneGroup{}
obj, err := c.Fake.
Invokes(testing.NewGetActionWithOptions(cephobjectzonegroupsResource, c.ns, name, options), emptyResult)
if obj == nil {
return emptyResult, err
func newFakeCephObjectZoneGroups(fake *FakeCephV1, namespace string) cephrookiov1.CephObjectZoneGroupInterface {
return &fakeCephObjectZoneGroups{
gentype.NewFakeClientWithList[*v1.CephObjectZoneGroup, *v1.CephObjectZoneGroupList](
fake.Fake,
namespace,
v1.SchemeGroupVersion.WithResource("cephobjectzonegroups"),
v1.SchemeGroupVersion.WithKind("CephObjectZoneGroup"),
func() *v1.CephObjectZoneGroup { return &v1.CephObjectZoneGroup{} },
func() *v1.CephObjectZoneGroupList { return &v1.CephObjectZoneGroupList{} },
func(dst, src *v1.CephObjectZoneGroupList) { dst.ListMeta = src.ListMeta },
func(list *v1.CephObjectZoneGroupList) []*v1.CephObjectZoneGroup {
return gentype.ToPointerSlice(list.Items)
},
func(list *v1.CephObjectZoneGroupList, items []*v1.CephObjectZoneGroup) {
list.Items = gentype.FromPointerSlice(items)
},
),
fake,
}
return obj.(*v1.CephObjectZoneGroup), err
}
// List takes label and field selectors, and returns the list of CephObjectZoneGroups that match those selectors.
func (c *FakeCephObjectZoneGroups) List(ctx context.Context, opts metav1.ListOptions) (result *v1.CephObjectZoneGroupList, err error) {
emptyResult := &v1.CephObjectZoneGroupList{}
obj, err := c.Fake.
Invokes(testing.NewListActionWithOptions(cephobjectzonegroupsResource, cephobjectzonegroupsKind, c.ns, opts), emptyResult)
if obj == nil {
return emptyResult, err
}
label, _, _ := testing.ExtractFromListOptions(opts)
if label == nil {
label = labels.Everything()
}
list := &v1.CephObjectZoneGroupList{ListMeta: obj.(*v1.CephObjectZoneGroupList).ListMeta}
for _, item := range obj.(*v1.CephObjectZoneGroupList).Items {
if label.Matches(labels.Set(item.Labels)) {
list.Items = append(list.Items, item)
}
}
return list, err
}
// Watch returns a watch.Interface that watches the requested cephObjectZoneGroups.
func (c *FakeCephObjectZoneGroups) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
return c.Fake.
InvokesWatch(testing.NewWatchActionWithOptions(cephobjectzonegroupsResource, c.ns, opts))
}
// Create takes the representation of a cephObjectZoneGroup and creates it. Returns the server's representation of the cephObjectZoneGroup, and an error, if there is any.
func (c *FakeCephObjectZoneGroups) Create(ctx context.Context, cephObjectZoneGroup *v1.CephObjectZoneGroup, opts metav1.CreateOptions) (result *v1.CephObjectZoneGroup, err error) {
emptyResult := &v1.CephObjectZoneGroup{}
obj, err := c.Fake.
Invokes(testing.NewCreateActionWithOptions(cephobjectzonegroupsResource, c.ns, cephObjectZoneGroup, opts), emptyResult)
if obj == nil {
return emptyResult, err
}
return obj.(*v1.CephObjectZoneGroup), err
}
// Update takes the representation of a cephObjectZoneGroup and updates it. Returns the server's representation of the cephObjectZoneGroup, and an error, if there is any.
func (c *FakeCephObjectZoneGroups) Update(ctx context.Context, cephObjectZoneGroup *v1.CephObjectZoneGroup, opts metav1.UpdateOptions) (result *v1.CephObjectZoneGroup, err error) {
emptyResult := &v1.CephObjectZoneGroup{}
obj, err := c.Fake.
Invokes(testing.NewUpdateActionWithOptions(cephobjectzonegroupsResource, c.ns, cephObjectZoneGroup, opts), emptyResult)
if obj == nil {
return emptyResult, err
}
return obj.(*v1.CephObjectZoneGroup), err
}
// Delete takes name of the cephObjectZoneGroup and deletes it. Returns an error if one occurs.
func (c *FakeCephObjectZoneGroups) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
_, err := c.Fake.
Invokes(testing.NewDeleteActionWithOptions(cephobjectzonegroupsResource, c.ns, name, opts), &v1.CephObjectZoneGroup{})
return err
}
// DeleteCollection deletes a collection of objects.
func (c *FakeCephObjectZoneGroups) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
action := testing.NewDeleteCollectionActionWithOptions(cephobjectzonegroupsResource, c.ns, opts, listOpts)
_, err := c.Fake.Invokes(action, &v1.CephObjectZoneGroupList{})
return err
}
// Patch applies the patch and returns the patched cephObjectZoneGroup.
func (c *FakeCephObjectZoneGroups) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.CephObjectZoneGroup, err error) {
emptyResult := &v1.CephObjectZoneGroup{}
obj, err := c.Fake.
Invokes(testing.NewPatchSubresourceActionWithOptions(cephobjectzonegroupsResource, c.ns, name, pt, data, opts, subresources...), emptyResult)
if obj == nil {
return emptyResult, err
}
return obj.(*v1.CephObjectZoneGroup), err
}
@@ -19,116 +19,32 @@ limitations under the License.
package fake
import (
"context"
v1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
labels "k8s.io/apimachinery/pkg/labels"
types "k8s.io/apimachinery/pkg/types"
watch "k8s.io/apimachinery/pkg/watch"
testing "k8s.io/client-go/testing"
cephrookiov1 "github.com/rook/rook/pkg/client/clientset/versioned/typed/ceph.rook.io/v1"
gentype "k8s.io/client-go/gentype"
)
// FakeCephRBDMirrors implements CephRBDMirrorInterface
type FakeCephRBDMirrors struct {
// fakeCephRBDMirrors implements CephRBDMirrorInterface
type fakeCephRBDMirrors struct {
*gentype.FakeClientWithList[*v1.CephRBDMirror, *v1.CephRBDMirrorList]
Fake *FakeCephV1
ns string
}
var cephrbdmirrorsResource = v1.SchemeGroupVersion.WithResource("cephrbdmirrors")
var cephrbdmirrorsKind = v1.SchemeGroupVersion.WithKind("CephRBDMirror")
// Get takes name of the cephRBDMirror, and returns the corresponding cephRBDMirror object, and an error if there is any.
func (c *FakeCephRBDMirrors) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.CephRBDMirror, err error) {
emptyResult := &v1.CephRBDMirror{}
obj, err := c.Fake.
Invokes(testing.NewGetActionWithOptions(cephrbdmirrorsResource, c.ns, name, options), emptyResult)
if obj == nil {
return emptyResult, err
func newFakeCephRBDMirrors(fake *FakeCephV1, namespace string) cephrookiov1.CephRBDMirrorInterface {
return &fakeCephRBDMirrors{
gentype.NewFakeClientWithList[*v1.CephRBDMirror, *v1.CephRBDMirrorList](
fake.Fake,
namespace,
v1.SchemeGroupVersion.WithResource("cephrbdmirrors"),
v1.SchemeGroupVersion.WithKind("CephRBDMirror"),
func() *v1.CephRBDMirror { return &v1.CephRBDMirror{} },
func() *v1.CephRBDMirrorList { return &v1.CephRBDMirrorList{} },
func(dst, src *v1.CephRBDMirrorList) { dst.ListMeta = src.ListMeta },
func(list *v1.CephRBDMirrorList) []*v1.CephRBDMirror { return gentype.ToPointerSlice(list.Items) },
func(list *v1.CephRBDMirrorList, items []*v1.CephRBDMirror) {
list.Items = gentype.FromPointerSlice(items)
},
),
fake,
}
return obj.(*v1.CephRBDMirror), err
}
// List takes label and field selectors, and returns the list of CephRBDMirrors that match those selectors.
func (c *FakeCephRBDMirrors) List(ctx context.Context, opts metav1.ListOptions) (result *v1.CephRBDMirrorList, err error) {
emptyResult := &v1.CephRBDMirrorList{}
obj, err := c.Fake.
Invokes(testing.NewListActionWithOptions(cephrbdmirrorsResource, cephrbdmirrorsKind, c.ns, opts), emptyResult)
if obj == nil {
return emptyResult, err
}
label, _, _ := testing.ExtractFromListOptions(opts)
if label == nil {
label = labels.Everything()
}
list := &v1.CephRBDMirrorList{ListMeta: obj.(*v1.CephRBDMirrorList).ListMeta}
for _, item := range obj.(*v1.CephRBDMirrorList).Items {
if label.Matches(labels.Set(item.Labels)) {
list.Items = append(list.Items, item)
}
}
return list, err
}
// Watch returns a watch.Interface that watches the requested cephRBDMirrors.
func (c *FakeCephRBDMirrors) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error) {
return c.Fake.
InvokesWatch(testing.NewWatchActionWithOptions(cephrbdmirrorsResource, c.ns, opts))
}
// Create takes the representation of a cephRBDMirror and creates it. Returns the server's representation of the cephRBDMirror, and an error, if there is any.
func (c *FakeCephRBDMirrors) Create(ctx context.Context, cephRBDMirror *v1.CephRBDMirror, opts metav1.CreateOptions) (result *v1.CephRBDMirror, err error) {
emptyResult := &v1.CephRBDMirror{}
obj, err := c.Fake.
Invokes(testing.NewCreateActionWithOptions(cephrbdmirrorsResource, c.ns, cephRBDMirror, opts), emptyResult)
if obj == nil {
return emptyResult, err
}
return obj.(*v1.CephRBDMirror), err
}
// Update takes the representation of a cephRBDMirror and updates it. Returns the server's representation of the cephRBDMirror, and an error, if there is any.
func (c *FakeCephRBDMirrors) Update(ctx context.Context, cephRBDMirror *v1.CephRBDMirror, opts metav1.UpdateOptions) (result *v1.CephRBDMirror, err error) {
emptyResult := &v1.CephRBDMirror{}
obj, err := c.Fake.
Invokes(testing.NewUpdateActionWithOptions(cephrbdmirrorsResource, c.ns, cephRBDMirror, opts), emptyResult)
if obj == nil {
return emptyResult, err
}
return obj.(*v1.CephRBDMirror), err
}
// Delete takes name of the cephRBDMirror and deletes it. Returns an error if one occurs.
func (c *FakeCephRBDMirrors) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error {
_, err := c.Fake.
Invokes(testing.NewDeleteActionWithOptions(cephrbdmirrorsResource, c.ns, name, opts), &v1.CephRBDMirror{})
return err
}
// DeleteCollection deletes a collection of objects.
func (c *FakeCephRBDMirrors) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error {
action := testing.NewDeleteCollectionActionWithOptions(cephrbdmirrorsResource, c.ns, opts, listOpts)
_, err := c.Fake.Invokes(action, &v1.CephRBDMirrorList{})
return err
}
// Patch applies the patch and returns the patched cephRBDMirror.
func (c *FakeCephRBDMirrors) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.CephRBDMirror, err error) {
emptyResult := &v1.CephRBDMirror{}
obj, err := c.Fake.
Invokes(testing.NewPatchSubresourceActionWithOptions(cephrbdmirrorsResource, c.ns, name, pt, data, opts, subresources...), emptyResult)
if obj == nil {
return emptyResult, err
}
return obj.(*v1.CephRBDMirror), err
}
@@ -19,13 +19,13 @@ limitations under the License.
package v1
import (
"context"
context "context"
time "time"
cephrookiov1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
apiscephrookiov1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
versioned "github.com/rook/rook/pkg/client/clientset/versioned"
internalinterfaces "github.com/rook/rook/pkg/client/informers/externalversions/internalinterfaces"
v1 "github.com/rook/rook/pkg/client/listers/ceph.rook.io/v1"
cephrookiov1 "github.com/rook/rook/pkg/client/listers/ceph.rook.io/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -36,7 +36,7 @@ import (
// CephBlockPools.
type CephBlockPoolInformer interface {
Informer() cache.SharedIndexInformer
Lister() v1.CephBlockPoolLister
Lister() cephrookiov1.CephBlockPoolLister
}
type cephBlockPoolInformer struct {
@@ -62,16 +62,28 @@ func NewFilteredCephBlockPoolInformer(client versioned.Interface, namespace stri
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.CephV1().CephBlockPools(namespace).List(context.TODO(), options)
return client.CephV1().CephBlockPools(namespace).List(context.Background(), options)
},
WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) {
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.CephV1().CephBlockPools(namespace).Watch(context.TODO(), options)
return client.CephV1().CephBlockPools(namespace).Watch(context.Background(), options)
},
ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) {
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.CephV1().CephBlockPools(namespace).List(ctx, options)
},
WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) {
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.CephV1().CephBlockPools(namespace).Watch(ctx, options)
},
},
&cephrookiov1.CephBlockPool{},
&apiscephrookiov1.CephBlockPool{},
resyncPeriod,
indexers,
)
@@ -82,9 +94,9 @@ func (f *cephBlockPoolInformer) defaultInformer(client versioned.Interface, resy
}
func (f *cephBlockPoolInformer) Informer() cache.SharedIndexInformer {
return f.factory.InformerFor(&cephrookiov1.CephBlockPool{}, f.defaultInformer)
return f.factory.InformerFor(&apiscephrookiov1.CephBlockPool{}, f.defaultInformer)
}
func (f *cephBlockPoolInformer) Lister() v1.CephBlockPoolLister {
return v1.NewCephBlockPoolLister(f.Informer().GetIndexer())
func (f *cephBlockPoolInformer) Lister() cephrookiov1.CephBlockPoolLister {
return cephrookiov1.NewCephBlockPoolLister(f.Informer().GetIndexer())
}
@@ -19,13 +19,13 @@ limitations under the License.
package v1
import (
"context"
context "context"
time "time"
cephrookiov1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
apiscephrookiov1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
versioned "github.com/rook/rook/pkg/client/clientset/versioned"
internalinterfaces "github.com/rook/rook/pkg/client/informers/externalversions/internalinterfaces"
v1 "github.com/rook/rook/pkg/client/listers/ceph.rook.io/v1"
cephrookiov1 "github.com/rook/rook/pkg/client/listers/ceph.rook.io/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -36,7 +36,7 @@ import (
// CephBlockPoolRadosNamespaces.
type CephBlockPoolRadosNamespaceInformer interface {
Informer() cache.SharedIndexInformer
Lister() v1.CephBlockPoolRadosNamespaceLister
Lister() cephrookiov1.CephBlockPoolRadosNamespaceLister
}
type cephBlockPoolRadosNamespaceInformer struct {
@@ -62,16 +62,28 @@ func NewFilteredCephBlockPoolRadosNamespaceInformer(client versioned.Interface,
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.CephV1().CephBlockPoolRadosNamespaces(namespace).List(context.TODO(), options)
return client.CephV1().CephBlockPoolRadosNamespaces(namespace).List(context.Background(), options)
},
WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) {
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.CephV1().CephBlockPoolRadosNamespaces(namespace).Watch(context.TODO(), options)
return client.CephV1().CephBlockPoolRadosNamespaces(namespace).Watch(context.Background(), options)
},
ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) {
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.CephV1().CephBlockPoolRadosNamespaces(namespace).List(ctx, options)
},
WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) {
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.CephV1().CephBlockPoolRadosNamespaces(namespace).Watch(ctx, options)
},
},
&cephrookiov1.CephBlockPoolRadosNamespace{},
&apiscephrookiov1.CephBlockPoolRadosNamespace{},
resyncPeriod,
indexers,
)
@@ -82,9 +94,9 @@ func (f *cephBlockPoolRadosNamespaceInformer) defaultInformer(client versioned.I
}
func (f *cephBlockPoolRadosNamespaceInformer) Informer() cache.SharedIndexInformer {
return f.factory.InformerFor(&cephrookiov1.CephBlockPoolRadosNamespace{}, f.defaultInformer)
return f.factory.InformerFor(&apiscephrookiov1.CephBlockPoolRadosNamespace{}, f.defaultInformer)
}
func (f *cephBlockPoolRadosNamespaceInformer) Lister() v1.CephBlockPoolRadosNamespaceLister {
return v1.NewCephBlockPoolRadosNamespaceLister(f.Informer().GetIndexer())
func (f *cephBlockPoolRadosNamespaceInformer) Lister() cephrookiov1.CephBlockPoolRadosNamespaceLister {
return cephrookiov1.NewCephBlockPoolRadosNamespaceLister(f.Informer().GetIndexer())
}
@@ -19,13 +19,13 @@ limitations under the License.
package v1
import (
"context"
context "context"
time "time"
cephrookiov1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
apiscephrookiov1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
versioned "github.com/rook/rook/pkg/client/clientset/versioned"
internalinterfaces "github.com/rook/rook/pkg/client/informers/externalversions/internalinterfaces"
v1 "github.com/rook/rook/pkg/client/listers/ceph.rook.io/v1"
cephrookiov1 "github.com/rook/rook/pkg/client/listers/ceph.rook.io/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -36,7 +36,7 @@ import (
// CephBucketNotifications.
type CephBucketNotificationInformer interface {
Informer() cache.SharedIndexInformer
Lister() v1.CephBucketNotificationLister
Lister() cephrookiov1.CephBucketNotificationLister
}
type cephBucketNotificationInformer struct {
@@ -62,16 +62,28 @@ func NewFilteredCephBucketNotificationInformer(client versioned.Interface, names
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.CephV1().CephBucketNotifications(namespace).List(context.TODO(), options)
return client.CephV1().CephBucketNotifications(namespace).List(context.Background(), options)
},
WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) {
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.CephV1().CephBucketNotifications(namespace).Watch(context.TODO(), options)
return client.CephV1().CephBucketNotifications(namespace).Watch(context.Background(), options)
},
ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) {
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.CephV1().CephBucketNotifications(namespace).List(ctx, options)
},
WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) {
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.CephV1().CephBucketNotifications(namespace).Watch(ctx, options)
},
},
&cephrookiov1.CephBucketNotification{},
&apiscephrookiov1.CephBucketNotification{},
resyncPeriod,
indexers,
)
@@ -82,9 +94,9 @@ func (f *cephBucketNotificationInformer) defaultInformer(client versioned.Interf
}
func (f *cephBucketNotificationInformer) Informer() cache.SharedIndexInformer {
return f.factory.InformerFor(&cephrookiov1.CephBucketNotification{}, f.defaultInformer)
return f.factory.InformerFor(&apiscephrookiov1.CephBucketNotification{}, f.defaultInformer)
}
func (f *cephBucketNotificationInformer) Lister() v1.CephBucketNotificationLister {
return v1.NewCephBucketNotificationLister(f.Informer().GetIndexer())
func (f *cephBucketNotificationInformer) Lister() cephrookiov1.CephBucketNotificationLister {
return cephrookiov1.NewCephBucketNotificationLister(f.Informer().GetIndexer())
}
@@ -19,13 +19,13 @@ limitations under the License.
package v1
import (
"context"
context "context"
time "time"
cephrookiov1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
apiscephrookiov1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
versioned "github.com/rook/rook/pkg/client/clientset/versioned"
internalinterfaces "github.com/rook/rook/pkg/client/informers/externalversions/internalinterfaces"
v1 "github.com/rook/rook/pkg/client/listers/ceph.rook.io/v1"
cephrookiov1 "github.com/rook/rook/pkg/client/listers/ceph.rook.io/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -36,7 +36,7 @@ import (
// CephBucketTopics.
type CephBucketTopicInformer interface {
Informer() cache.SharedIndexInformer
Lister() v1.CephBucketTopicLister
Lister() cephrookiov1.CephBucketTopicLister
}
type cephBucketTopicInformer struct {
@@ -62,16 +62,28 @@ func NewFilteredCephBucketTopicInformer(client versioned.Interface, namespace st
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.CephV1().CephBucketTopics(namespace).List(context.TODO(), options)
return client.CephV1().CephBucketTopics(namespace).List(context.Background(), options)
},
WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) {
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.CephV1().CephBucketTopics(namespace).Watch(context.TODO(), options)
return client.CephV1().CephBucketTopics(namespace).Watch(context.Background(), options)
},
ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) {
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.CephV1().CephBucketTopics(namespace).List(ctx, options)
},
WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) {
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.CephV1().CephBucketTopics(namespace).Watch(ctx, options)
},
},
&cephrookiov1.CephBucketTopic{},
&apiscephrookiov1.CephBucketTopic{},
resyncPeriod,
indexers,
)
@@ -82,9 +94,9 @@ func (f *cephBucketTopicInformer) defaultInformer(client versioned.Interface, re
}
func (f *cephBucketTopicInformer) Informer() cache.SharedIndexInformer {
return f.factory.InformerFor(&cephrookiov1.CephBucketTopic{}, f.defaultInformer)
return f.factory.InformerFor(&apiscephrookiov1.CephBucketTopic{}, f.defaultInformer)
}
func (f *cephBucketTopicInformer) Lister() v1.CephBucketTopicLister {
return v1.NewCephBucketTopicLister(f.Informer().GetIndexer())
func (f *cephBucketTopicInformer) Lister() cephrookiov1.CephBucketTopicLister {
return cephrookiov1.NewCephBucketTopicLister(f.Informer().GetIndexer())
}
@@ -19,13 +19,13 @@ limitations under the License.
package v1
import (
"context"
context "context"
time "time"
cephrookiov1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
apiscephrookiov1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
versioned "github.com/rook/rook/pkg/client/clientset/versioned"
internalinterfaces "github.com/rook/rook/pkg/client/informers/externalversions/internalinterfaces"
v1 "github.com/rook/rook/pkg/client/listers/ceph.rook.io/v1"
cephrookiov1 "github.com/rook/rook/pkg/client/listers/ceph.rook.io/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -36,7 +36,7 @@ import (
// CephClients.
type CephClientInformer interface {
Informer() cache.SharedIndexInformer
Lister() v1.CephClientLister
Lister() cephrookiov1.CephClientLister
}
type cephClientInformer struct {
@@ -62,16 +62,28 @@ func NewFilteredCephClientInformer(client versioned.Interface, namespace string,
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.CephV1().CephClients(namespace).List(context.TODO(), options)
return client.CephV1().CephClients(namespace).List(context.Background(), options)
},
WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) {
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.CephV1().CephClients(namespace).Watch(context.TODO(), options)
return client.CephV1().CephClients(namespace).Watch(context.Background(), options)
},
ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) {
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.CephV1().CephClients(namespace).List(ctx, options)
},
WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) {
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.CephV1().CephClients(namespace).Watch(ctx, options)
},
},
&cephrookiov1.CephClient{},
&apiscephrookiov1.CephClient{},
resyncPeriod,
indexers,
)
@@ -82,9 +94,9 @@ func (f *cephClientInformer) defaultInformer(client versioned.Interface, resyncP
}
func (f *cephClientInformer) Informer() cache.SharedIndexInformer {
return f.factory.InformerFor(&cephrookiov1.CephClient{}, f.defaultInformer)
return f.factory.InformerFor(&apiscephrookiov1.CephClient{}, f.defaultInformer)
}
func (f *cephClientInformer) Lister() v1.CephClientLister {
return v1.NewCephClientLister(f.Informer().GetIndexer())
func (f *cephClientInformer) Lister() cephrookiov1.CephClientLister {
return cephrookiov1.NewCephClientLister(f.Informer().GetIndexer())
}
@@ -19,13 +19,13 @@ limitations under the License.
package v1
import (
"context"
context "context"
time "time"
cephrookiov1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
apiscephrookiov1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
versioned "github.com/rook/rook/pkg/client/clientset/versioned"
internalinterfaces "github.com/rook/rook/pkg/client/informers/externalversions/internalinterfaces"
v1 "github.com/rook/rook/pkg/client/listers/ceph.rook.io/v1"
cephrookiov1 "github.com/rook/rook/pkg/client/listers/ceph.rook.io/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -36,7 +36,7 @@ import (
// CephClusters.
type CephClusterInformer interface {
Informer() cache.SharedIndexInformer
Lister() v1.CephClusterLister
Lister() cephrookiov1.CephClusterLister
}
type cephClusterInformer struct {
@@ -62,16 +62,28 @@ func NewFilteredCephClusterInformer(client versioned.Interface, namespace string
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.CephV1().CephClusters(namespace).List(context.TODO(), options)
return client.CephV1().CephClusters(namespace).List(context.Background(), options)
},
WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) {
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.CephV1().CephClusters(namespace).Watch(context.TODO(), options)
return client.CephV1().CephClusters(namespace).Watch(context.Background(), options)
},
ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) {
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.CephV1().CephClusters(namespace).List(ctx, options)
},
WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) {
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.CephV1().CephClusters(namespace).Watch(ctx, options)
},
},
&cephrookiov1.CephCluster{},
&apiscephrookiov1.CephCluster{},
resyncPeriod,
indexers,
)
@@ -82,9 +94,9 @@ func (f *cephClusterInformer) defaultInformer(client versioned.Interface, resync
}
func (f *cephClusterInformer) Informer() cache.SharedIndexInformer {
return f.factory.InformerFor(&cephrookiov1.CephCluster{}, f.defaultInformer)
return f.factory.InformerFor(&apiscephrookiov1.CephCluster{}, f.defaultInformer)
}
func (f *cephClusterInformer) Lister() v1.CephClusterLister {
return v1.NewCephClusterLister(f.Informer().GetIndexer())
func (f *cephClusterInformer) Lister() cephrookiov1.CephClusterLister {
return cephrookiov1.NewCephClusterLister(f.Informer().GetIndexer())
}
@@ -19,13 +19,13 @@ limitations under the License.
package v1
import (
"context"
context "context"
time "time"
cephrookiov1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
apiscephrookiov1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
versioned "github.com/rook/rook/pkg/client/clientset/versioned"
internalinterfaces "github.com/rook/rook/pkg/client/informers/externalversions/internalinterfaces"
v1 "github.com/rook/rook/pkg/client/listers/ceph.rook.io/v1"
cephrookiov1 "github.com/rook/rook/pkg/client/listers/ceph.rook.io/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -36,7 +36,7 @@ import (
// CephCOSIDrivers.
type CephCOSIDriverInformer interface {
Informer() cache.SharedIndexInformer
Lister() v1.CephCOSIDriverLister
Lister() cephrookiov1.CephCOSIDriverLister
}
type cephCOSIDriverInformer struct {
@@ -62,16 +62,28 @@ func NewFilteredCephCOSIDriverInformer(client versioned.Interface, namespace str
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.CephV1().CephCOSIDrivers(namespace).List(context.TODO(), options)
return client.CephV1().CephCOSIDrivers(namespace).List(context.Background(), options)
},
WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) {
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.CephV1().CephCOSIDrivers(namespace).Watch(context.TODO(), options)
return client.CephV1().CephCOSIDrivers(namespace).Watch(context.Background(), options)
},
ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) {
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.CephV1().CephCOSIDrivers(namespace).List(ctx, options)
},
WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) {
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.CephV1().CephCOSIDrivers(namespace).Watch(ctx, options)
},
},
&cephrookiov1.CephCOSIDriver{},
&apiscephrookiov1.CephCOSIDriver{},
resyncPeriod,
indexers,
)
@@ -82,9 +94,9 @@ func (f *cephCOSIDriverInformer) defaultInformer(client versioned.Interface, res
}
func (f *cephCOSIDriverInformer) Informer() cache.SharedIndexInformer {
return f.factory.InformerFor(&cephrookiov1.CephCOSIDriver{}, f.defaultInformer)
return f.factory.InformerFor(&apiscephrookiov1.CephCOSIDriver{}, f.defaultInformer)
}
func (f *cephCOSIDriverInformer) Lister() v1.CephCOSIDriverLister {
return v1.NewCephCOSIDriverLister(f.Informer().GetIndexer())
func (f *cephCOSIDriverInformer) Lister() cephrookiov1.CephCOSIDriverLister {
return cephrookiov1.NewCephCOSIDriverLister(f.Informer().GetIndexer())
}
@@ -19,13 +19,13 @@ limitations under the License.
package v1
import (
"context"
context "context"
time "time"
cephrookiov1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
apiscephrookiov1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
versioned "github.com/rook/rook/pkg/client/clientset/versioned"
internalinterfaces "github.com/rook/rook/pkg/client/informers/externalversions/internalinterfaces"
v1 "github.com/rook/rook/pkg/client/listers/ceph.rook.io/v1"
cephrookiov1 "github.com/rook/rook/pkg/client/listers/ceph.rook.io/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -36,7 +36,7 @@ import (
// CephFilesystems.
type CephFilesystemInformer interface {
Informer() cache.SharedIndexInformer
Lister() v1.CephFilesystemLister
Lister() cephrookiov1.CephFilesystemLister
}
type cephFilesystemInformer struct {
@@ -62,16 +62,28 @@ func NewFilteredCephFilesystemInformer(client versioned.Interface, namespace str
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.CephV1().CephFilesystems(namespace).List(context.TODO(), options)
return client.CephV1().CephFilesystems(namespace).List(context.Background(), options)
},
WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) {
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.CephV1().CephFilesystems(namespace).Watch(context.TODO(), options)
return client.CephV1().CephFilesystems(namespace).Watch(context.Background(), options)
},
ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) {
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.CephV1().CephFilesystems(namespace).List(ctx, options)
},
WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) {
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.CephV1().CephFilesystems(namespace).Watch(ctx, options)
},
},
&cephrookiov1.CephFilesystem{},
&apiscephrookiov1.CephFilesystem{},
resyncPeriod,
indexers,
)
@@ -82,9 +94,9 @@ func (f *cephFilesystemInformer) defaultInformer(client versioned.Interface, res
}
func (f *cephFilesystemInformer) Informer() cache.SharedIndexInformer {
return f.factory.InformerFor(&cephrookiov1.CephFilesystem{}, f.defaultInformer)
return f.factory.InformerFor(&apiscephrookiov1.CephFilesystem{}, f.defaultInformer)
}
func (f *cephFilesystemInformer) Lister() v1.CephFilesystemLister {
return v1.NewCephFilesystemLister(f.Informer().GetIndexer())
func (f *cephFilesystemInformer) Lister() cephrookiov1.CephFilesystemLister {
return cephrookiov1.NewCephFilesystemLister(f.Informer().GetIndexer())
}
@@ -19,13 +19,13 @@ limitations under the License.
package v1
import (
"context"
context "context"
time "time"
cephrookiov1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
apiscephrookiov1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
versioned "github.com/rook/rook/pkg/client/clientset/versioned"
internalinterfaces "github.com/rook/rook/pkg/client/informers/externalversions/internalinterfaces"
v1 "github.com/rook/rook/pkg/client/listers/ceph.rook.io/v1"
cephrookiov1 "github.com/rook/rook/pkg/client/listers/ceph.rook.io/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -36,7 +36,7 @@ import (
// CephFilesystemMirrors.
type CephFilesystemMirrorInformer interface {
Informer() cache.SharedIndexInformer
Lister() v1.CephFilesystemMirrorLister
Lister() cephrookiov1.CephFilesystemMirrorLister
}
type cephFilesystemMirrorInformer struct {
@@ -62,16 +62,28 @@ func NewFilteredCephFilesystemMirrorInformer(client versioned.Interface, namespa
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.CephV1().CephFilesystemMirrors(namespace).List(context.TODO(), options)
return client.CephV1().CephFilesystemMirrors(namespace).List(context.Background(), options)
},
WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) {
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.CephV1().CephFilesystemMirrors(namespace).Watch(context.TODO(), options)
return client.CephV1().CephFilesystemMirrors(namespace).Watch(context.Background(), options)
},
ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) {
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.CephV1().CephFilesystemMirrors(namespace).List(ctx, options)
},
WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) {
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.CephV1().CephFilesystemMirrors(namespace).Watch(ctx, options)
},
},
&cephrookiov1.CephFilesystemMirror{},
&apiscephrookiov1.CephFilesystemMirror{},
resyncPeriod,
indexers,
)
@@ -82,9 +94,9 @@ func (f *cephFilesystemMirrorInformer) defaultInformer(client versioned.Interfac
}
func (f *cephFilesystemMirrorInformer) Informer() cache.SharedIndexInformer {
return f.factory.InformerFor(&cephrookiov1.CephFilesystemMirror{}, f.defaultInformer)
return f.factory.InformerFor(&apiscephrookiov1.CephFilesystemMirror{}, f.defaultInformer)
}
func (f *cephFilesystemMirrorInformer) Lister() v1.CephFilesystemMirrorLister {
return v1.NewCephFilesystemMirrorLister(f.Informer().GetIndexer())
func (f *cephFilesystemMirrorInformer) Lister() cephrookiov1.CephFilesystemMirrorLister {
return cephrookiov1.NewCephFilesystemMirrorLister(f.Informer().GetIndexer())
}
@@ -19,13 +19,13 @@ limitations under the License.
package v1
import (
"context"
context "context"
time "time"
cephrookiov1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
apiscephrookiov1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
versioned "github.com/rook/rook/pkg/client/clientset/versioned"
internalinterfaces "github.com/rook/rook/pkg/client/informers/externalversions/internalinterfaces"
v1 "github.com/rook/rook/pkg/client/listers/ceph.rook.io/v1"
cephrookiov1 "github.com/rook/rook/pkg/client/listers/ceph.rook.io/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -36,7 +36,7 @@ import (
// CephFilesystemSubVolumeGroups.
type CephFilesystemSubVolumeGroupInformer interface {
Informer() cache.SharedIndexInformer
Lister() v1.CephFilesystemSubVolumeGroupLister
Lister() cephrookiov1.CephFilesystemSubVolumeGroupLister
}
type cephFilesystemSubVolumeGroupInformer struct {
@@ -62,16 +62,28 @@ func NewFilteredCephFilesystemSubVolumeGroupInformer(client versioned.Interface,
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.CephV1().CephFilesystemSubVolumeGroups(namespace).List(context.TODO(), options)
return client.CephV1().CephFilesystemSubVolumeGroups(namespace).List(context.Background(), options)
},
WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) {
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.CephV1().CephFilesystemSubVolumeGroups(namespace).Watch(context.TODO(), options)
return client.CephV1().CephFilesystemSubVolumeGroups(namespace).Watch(context.Background(), options)
},
ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) {
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.CephV1().CephFilesystemSubVolumeGroups(namespace).List(ctx, options)
},
WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) {
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.CephV1().CephFilesystemSubVolumeGroups(namespace).Watch(ctx, options)
},
},
&cephrookiov1.CephFilesystemSubVolumeGroup{},
&apiscephrookiov1.CephFilesystemSubVolumeGroup{},
resyncPeriod,
indexers,
)
@@ -82,9 +94,9 @@ func (f *cephFilesystemSubVolumeGroupInformer) defaultInformer(client versioned.
}
func (f *cephFilesystemSubVolumeGroupInformer) Informer() cache.SharedIndexInformer {
return f.factory.InformerFor(&cephrookiov1.CephFilesystemSubVolumeGroup{}, f.defaultInformer)
return f.factory.InformerFor(&apiscephrookiov1.CephFilesystemSubVolumeGroup{}, f.defaultInformer)
}
func (f *cephFilesystemSubVolumeGroupInformer) Lister() v1.CephFilesystemSubVolumeGroupLister {
return v1.NewCephFilesystemSubVolumeGroupLister(f.Informer().GetIndexer())
func (f *cephFilesystemSubVolumeGroupInformer) Lister() cephrookiov1.CephFilesystemSubVolumeGroupLister {
return cephrookiov1.NewCephFilesystemSubVolumeGroupLister(f.Informer().GetIndexer())
}
@@ -19,13 +19,13 @@ limitations under the License.
package v1
import (
"context"
context "context"
time "time"
cephrookiov1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
apiscephrookiov1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
versioned "github.com/rook/rook/pkg/client/clientset/versioned"
internalinterfaces "github.com/rook/rook/pkg/client/informers/externalversions/internalinterfaces"
v1 "github.com/rook/rook/pkg/client/listers/ceph.rook.io/v1"
cephrookiov1 "github.com/rook/rook/pkg/client/listers/ceph.rook.io/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -36,7 +36,7 @@ import (
// CephNFSes.
type CephNFSInformer interface {
Informer() cache.SharedIndexInformer
Lister() v1.CephNFSLister
Lister() cephrookiov1.CephNFSLister
}
type cephNFSInformer struct {
@@ -62,16 +62,28 @@ func NewFilteredCephNFSInformer(client versioned.Interface, namespace string, re
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.CephV1().CephNFSes(namespace).List(context.TODO(), options)
return client.CephV1().CephNFSes(namespace).List(context.Background(), options)
},
WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) {
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.CephV1().CephNFSes(namespace).Watch(context.TODO(), options)
return client.CephV1().CephNFSes(namespace).Watch(context.Background(), options)
},
ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) {
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.CephV1().CephNFSes(namespace).List(ctx, options)
},
WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) {
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.CephV1().CephNFSes(namespace).Watch(ctx, options)
},
},
&cephrookiov1.CephNFS{},
&apiscephrookiov1.CephNFS{},
resyncPeriod,
indexers,
)
@@ -82,9 +94,9 @@ func (f *cephNFSInformer) defaultInformer(client versioned.Interface, resyncPeri
}
func (f *cephNFSInformer) Informer() cache.SharedIndexInformer {
return f.factory.InformerFor(&cephrookiov1.CephNFS{}, f.defaultInformer)
return f.factory.InformerFor(&apiscephrookiov1.CephNFS{}, f.defaultInformer)
}
func (f *cephNFSInformer) Lister() v1.CephNFSLister {
return v1.NewCephNFSLister(f.Informer().GetIndexer())
func (f *cephNFSInformer) Lister() cephrookiov1.CephNFSLister {
return cephrookiov1.NewCephNFSLister(f.Informer().GetIndexer())
}
@@ -19,13 +19,13 @@ limitations under the License.
package v1
import (
"context"
context "context"
time "time"
cephrookiov1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
apiscephrookiov1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
versioned "github.com/rook/rook/pkg/client/clientset/versioned"
internalinterfaces "github.com/rook/rook/pkg/client/informers/externalversions/internalinterfaces"
v1 "github.com/rook/rook/pkg/client/listers/ceph.rook.io/v1"
cephrookiov1 "github.com/rook/rook/pkg/client/listers/ceph.rook.io/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -36,7 +36,7 @@ import (
// CephObjectRealms.
type CephObjectRealmInformer interface {
Informer() cache.SharedIndexInformer
Lister() v1.CephObjectRealmLister
Lister() cephrookiov1.CephObjectRealmLister
}
type cephObjectRealmInformer struct {
@@ -62,16 +62,28 @@ func NewFilteredCephObjectRealmInformer(client versioned.Interface, namespace st
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.CephV1().CephObjectRealms(namespace).List(context.TODO(), options)
return client.CephV1().CephObjectRealms(namespace).List(context.Background(), options)
},
WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) {
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.CephV1().CephObjectRealms(namespace).Watch(context.TODO(), options)
return client.CephV1().CephObjectRealms(namespace).Watch(context.Background(), options)
},
ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) {
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.CephV1().CephObjectRealms(namespace).List(ctx, options)
},
WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) {
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.CephV1().CephObjectRealms(namespace).Watch(ctx, options)
},
},
&cephrookiov1.CephObjectRealm{},
&apiscephrookiov1.CephObjectRealm{},
resyncPeriod,
indexers,
)
@@ -82,9 +94,9 @@ func (f *cephObjectRealmInformer) defaultInformer(client versioned.Interface, re
}
func (f *cephObjectRealmInformer) Informer() cache.SharedIndexInformer {
return f.factory.InformerFor(&cephrookiov1.CephObjectRealm{}, f.defaultInformer)
return f.factory.InformerFor(&apiscephrookiov1.CephObjectRealm{}, f.defaultInformer)
}
func (f *cephObjectRealmInformer) Lister() v1.CephObjectRealmLister {
return v1.NewCephObjectRealmLister(f.Informer().GetIndexer())
func (f *cephObjectRealmInformer) Lister() cephrookiov1.CephObjectRealmLister {
return cephrookiov1.NewCephObjectRealmLister(f.Informer().GetIndexer())
}
@@ -19,13 +19,13 @@ limitations under the License.
package v1
import (
"context"
context "context"
time "time"
cephrookiov1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
apiscephrookiov1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
versioned "github.com/rook/rook/pkg/client/clientset/versioned"
internalinterfaces "github.com/rook/rook/pkg/client/informers/externalversions/internalinterfaces"
v1 "github.com/rook/rook/pkg/client/listers/ceph.rook.io/v1"
cephrookiov1 "github.com/rook/rook/pkg/client/listers/ceph.rook.io/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -36,7 +36,7 @@ import (
// CephObjectStores.
type CephObjectStoreInformer interface {
Informer() cache.SharedIndexInformer
Lister() v1.CephObjectStoreLister
Lister() cephrookiov1.CephObjectStoreLister
}
type cephObjectStoreInformer struct {
@@ -62,16 +62,28 @@ func NewFilteredCephObjectStoreInformer(client versioned.Interface, namespace st
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.CephV1().CephObjectStores(namespace).List(context.TODO(), options)
return client.CephV1().CephObjectStores(namespace).List(context.Background(), options)
},
WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) {
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.CephV1().CephObjectStores(namespace).Watch(context.TODO(), options)
return client.CephV1().CephObjectStores(namespace).Watch(context.Background(), options)
},
ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) {
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.CephV1().CephObjectStores(namespace).List(ctx, options)
},
WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) {
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.CephV1().CephObjectStores(namespace).Watch(ctx, options)
},
},
&cephrookiov1.CephObjectStore{},
&apiscephrookiov1.CephObjectStore{},
resyncPeriod,
indexers,
)
@@ -82,9 +94,9 @@ func (f *cephObjectStoreInformer) defaultInformer(client versioned.Interface, re
}
func (f *cephObjectStoreInformer) Informer() cache.SharedIndexInformer {
return f.factory.InformerFor(&cephrookiov1.CephObjectStore{}, f.defaultInformer)
return f.factory.InformerFor(&apiscephrookiov1.CephObjectStore{}, f.defaultInformer)
}
func (f *cephObjectStoreInformer) Lister() v1.CephObjectStoreLister {
return v1.NewCephObjectStoreLister(f.Informer().GetIndexer())
func (f *cephObjectStoreInformer) Lister() cephrookiov1.CephObjectStoreLister {
return cephrookiov1.NewCephObjectStoreLister(f.Informer().GetIndexer())
}
@@ -19,13 +19,13 @@ limitations under the License.
package v1
import (
"context"
context "context"
time "time"
cephrookiov1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
apiscephrookiov1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
versioned "github.com/rook/rook/pkg/client/clientset/versioned"
internalinterfaces "github.com/rook/rook/pkg/client/informers/externalversions/internalinterfaces"
v1 "github.com/rook/rook/pkg/client/listers/ceph.rook.io/v1"
cephrookiov1 "github.com/rook/rook/pkg/client/listers/ceph.rook.io/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -36,7 +36,7 @@ import (
// CephObjectStoreUsers.
type CephObjectStoreUserInformer interface {
Informer() cache.SharedIndexInformer
Lister() v1.CephObjectStoreUserLister
Lister() cephrookiov1.CephObjectStoreUserLister
}
type cephObjectStoreUserInformer struct {
@@ -62,16 +62,28 @@ func NewFilteredCephObjectStoreUserInformer(client versioned.Interface, namespac
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.CephV1().CephObjectStoreUsers(namespace).List(context.TODO(), options)
return client.CephV1().CephObjectStoreUsers(namespace).List(context.Background(), options)
},
WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) {
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.CephV1().CephObjectStoreUsers(namespace).Watch(context.TODO(), options)
return client.CephV1().CephObjectStoreUsers(namespace).Watch(context.Background(), options)
},
ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) {
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.CephV1().CephObjectStoreUsers(namespace).List(ctx, options)
},
WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) {
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.CephV1().CephObjectStoreUsers(namespace).Watch(ctx, options)
},
},
&cephrookiov1.CephObjectStoreUser{},
&apiscephrookiov1.CephObjectStoreUser{},
resyncPeriod,
indexers,
)
@@ -82,9 +94,9 @@ func (f *cephObjectStoreUserInformer) defaultInformer(client versioned.Interface
}
func (f *cephObjectStoreUserInformer) Informer() cache.SharedIndexInformer {
return f.factory.InformerFor(&cephrookiov1.CephObjectStoreUser{}, f.defaultInformer)
return f.factory.InformerFor(&apiscephrookiov1.CephObjectStoreUser{}, f.defaultInformer)
}
func (f *cephObjectStoreUserInformer) Lister() v1.CephObjectStoreUserLister {
return v1.NewCephObjectStoreUserLister(f.Informer().GetIndexer())
func (f *cephObjectStoreUserInformer) Lister() cephrookiov1.CephObjectStoreUserLister {
return cephrookiov1.NewCephObjectStoreUserLister(f.Informer().GetIndexer())
}
@@ -19,13 +19,13 @@ limitations under the License.
package v1
import (
"context"
context "context"
time "time"
cephrookiov1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
apiscephrookiov1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
versioned "github.com/rook/rook/pkg/client/clientset/versioned"
internalinterfaces "github.com/rook/rook/pkg/client/informers/externalversions/internalinterfaces"
v1 "github.com/rook/rook/pkg/client/listers/ceph.rook.io/v1"
cephrookiov1 "github.com/rook/rook/pkg/client/listers/ceph.rook.io/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -36,7 +36,7 @@ import (
// CephObjectZones.
type CephObjectZoneInformer interface {
Informer() cache.SharedIndexInformer
Lister() v1.CephObjectZoneLister
Lister() cephrookiov1.CephObjectZoneLister
}
type cephObjectZoneInformer struct {
@@ -62,16 +62,28 @@ func NewFilteredCephObjectZoneInformer(client versioned.Interface, namespace str
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.CephV1().CephObjectZones(namespace).List(context.TODO(), options)
return client.CephV1().CephObjectZones(namespace).List(context.Background(), options)
},
WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) {
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.CephV1().CephObjectZones(namespace).Watch(context.TODO(), options)
return client.CephV1().CephObjectZones(namespace).Watch(context.Background(), options)
},
ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) {
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.CephV1().CephObjectZones(namespace).List(ctx, options)
},
WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) {
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.CephV1().CephObjectZones(namespace).Watch(ctx, options)
},
},
&cephrookiov1.CephObjectZone{},
&apiscephrookiov1.CephObjectZone{},
resyncPeriod,
indexers,
)
@@ -82,9 +94,9 @@ func (f *cephObjectZoneInformer) defaultInformer(client versioned.Interface, res
}
func (f *cephObjectZoneInformer) Informer() cache.SharedIndexInformer {
return f.factory.InformerFor(&cephrookiov1.CephObjectZone{}, f.defaultInformer)
return f.factory.InformerFor(&apiscephrookiov1.CephObjectZone{}, f.defaultInformer)
}
func (f *cephObjectZoneInformer) Lister() v1.CephObjectZoneLister {
return v1.NewCephObjectZoneLister(f.Informer().GetIndexer())
func (f *cephObjectZoneInformer) Lister() cephrookiov1.CephObjectZoneLister {
return cephrookiov1.NewCephObjectZoneLister(f.Informer().GetIndexer())
}
@@ -19,13 +19,13 @@ limitations under the License.
package v1
import (
"context"
context "context"
time "time"
cephrookiov1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
apiscephrookiov1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
versioned "github.com/rook/rook/pkg/client/clientset/versioned"
internalinterfaces "github.com/rook/rook/pkg/client/informers/externalversions/internalinterfaces"
v1 "github.com/rook/rook/pkg/client/listers/ceph.rook.io/v1"
cephrookiov1 "github.com/rook/rook/pkg/client/listers/ceph.rook.io/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -36,7 +36,7 @@ import (
// CephObjectZoneGroups.
type CephObjectZoneGroupInformer interface {
Informer() cache.SharedIndexInformer
Lister() v1.CephObjectZoneGroupLister
Lister() cephrookiov1.CephObjectZoneGroupLister
}
type cephObjectZoneGroupInformer struct {
@@ -62,16 +62,28 @@ func NewFilteredCephObjectZoneGroupInformer(client versioned.Interface, namespac
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.CephV1().CephObjectZoneGroups(namespace).List(context.TODO(), options)
return client.CephV1().CephObjectZoneGroups(namespace).List(context.Background(), options)
},
WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) {
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.CephV1().CephObjectZoneGroups(namespace).Watch(context.TODO(), options)
return client.CephV1().CephObjectZoneGroups(namespace).Watch(context.Background(), options)
},
ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) {
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.CephV1().CephObjectZoneGroups(namespace).List(ctx, options)
},
WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) {
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.CephV1().CephObjectZoneGroups(namespace).Watch(ctx, options)
},
},
&cephrookiov1.CephObjectZoneGroup{},
&apiscephrookiov1.CephObjectZoneGroup{},
resyncPeriod,
indexers,
)
@@ -82,9 +94,9 @@ func (f *cephObjectZoneGroupInformer) defaultInformer(client versioned.Interface
}
func (f *cephObjectZoneGroupInformer) Informer() cache.SharedIndexInformer {
return f.factory.InformerFor(&cephrookiov1.CephObjectZoneGroup{}, f.defaultInformer)
return f.factory.InformerFor(&apiscephrookiov1.CephObjectZoneGroup{}, f.defaultInformer)
}
func (f *cephObjectZoneGroupInformer) Lister() v1.CephObjectZoneGroupLister {
return v1.NewCephObjectZoneGroupLister(f.Informer().GetIndexer())
func (f *cephObjectZoneGroupInformer) Lister() cephrookiov1.CephObjectZoneGroupLister {
return cephrookiov1.NewCephObjectZoneGroupLister(f.Informer().GetIndexer())
}
@@ -19,13 +19,13 @@ limitations under the License.
package v1
import (
"context"
context "context"
time "time"
cephrookiov1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
apiscephrookiov1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
versioned "github.com/rook/rook/pkg/client/clientset/versioned"
internalinterfaces "github.com/rook/rook/pkg/client/informers/externalversions/internalinterfaces"
v1 "github.com/rook/rook/pkg/client/listers/ceph.rook.io/v1"
cephrookiov1 "github.com/rook/rook/pkg/client/listers/ceph.rook.io/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
watch "k8s.io/apimachinery/pkg/watch"
@@ -36,7 +36,7 @@ import (
// CephRBDMirrors.
type CephRBDMirrorInformer interface {
Informer() cache.SharedIndexInformer
Lister() v1.CephRBDMirrorLister
Lister() cephrookiov1.CephRBDMirrorLister
}
type cephRBDMirrorInformer struct {
@@ -62,16 +62,28 @@ func NewFilteredCephRBDMirrorInformer(client versioned.Interface, namespace stri
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.CephV1().CephRBDMirrors(namespace).List(context.TODO(), options)
return client.CephV1().CephRBDMirrors(namespace).List(context.Background(), options)
},
WatchFunc: func(options metav1.ListOptions) (watch.Interface, error) {
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.CephV1().CephRBDMirrors(namespace).Watch(context.TODO(), options)
return client.CephV1().CephRBDMirrors(namespace).Watch(context.Background(), options)
},
ListWithContextFunc: func(ctx context.Context, options metav1.ListOptions) (runtime.Object, error) {
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.CephV1().CephRBDMirrors(namespace).List(ctx, options)
},
WatchFuncWithContext: func(ctx context.Context, options metav1.ListOptions) (watch.Interface, error) {
if tweakListOptions != nil {
tweakListOptions(&options)
}
return client.CephV1().CephRBDMirrors(namespace).Watch(ctx, options)
},
},
&cephrookiov1.CephRBDMirror{},
&apiscephrookiov1.CephRBDMirror{},
resyncPeriod,
indexers,
)
@@ -82,9 +94,9 @@ func (f *cephRBDMirrorInformer) defaultInformer(client versioned.Interface, resy
}
func (f *cephRBDMirrorInformer) Informer() cache.SharedIndexInformer {
return f.factory.InformerFor(&cephrookiov1.CephRBDMirror{}, f.defaultInformer)
return f.factory.InformerFor(&apiscephrookiov1.CephRBDMirror{}, f.defaultInformer)
}
func (f *cephRBDMirrorInformer) Lister() v1.CephRBDMirrorLister {
return v1.NewCephRBDMirrorLister(f.Informer().GetIndexer())
func (f *cephRBDMirrorInformer) Lister() cephrookiov1.CephRBDMirrorLister {
return cephrookiov1.NewCephRBDMirrorLister(f.Informer().GetIndexer())
}
@@ -19,7 +19,7 @@ limitations under the License.
package externalversions
import (
"fmt"
fmt "fmt"
v1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
schema "k8s.io/apimachinery/pkg/runtime/schema"
@@ -19,10 +19,10 @@ limitations under the License.
package v1
import (
v1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
"k8s.io/apimachinery/pkg/labels"
"k8s.io/client-go/listers"
"k8s.io/client-go/tools/cache"
cephrookiov1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
labels "k8s.io/apimachinery/pkg/labels"
listers "k8s.io/client-go/listers"
cache "k8s.io/client-go/tools/cache"
)
// CephBlockPoolLister helps list CephBlockPools.
@@ -30,7 +30,7 @@ import (
type CephBlockPoolLister interface {
// List lists all CephBlockPools in the indexer.
// Objects returned here must be treated as read-only.
List(selector labels.Selector) (ret []*v1.CephBlockPool, err error)
List(selector labels.Selector) (ret []*cephrookiov1.CephBlockPool, err error)
// CephBlockPools returns an object that can list and get CephBlockPools.
CephBlockPools(namespace string) CephBlockPoolNamespaceLister
CephBlockPoolListerExpansion
@@ -38,17 +38,17 @@ type CephBlockPoolLister interface {
// cephBlockPoolLister implements the CephBlockPoolLister interface.
type cephBlockPoolLister struct {
listers.ResourceIndexer[*v1.CephBlockPool]
listers.ResourceIndexer[*cephrookiov1.CephBlockPool]
}
// NewCephBlockPoolLister returns a new CephBlockPoolLister.
func NewCephBlockPoolLister(indexer cache.Indexer) CephBlockPoolLister {
return &cephBlockPoolLister{listers.New[*v1.CephBlockPool](indexer, v1.Resource("cephblockpool"))}
return &cephBlockPoolLister{listers.New[*cephrookiov1.CephBlockPool](indexer, cephrookiov1.Resource("cephblockpool"))}
}
// CephBlockPools returns an object that can list and get CephBlockPools.
func (s *cephBlockPoolLister) CephBlockPools(namespace string) CephBlockPoolNamespaceLister {
return cephBlockPoolNamespaceLister{listers.NewNamespaced[*v1.CephBlockPool](s.ResourceIndexer, namespace)}
return cephBlockPoolNamespaceLister{listers.NewNamespaced[*cephrookiov1.CephBlockPool](s.ResourceIndexer, namespace)}
}
// CephBlockPoolNamespaceLister helps list and get CephBlockPools.
@@ -56,15 +56,15 @@ func (s *cephBlockPoolLister) CephBlockPools(namespace string) CephBlockPoolName
type CephBlockPoolNamespaceLister interface {
// List lists all CephBlockPools in the indexer for a given namespace.
// Objects returned here must be treated as read-only.
List(selector labels.Selector) (ret []*v1.CephBlockPool, err error)
List(selector labels.Selector) (ret []*cephrookiov1.CephBlockPool, err error)
// Get retrieves the CephBlockPool from the indexer for a given namespace and name.
// Objects returned here must be treated as read-only.
Get(name string) (*v1.CephBlockPool, error)
Get(name string) (*cephrookiov1.CephBlockPool, error)
CephBlockPoolNamespaceListerExpansion
}
// cephBlockPoolNamespaceLister implements the CephBlockPoolNamespaceLister
// interface.
type cephBlockPoolNamespaceLister struct {
listers.ResourceIndexer[*v1.CephBlockPool]
listers.ResourceIndexer[*cephrookiov1.CephBlockPool]
}
@@ -19,10 +19,10 @@ limitations under the License.
package v1
import (
v1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
"k8s.io/apimachinery/pkg/labels"
"k8s.io/client-go/listers"
"k8s.io/client-go/tools/cache"
cephrookiov1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
labels "k8s.io/apimachinery/pkg/labels"
listers "k8s.io/client-go/listers"
cache "k8s.io/client-go/tools/cache"
)
// CephBlockPoolRadosNamespaceLister helps list CephBlockPoolRadosNamespaces.
@@ -30,7 +30,7 @@ import (
type CephBlockPoolRadosNamespaceLister interface {
// List lists all CephBlockPoolRadosNamespaces in the indexer.
// Objects returned here must be treated as read-only.
List(selector labels.Selector) (ret []*v1.CephBlockPoolRadosNamespace, err error)
List(selector labels.Selector) (ret []*cephrookiov1.CephBlockPoolRadosNamespace, err error)
// CephBlockPoolRadosNamespaces returns an object that can list and get CephBlockPoolRadosNamespaces.
CephBlockPoolRadosNamespaces(namespace string) CephBlockPoolRadosNamespaceNamespaceLister
CephBlockPoolRadosNamespaceListerExpansion
@@ -38,17 +38,17 @@ type CephBlockPoolRadosNamespaceLister interface {
// cephBlockPoolRadosNamespaceLister implements the CephBlockPoolRadosNamespaceLister interface.
type cephBlockPoolRadosNamespaceLister struct {
listers.ResourceIndexer[*v1.CephBlockPoolRadosNamespace]
listers.ResourceIndexer[*cephrookiov1.CephBlockPoolRadosNamespace]
}
// NewCephBlockPoolRadosNamespaceLister returns a new CephBlockPoolRadosNamespaceLister.
func NewCephBlockPoolRadosNamespaceLister(indexer cache.Indexer) CephBlockPoolRadosNamespaceLister {
return &cephBlockPoolRadosNamespaceLister{listers.New[*v1.CephBlockPoolRadosNamespace](indexer, v1.Resource("cephblockpoolradosnamespace"))}
return &cephBlockPoolRadosNamespaceLister{listers.New[*cephrookiov1.CephBlockPoolRadosNamespace](indexer, cephrookiov1.Resource("cephblockpoolradosnamespace"))}
}
// CephBlockPoolRadosNamespaces returns an object that can list and get CephBlockPoolRadosNamespaces.
func (s *cephBlockPoolRadosNamespaceLister) CephBlockPoolRadosNamespaces(namespace string) CephBlockPoolRadosNamespaceNamespaceLister {
return cephBlockPoolRadosNamespaceNamespaceLister{listers.NewNamespaced[*v1.CephBlockPoolRadosNamespace](s.ResourceIndexer, namespace)}
return cephBlockPoolRadosNamespaceNamespaceLister{listers.NewNamespaced[*cephrookiov1.CephBlockPoolRadosNamespace](s.ResourceIndexer, namespace)}
}
// CephBlockPoolRadosNamespaceNamespaceLister helps list and get CephBlockPoolRadosNamespaces.
@@ -56,15 +56,15 @@ func (s *cephBlockPoolRadosNamespaceLister) CephBlockPoolRadosNamespaces(namespa
type CephBlockPoolRadosNamespaceNamespaceLister interface {
// List lists all CephBlockPoolRadosNamespaces in the indexer for a given namespace.
// Objects returned here must be treated as read-only.
List(selector labels.Selector) (ret []*v1.CephBlockPoolRadosNamespace, err error)
List(selector labels.Selector) (ret []*cephrookiov1.CephBlockPoolRadosNamespace, err error)
// Get retrieves the CephBlockPoolRadosNamespace from the indexer for a given namespace and name.
// Objects returned here must be treated as read-only.
Get(name string) (*v1.CephBlockPoolRadosNamespace, error)
Get(name string) (*cephrookiov1.CephBlockPoolRadosNamespace, error)
CephBlockPoolRadosNamespaceNamespaceListerExpansion
}
// cephBlockPoolRadosNamespaceNamespaceLister implements the CephBlockPoolRadosNamespaceNamespaceLister
// interface.
type cephBlockPoolRadosNamespaceNamespaceLister struct {
listers.ResourceIndexer[*v1.CephBlockPoolRadosNamespace]
listers.ResourceIndexer[*cephrookiov1.CephBlockPoolRadosNamespace]
}
@@ -19,10 +19,10 @@ limitations under the License.
package v1
import (
v1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
"k8s.io/apimachinery/pkg/labels"
"k8s.io/client-go/listers"
"k8s.io/client-go/tools/cache"
cephrookiov1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
labels "k8s.io/apimachinery/pkg/labels"
listers "k8s.io/client-go/listers"
cache "k8s.io/client-go/tools/cache"
)
// CephBucketNotificationLister helps list CephBucketNotifications.
@@ -30,7 +30,7 @@ import (
type CephBucketNotificationLister interface {
// List lists all CephBucketNotifications in the indexer.
// Objects returned here must be treated as read-only.
List(selector labels.Selector) (ret []*v1.CephBucketNotification, err error)
List(selector labels.Selector) (ret []*cephrookiov1.CephBucketNotification, err error)
// CephBucketNotifications returns an object that can list and get CephBucketNotifications.
CephBucketNotifications(namespace string) CephBucketNotificationNamespaceLister
CephBucketNotificationListerExpansion
@@ -38,17 +38,17 @@ type CephBucketNotificationLister interface {
// cephBucketNotificationLister implements the CephBucketNotificationLister interface.
type cephBucketNotificationLister struct {
listers.ResourceIndexer[*v1.CephBucketNotification]
listers.ResourceIndexer[*cephrookiov1.CephBucketNotification]
}
// NewCephBucketNotificationLister returns a new CephBucketNotificationLister.
func NewCephBucketNotificationLister(indexer cache.Indexer) CephBucketNotificationLister {
return &cephBucketNotificationLister{listers.New[*v1.CephBucketNotification](indexer, v1.Resource("cephbucketnotification"))}
return &cephBucketNotificationLister{listers.New[*cephrookiov1.CephBucketNotification](indexer, cephrookiov1.Resource("cephbucketnotification"))}
}
// CephBucketNotifications returns an object that can list and get CephBucketNotifications.
func (s *cephBucketNotificationLister) CephBucketNotifications(namespace string) CephBucketNotificationNamespaceLister {
return cephBucketNotificationNamespaceLister{listers.NewNamespaced[*v1.CephBucketNotification](s.ResourceIndexer, namespace)}
return cephBucketNotificationNamespaceLister{listers.NewNamespaced[*cephrookiov1.CephBucketNotification](s.ResourceIndexer, namespace)}
}
// CephBucketNotificationNamespaceLister helps list and get CephBucketNotifications.
@@ -56,15 +56,15 @@ func (s *cephBucketNotificationLister) CephBucketNotifications(namespace string)
type CephBucketNotificationNamespaceLister interface {
// List lists all CephBucketNotifications in the indexer for a given namespace.
// Objects returned here must be treated as read-only.
List(selector labels.Selector) (ret []*v1.CephBucketNotification, err error)
List(selector labels.Selector) (ret []*cephrookiov1.CephBucketNotification, err error)
// Get retrieves the CephBucketNotification from the indexer for a given namespace and name.
// Objects returned here must be treated as read-only.
Get(name string) (*v1.CephBucketNotification, error)
Get(name string) (*cephrookiov1.CephBucketNotification, error)
CephBucketNotificationNamespaceListerExpansion
}
// cephBucketNotificationNamespaceLister implements the CephBucketNotificationNamespaceLister
// interface.
type cephBucketNotificationNamespaceLister struct {
listers.ResourceIndexer[*v1.CephBucketNotification]
listers.ResourceIndexer[*cephrookiov1.CephBucketNotification]
}
@@ -19,10 +19,10 @@ limitations under the License.
package v1
import (
v1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
"k8s.io/apimachinery/pkg/labels"
"k8s.io/client-go/listers"
"k8s.io/client-go/tools/cache"
cephrookiov1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
labels "k8s.io/apimachinery/pkg/labels"
listers "k8s.io/client-go/listers"
cache "k8s.io/client-go/tools/cache"
)
// CephBucketTopicLister helps list CephBucketTopics.
@@ -30,7 +30,7 @@ import (
type CephBucketTopicLister interface {
// List lists all CephBucketTopics in the indexer.
// Objects returned here must be treated as read-only.
List(selector labels.Selector) (ret []*v1.CephBucketTopic, err error)
List(selector labels.Selector) (ret []*cephrookiov1.CephBucketTopic, err error)
// CephBucketTopics returns an object that can list and get CephBucketTopics.
CephBucketTopics(namespace string) CephBucketTopicNamespaceLister
CephBucketTopicListerExpansion
@@ -38,17 +38,17 @@ type CephBucketTopicLister interface {
// cephBucketTopicLister implements the CephBucketTopicLister interface.
type cephBucketTopicLister struct {
listers.ResourceIndexer[*v1.CephBucketTopic]
listers.ResourceIndexer[*cephrookiov1.CephBucketTopic]
}
// NewCephBucketTopicLister returns a new CephBucketTopicLister.
func NewCephBucketTopicLister(indexer cache.Indexer) CephBucketTopicLister {
return &cephBucketTopicLister{listers.New[*v1.CephBucketTopic](indexer, v1.Resource("cephbuckettopic"))}
return &cephBucketTopicLister{listers.New[*cephrookiov1.CephBucketTopic](indexer, cephrookiov1.Resource("cephbuckettopic"))}
}
// CephBucketTopics returns an object that can list and get CephBucketTopics.
func (s *cephBucketTopicLister) CephBucketTopics(namespace string) CephBucketTopicNamespaceLister {
return cephBucketTopicNamespaceLister{listers.NewNamespaced[*v1.CephBucketTopic](s.ResourceIndexer, namespace)}
return cephBucketTopicNamespaceLister{listers.NewNamespaced[*cephrookiov1.CephBucketTopic](s.ResourceIndexer, namespace)}
}
// CephBucketTopicNamespaceLister helps list and get CephBucketTopics.
@@ -56,15 +56,15 @@ func (s *cephBucketTopicLister) CephBucketTopics(namespace string) CephBucketTop
type CephBucketTopicNamespaceLister interface {
// List lists all CephBucketTopics in the indexer for a given namespace.
// Objects returned here must be treated as read-only.
List(selector labels.Selector) (ret []*v1.CephBucketTopic, err error)
List(selector labels.Selector) (ret []*cephrookiov1.CephBucketTopic, err error)
// Get retrieves the CephBucketTopic from the indexer for a given namespace and name.
// Objects returned here must be treated as read-only.
Get(name string) (*v1.CephBucketTopic, error)
Get(name string) (*cephrookiov1.CephBucketTopic, error)
CephBucketTopicNamespaceListerExpansion
}
// cephBucketTopicNamespaceLister implements the CephBucketTopicNamespaceLister
// interface.
type cephBucketTopicNamespaceLister struct {
listers.ResourceIndexer[*v1.CephBucketTopic]
listers.ResourceIndexer[*cephrookiov1.CephBucketTopic]
}
@@ -19,10 +19,10 @@ limitations under the License.
package v1
import (
v1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
"k8s.io/apimachinery/pkg/labels"
"k8s.io/client-go/listers"
"k8s.io/client-go/tools/cache"
cephrookiov1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
labels "k8s.io/apimachinery/pkg/labels"
listers "k8s.io/client-go/listers"
cache "k8s.io/client-go/tools/cache"
)
// CephClientLister helps list CephClients.
@@ -30,7 +30,7 @@ import (
type CephClientLister interface {
// List lists all CephClients in the indexer.
// Objects returned here must be treated as read-only.
List(selector labels.Selector) (ret []*v1.CephClient, err error)
List(selector labels.Selector) (ret []*cephrookiov1.CephClient, err error)
// CephClients returns an object that can list and get CephClients.
CephClients(namespace string) CephClientNamespaceLister
CephClientListerExpansion
@@ -38,17 +38,17 @@ type CephClientLister interface {
// cephClientLister implements the CephClientLister interface.
type cephClientLister struct {
listers.ResourceIndexer[*v1.CephClient]
listers.ResourceIndexer[*cephrookiov1.CephClient]
}
// NewCephClientLister returns a new CephClientLister.
func NewCephClientLister(indexer cache.Indexer) CephClientLister {
return &cephClientLister{listers.New[*v1.CephClient](indexer, v1.Resource("cephclient"))}
return &cephClientLister{listers.New[*cephrookiov1.CephClient](indexer, cephrookiov1.Resource("cephclient"))}
}
// CephClients returns an object that can list and get CephClients.
func (s *cephClientLister) CephClients(namespace string) CephClientNamespaceLister {
return cephClientNamespaceLister{listers.NewNamespaced[*v1.CephClient](s.ResourceIndexer, namespace)}
return cephClientNamespaceLister{listers.NewNamespaced[*cephrookiov1.CephClient](s.ResourceIndexer, namespace)}
}
// CephClientNamespaceLister helps list and get CephClients.
@@ -56,15 +56,15 @@ func (s *cephClientLister) CephClients(namespace string) CephClientNamespaceList
type CephClientNamespaceLister interface {
// List lists all CephClients in the indexer for a given namespace.
// Objects returned here must be treated as read-only.
List(selector labels.Selector) (ret []*v1.CephClient, err error)
List(selector labels.Selector) (ret []*cephrookiov1.CephClient, err error)
// Get retrieves the CephClient from the indexer for a given namespace and name.
// Objects returned here must be treated as read-only.
Get(name string) (*v1.CephClient, error)
Get(name string) (*cephrookiov1.CephClient, error)
CephClientNamespaceListerExpansion
}
// cephClientNamespaceLister implements the CephClientNamespaceLister
// interface.
type cephClientNamespaceLister struct {
listers.ResourceIndexer[*v1.CephClient]
listers.ResourceIndexer[*cephrookiov1.CephClient]
}
@@ -19,10 +19,10 @@ limitations under the License.
package v1
import (
v1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
"k8s.io/apimachinery/pkg/labels"
"k8s.io/client-go/listers"
"k8s.io/client-go/tools/cache"
cephrookiov1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
labels "k8s.io/apimachinery/pkg/labels"
listers "k8s.io/client-go/listers"
cache "k8s.io/client-go/tools/cache"
)
// CephClusterLister helps list CephClusters.
@@ -30,7 +30,7 @@ import (
type CephClusterLister interface {
// List lists all CephClusters in the indexer.
// Objects returned here must be treated as read-only.
List(selector labels.Selector) (ret []*v1.CephCluster, err error)
List(selector labels.Selector) (ret []*cephrookiov1.CephCluster, err error)
// CephClusters returns an object that can list and get CephClusters.
CephClusters(namespace string) CephClusterNamespaceLister
CephClusterListerExpansion
@@ -38,17 +38,17 @@ type CephClusterLister interface {
// cephClusterLister implements the CephClusterLister interface.
type cephClusterLister struct {
listers.ResourceIndexer[*v1.CephCluster]
listers.ResourceIndexer[*cephrookiov1.CephCluster]
}
// NewCephClusterLister returns a new CephClusterLister.
func NewCephClusterLister(indexer cache.Indexer) CephClusterLister {
return &cephClusterLister{listers.New[*v1.CephCluster](indexer, v1.Resource("cephcluster"))}
return &cephClusterLister{listers.New[*cephrookiov1.CephCluster](indexer, cephrookiov1.Resource("cephcluster"))}
}
// CephClusters returns an object that can list and get CephClusters.
func (s *cephClusterLister) CephClusters(namespace string) CephClusterNamespaceLister {
return cephClusterNamespaceLister{listers.NewNamespaced[*v1.CephCluster](s.ResourceIndexer, namespace)}
return cephClusterNamespaceLister{listers.NewNamespaced[*cephrookiov1.CephCluster](s.ResourceIndexer, namespace)}
}
// CephClusterNamespaceLister helps list and get CephClusters.
@@ -56,15 +56,15 @@ func (s *cephClusterLister) CephClusters(namespace string) CephClusterNamespaceL
type CephClusterNamespaceLister interface {
// List lists all CephClusters in the indexer for a given namespace.
// Objects returned here must be treated as read-only.
List(selector labels.Selector) (ret []*v1.CephCluster, err error)
List(selector labels.Selector) (ret []*cephrookiov1.CephCluster, err error)
// Get retrieves the CephCluster from the indexer for a given namespace and name.
// Objects returned here must be treated as read-only.
Get(name string) (*v1.CephCluster, error)
Get(name string) (*cephrookiov1.CephCluster, error)
CephClusterNamespaceListerExpansion
}
// cephClusterNamespaceLister implements the CephClusterNamespaceLister
// interface.
type cephClusterNamespaceLister struct {
listers.ResourceIndexer[*v1.CephCluster]
listers.ResourceIndexer[*cephrookiov1.CephCluster]
}
@@ -19,10 +19,10 @@ limitations under the License.
package v1
import (
v1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
"k8s.io/apimachinery/pkg/labels"
"k8s.io/client-go/listers"
"k8s.io/client-go/tools/cache"
cephrookiov1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
labels "k8s.io/apimachinery/pkg/labels"
listers "k8s.io/client-go/listers"
cache "k8s.io/client-go/tools/cache"
)
// CephCOSIDriverLister helps list CephCOSIDrivers.
@@ -30,7 +30,7 @@ import (
type CephCOSIDriverLister interface {
// List lists all CephCOSIDrivers in the indexer.
// Objects returned here must be treated as read-only.
List(selector labels.Selector) (ret []*v1.CephCOSIDriver, err error)
List(selector labels.Selector) (ret []*cephrookiov1.CephCOSIDriver, err error)
// CephCOSIDrivers returns an object that can list and get CephCOSIDrivers.
CephCOSIDrivers(namespace string) CephCOSIDriverNamespaceLister
CephCOSIDriverListerExpansion
@@ -38,17 +38,17 @@ type CephCOSIDriverLister interface {
// cephCOSIDriverLister implements the CephCOSIDriverLister interface.
type cephCOSIDriverLister struct {
listers.ResourceIndexer[*v1.CephCOSIDriver]
listers.ResourceIndexer[*cephrookiov1.CephCOSIDriver]
}
// NewCephCOSIDriverLister returns a new CephCOSIDriverLister.
func NewCephCOSIDriverLister(indexer cache.Indexer) CephCOSIDriverLister {
return &cephCOSIDriverLister{listers.New[*v1.CephCOSIDriver](indexer, v1.Resource("cephcosidriver"))}
return &cephCOSIDriverLister{listers.New[*cephrookiov1.CephCOSIDriver](indexer, cephrookiov1.Resource("cephcosidriver"))}
}
// CephCOSIDrivers returns an object that can list and get CephCOSIDrivers.
func (s *cephCOSIDriverLister) CephCOSIDrivers(namespace string) CephCOSIDriverNamespaceLister {
return cephCOSIDriverNamespaceLister{listers.NewNamespaced[*v1.CephCOSIDriver](s.ResourceIndexer, namespace)}
return cephCOSIDriverNamespaceLister{listers.NewNamespaced[*cephrookiov1.CephCOSIDriver](s.ResourceIndexer, namespace)}
}
// CephCOSIDriverNamespaceLister helps list and get CephCOSIDrivers.
@@ -56,15 +56,15 @@ func (s *cephCOSIDriverLister) CephCOSIDrivers(namespace string) CephCOSIDriverN
type CephCOSIDriverNamespaceLister interface {
// List lists all CephCOSIDrivers in the indexer for a given namespace.
// Objects returned here must be treated as read-only.
List(selector labels.Selector) (ret []*v1.CephCOSIDriver, err error)
List(selector labels.Selector) (ret []*cephrookiov1.CephCOSIDriver, err error)
// Get retrieves the CephCOSIDriver from the indexer for a given namespace and name.
// Objects returned here must be treated as read-only.
Get(name string) (*v1.CephCOSIDriver, error)
Get(name string) (*cephrookiov1.CephCOSIDriver, error)
CephCOSIDriverNamespaceListerExpansion
}
// cephCOSIDriverNamespaceLister implements the CephCOSIDriverNamespaceLister
// interface.
type cephCOSIDriverNamespaceLister struct {
listers.ResourceIndexer[*v1.CephCOSIDriver]
listers.ResourceIndexer[*cephrookiov1.CephCOSIDriver]
}
@@ -19,10 +19,10 @@ limitations under the License.
package v1
import (
v1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
"k8s.io/apimachinery/pkg/labels"
"k8s.io/client-go/listers"
"k8s.io/client-go/tools/cache"
cephrookiov1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
labels "k8s.io/apimachinery/pkg/labels"
listers "k8s.io/client-go/listers"
cache "k8s.io/client-go/tools/cache"
)
// CephFilesystemLister helps list CephFilesystems.
@@ -30,7 +30,7 @@ import (
type CephFilesystemLister interface {
// List lists all CephFilesystems in the indexer.
// Objects returned here must be treated as read-only.
List(selector labels.Selector) (ret []*v1.CephFilesystem, err error)
List(selector labels.Selector) (ret []*cephrookiov1.CephFilesystem, err error)
// CephFilesystems returns an object that can list and get CephFilesystems.
CephFilesystems(namespace string) CephFilesystemNamespaceLister
CephFilesystemListerExpansion
@@ -38,17 +38,17 @@ type CephFilesystemLister interface {
// cephFilesystemLister implements the CephFilesystemLister interface.
type cephFilesystemLister struct {
listers.ResourceIndexer[*v1.CephFilesystem]
listers.ResourceIndexer[*cephrookiov1.CephFilesystem]
}
// NewCephFilesystemLister returns a new CephFilesystemLister.
func NewCephFilesystemLister(indexer cache.Indexer) CephFilesystemLister {
return &cephFilesystemLister{listers.New[*v1.CephFilesystem](indexer, v1.Resource("cephfilesystem"))}
return &cephFilesystemLister{listers.New[*cephrookiov1.CephFilesystem](indexer, cephrookiov1.Resource("cephfilesystem"))}
}
// CephFilesystems returns an object that can list and get CephFilesystems.
func (s *cephFilesystemLister) CephFilesystems(namespace string) CephFilesystemNamespaceLister {
return cephFilesystemNamespaceLister{listers.NewNamespaced[*v1.CephFilesystem](s.ResourceIndexer, namespace)}
return cephFilesystemNamespaceLister{listers.NewNamespaced[*cephrookiov1.CephFilesystem](s.ResourceIndexer, namespace)}
}
// CephFilesystemNamespaceLister helps list and get CephFilesystems.
@@ -56,15 +56,15 @@ func (s *cephFilesystemLister) CephFilesystems(namespace string) CephFilesystemN
type CephFilesystemNamespaceLister interface {
// List lists all CephFilesystems in the indexer for a given namespace.
// Objects returned here must be treated as read-only.
List(selector labels.Selector) (ret []*v1.CephFilesystem, err error)
List(selector labels.Selector) (ret []*cephrookiov1.CephFilesystem, err error)
// Get retrieves the CephFilesystem from the indexer for a given namespace and name.
// Objects returned here must be treated as read-only.
Get(name string) (*v1.CephFilesystem, error)
Get(name string) (*cephrookiov1.CephFilesystem, error)
CephFilesystemNamespaceListerExpansion
}
// cephFilesystemNamespaceLister implements the CephFilesystemNamespaceLister
// interface.
type cephFilesystemNamespaceLister struct {
listers.ResourceIndexer[*v1.CephFilesystem]
listers.ResourceIndexer[*cephrookiov1.CephFilesystem]
}
@@ -19,10 +19,10 @@ limitations under the License.
package v1
import (
v1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
"k8s.io/apimachinery/pkg/labels"
"k8s.io/client-go/listers"
"k8s.io/client-go/tools/cache"
cephrookiov1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
labels "k8s.io/apimachinery/pkg/labels"
listers "k8s.io/client-go/listers"
cache "k8s.io/client-go/tools/cache"
)
// CephFilesystemMirrorLister helps list CephFilesystemMirrors.
@@ -30,7 +30,7 @@ import (
type CephFilesystemMirrorLister interface {
// List lists all CephFilesystemMirrors in the indexer.
// Objects returned here must be treated as read-only.
List(selector labels.Selector) (ret []*v1.CephFilesystemMirror, err error)
List(selector labels.Selector) (ret []*cephrookiov1.CephFilesystemMirror, err error)
// CephFilesystemMirrors returns an object that can list and get CephFilesystemMirrors.
CephFilesystemMirrors(namespace string) CephFilesystemMirrorNamespaceLister
CephFilesystemMirrorListerExpansion
@@ -38,17 +38,17 @@ type CephFilesystemMirrorLister interface {
// cephFilesystemMirrorLister implements the CephFilesystemMirrorLister interface.
type cephFilesystemMirrorLister struct {
listers.ResourceIndexer[*v1.CephFilesystemMirror]
listers.ResourceIndexer[*cephrookiov1.CephFilesystemMirror]
}
// NewCephFilesystemMirrorLister returns a new CephFilesystemMirrorLister.
func NewCephFilesystemMirrorLister(indexer cache.Indexer) CephFilesystemMirrorLister {
return &cephFilesystemMirrorLister{listers.New[*v1.CephFilesystemMirror](indexer, v1.Resource("cephfilesystemmirror"))}
return &cephFilesystemMirrorLister{listers.New[*cephrookiov1.CephFilesystemMirror](indexer, cephrookiov1.Resource("cephfilesystemmirror"))}
}
// CephFilesystemMirrors returns an object that can list and get CephFilesystemMirrors.
func (s *cephFilesystemMirrorLister) CephFilesystemMirrors(namespace string) CephFilesystemMirrorNamespaceLister {
return cephFilesystemMirrorNamespaceLister{listers.NewNamespaced[*v1.CephFilesystemMirror](s.ResourceIndexer, namespace)}
return cephFilesystemMirrorNamespaceLister{listers.NewNamespaced[*cephrookiov1.CephFilesystemMirror](s.ResourceIndexer, namespace)}
}
// CephFilesystemMirrorNamespaceLister helps list and get CephFilesystemMirrors.
@@ -56,15 +56,15 @@ func (s *cephFilesystemMirrorLister) CephFilesystemMirrors(namespace string) Cep
type CephFilesystemMirrorNamespaceLister interface {
// List lists all CephFilesystemMirrors in the indexer for a given namespace.
// Objects returned here must be treated as read-only.
List(selector labels.Selector) (ret []*v1.CephFilesystemMirror, err error)
List(selector labels.Selector) (ret []*cephrookiov1.CephFilesystemMirror, err error)
// Get retrieves the CephFilesystemMirror from the indexer for a given namespace and name.
// Objects returned here must be treated as read-only.
Get(name string) (*v1.CephFilesystemMirror, error)
Get(name string) (*cephrookiov1.CephFilesystemMirror, error)
CephFilesystemMirrorNamespaceListerExpansion
}
// cephFilesystemMirrorNamespaceLister implements the CephFilesystemMirrorNamespaceLister
// interface.
type cephFilesystemMirrorNamespaceLister struct {
listers.ResourceIndexer[*v1.CephFilesystemMirror]
listers.ResourceIndexer[*cephrookiov1.CephFilesystemMirror]
}
@@ -19,10 +19,10 @@ limitations under the License.
package v1
import (
v1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
"k8s.io/apimachinery/pkg/labels"
"k8s.io/client-go/listers"
"k8s.io/client-go/tools/cache"
cephrookiov1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
labels "k8s.io/apimachinery/pkg/labels"
listers "k8s.io/client-go/listers"
cache "k8s.io/client-go/tools/cache"
)
// CephFilesystemSubVolumeGroupLister helps list CephFilesystemSubVolumeGroups.
@@ -30,7 +30,7 @@ import (
type CephFilesystemSubVolumeGroupLister interface {
// List lists all CephFilesystemSubVolumeGroups in the indexer.
// Objects returned here must be treated as read-only.
List(selector labels.Selector) (ret []*v1.CephFilesystemSubVolumeGroup, err error)
List(selector labels.Selector) (ret []*cephrookiov1.CephFilesystemSubVolumeGroup, err error)
// CephFilesystemSubVolumeGroups returns an object that can list and get CephFilesystemSubVolumeGroups.
CephFilesystemSubVolumeGroups(namespace string) CephFilesystemSubVolumeGroupNamespaceLister
CephFilesystemSubVolumeGroupListerExpansion
@@ -38,17 +38,17 @@ type CephFilesystemSubVolumeGroupLister interface {
// cephFilesystemSubVolumeGroupLister implements the CephFilesystemSubVolumeGroupLister interface.
type cephFilesystemSubVolumeGroupLister struct {
listers.ResourceIndexer[*v1.CephFilesystemSubVolumeGroup]
listers.ResourceIndexer[*cephrookiov1.CephFilesystemSubVolumeGroup]
}
// NewCephFilesystemSubVolumeGroupLister returns a new CephFilesystemSubVolumeGroupLister.
func NewCephFilesystemSubVolumeGroupLister(indexer cache.Indexer) CephFilesystemSubVolumeGroupLister {
return &cephFilesystemSubVolumeGroupLister{listers.New[*v1.CephFilesystemSubVolumeGroup](indexer, v1.Resource("cephfilesystemsubvolumegroup"))}
return &cephFilesystemSubVolumeGroupLister{listers.New[*cephrookiov1.CephFilesystemSubVolumeGroup](indexer, cephrookiov1.Resource("cephfilesystemsubvolumegroup"))}
}
// CephFilesystemSubVolumeGroups returns an object that can list and get CephFilesystemSubVolumeGroups.
func (s *cephFilesystemSubVolumeGroupLister) CephFilesystemSubVolumeGroups(namespace string) CephFilesystemSubVolumeGroupNamespaceLister {
return cephFilesystemSubVolumeGroupNamespaceLister{listers.NewNamespaced[*v1.CephFilesystemSubVolumeGroup](s.ResourceIndexer, namespace)}
return cephFilesystemSubVolumeGroupNamespaceLister{listers.NewNamespaced[*cephrookiov1.CephFilesystemSubVolumeGroup](s.ResourceIndexer, namespace)}
}
// CephFilesystemSubVolumeGroupNamespaceLister helps list and get CephFilesystemSubVolumeGroups.
@@ -56,15 +56,15 @@ func (s *cephFilesystemSubVolumeGroupLister) CephFilesystemSubVolumeGroups(names
type CephFilesystemSubVolumeGroupNamespaceLister interface {
// List lists all CephFilesystemSubVolumeGroups in the indexer for a given namespace.
// Objects returned here must be treated as read-only.
List(selector labels.Selector) (ret []*v1.CephFilesystemSubVolumeGroup, err error)
List(selector labels.Selector) (ret []*cephrookiov1.CephFilesystemSubVolumeGroup, err error)
// Get retrieves the CephFilesystemSubVolumeGroup from the indexer for a given namespace and name.
// Objects returned here must be treated as read-only.
Get(name string) (*v1.CephFilesystemSubVolumeGroup, error)
Get(name string) (*cephrookiov1.CephFilesystemSubVolumeGroup, error)
CephFilesystemSubVolumeGroupNamespaceListerExpansion
}
// cephFilesystemSubVolumeGroupNamespaceLister implements the CephFilesystemSubVolumeGroupNamespaceLister
// interface.
type cephFilesystemSubVolumeGroupNamespaceLister struct {
listers.ResourceIndexer[*v1.CephFilesystemSubVolumeGroup]
listers.ResourceIndexer[*cephrookiov1.CephFilesystemSubVolumeGroup]
}
+11 -11
View File
@@ -19,10 +19,10 @@ limitations under the License.
package v1
import (
v1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
"k8s.io/apimachinery/pkg/labels"
"k8s.io/client-go/listers"
"k8s.io/client-go/tools/cache"
cephrookiov1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
labels "k8s.io/apimachinery/pkg/labels"
listers "k8s.io/client-go/listers"
cache "k8s.io/client-go/tools/cache"
)
// CephNFSLister helps list CephNFSes.
@@ -30,7 +30,7 @@ import (
type CephNFSLister interface {
// List lists all CephNFSes in the indexer.
// Objects returned here must be treated as read-only.
List(selector labels.Selector) (ret []*v1.CephNFS, err error)
List(selector labels.Selector) (ret []*cephrookiov1.CephNFS, err error)
// CephNFSes returns an object that can list and get CephNFSes.
CephNFSes(namespace string) CephNFSNamespaceLister
CephNFSListerExpansion
@@ -38,17 +38,17 @@ type CephNFSLister interface {
// cephNFSLister implements the CephNFSLister interface.
type cephNFSLister struct {
listers.ResourceIndexer[*v1.CephNFS]
listers.ResourceIndexer[*cephrookiov1.CephNFS]
}
// NewCephNFSLister returns a new CephNFSLister.
func NewCephNFSLister(indexer cache.Indexer) CephNFSLister {
return &cephNFSLister{listers.New[*v1.CephNFS](indexer, v1.Resource("cephnfs"))}
return &cephNFSLister{listers.New[*cephrookiov1.CephNFS](indexer, cephrookiov1.Resource("cephnfs"))}
}
// CephNFSes returns an object that can list and get CephNFSes.
func (s *cephNFSLister) CephNFSes(namespace string) CephNFSNamespaceLister {
return cephNFSNamespaceLister{listers.NewNamespaced[*v1.CephNFS](s.ResourceIndexer, namespace)}
return cephNFSNamespaceLister{listers.NewNamespaced[*cephrookiov1.CephNFS](s.ResourceIndexer, namespace)}
}
// CephNFSNamespaceLister helps list and get CephNFSes.
@@ -56,15 +56,15 @@ func (s *cephNFSLister) CephNFSes(namespace string) CephNFSNamespaceLister {
type CephNFSNamespaceLister interface {
// List lists all CephNFSes in the indexer for a given namespace.
// Objects returned here must be treated as read-only.
List(selector labels.Selector) (ret []*v1.CephNFS, err error)
List(selector labels.Selector) (ret []*cephrookiov1.CephNFS, err error)
// Get retrieves the CephNFS from the indexer for a given namespace and name.
// Objects returned here must be treated as read-only.
Get(name string) (*v1.CephNFS, error)
Get(name string) (*cephrookiov1.CephNFS, error)
CephNFSNamespaceListerExpansion
}
// cephNFSNamespaceLister implements the CephNFSNamespaceLister
// interface.
type cephNFSNamespaceLister struct {
listers.ResourceIndexer[*v1.CephNFS]
listers.ResourceIndexer[*cephrookiov1.CephNFS]
}
@@ -19,10 +19,10 @@ limitations under the License.
package v1
import (
v1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
"k8s.io/apimachinery/pkg/labels"
"k8s.io/client-go/listers"
"k8s.io/client-go/tools/cache"
cephrookiov1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
labels "k8s.io/apimachinery/pkg/labels"
listers "k8s.io/client-go/listers"
cache "k8s.io/client-go/tools/cache"
)
// CephObjectRealmLister helps list CephObjectRealms.
@@ -30,7 +30,7 @@ import (
type CephObjectRealmLister interface {
// List lists all CephObjectRealms in the indexer.
// Objects returned here must be treated as read-only.
List(selector labels.Selector) (ret []*v1.CephObjectRealm, err error)
List(selector labels.Selector) (ret []*cephrookiov1.CephObjectRealm, err error)
// CephObjectRealms returns an object that can list and get CephObjectRealms.
CephObjectRealms(namespace string) CephObjectRealmNamespaceLister
CephObjectRealmListerExpansion
@@ -38,17 +38,17 @@ type CephObjectRealmLister interface {
// cephObjectRealmLister implements the CephObjectRealmLister interface.
type cephObjectRealmLister struct {
listers.ResourceIndexer[*v1.CephObjectRealm]
listers.ResourceIndexer[*cephrookiov1.CephObjectRealm]
}
// NewCephObjectRealmLister returns a new CephObjectRealmLister.
func NewCephObjectRealmLister(indexer cache.Indexer) CephObjectRealmLister {
return &cephObjectRealmLister{listers.New[*v1.CephObjectRealm](indexer, v1.Resource("cephobjectrealm"))}
return &cephObjectRealmLister{listers.New[*cephrookiov1.CephObjectRealm](indexer, cephrookiov1.Resource("cephobjectrealm"))}
}
// CephObjectRealms returns an object that can list and get CephObjectRealms.
func (s *cephObjectRealmLister) CephObjectRealms(namespace string) CephObjectRealmNamespaceLister {
return cephObjectRealmNamespaceLister{listers.NewNamespaced[*v1.CephObjectRealm](s.ResourceIndexer, namespace)}
return cephObjectRealmNamespaceLister{listers.NewNamespaced[*cephrookiov1.CephObjectRealm](s.ResourceIndexer, namespace)}
}
// CephObjectRealmNamespaceLister helps list and get CephObjectRealms.
@@ -56,15 +56,15 @@ func (s *cephObjectRealmLister) CephObjectRealms(namespace string) CephObjectRea
type CephObjectRealmNamespaceLister interface {
// List lists all CephObjectRealms in the indexer for a given namespace.
// Objects returned here must be treated as read-only.
List(selector labels.Selector) (ret []*v1.CephObjectRealm, err error)
List(selector labels.Selector) (ret []*cephrookiov1.CephObjectRealm, err error)
// Get retrieves the CephObjectRealm from the indexer for a given namespace and name.
// Objects returned here must be treated as read-only.
Get(name string) (*v1.CephObjectRealm, error)
Get(name string) (*cephrookiov1.CephObjectRealm, error)
CephObjectRealmNamespaceListerExpansion
}
// cephObjectRealmNamespaceLister implements the CephObjectRealmNamespaceLister
// interface.
type cephObjectRealmNamespaceLister struct {
listers.ResourceIndexer[*v1.CephObjectRealm]
listers.ResourceIndexer[*cephrookiov1.CephObjectRealm]
}
@@ -19,10 +19,10 @@ limitations under the License.
package v1
import (
v1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
"k8s.io/apimachinery/pkg/labels"
"k8s.io/client-go/listers"
"k8s.io/client-go/tools/cache"
cephrookiov1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
labels "k8s.io/apimachinery/pkg/labels"
listers "k8s.io/client-go/listers"
cache "k8s.io/client-go/tools/cache"
)
// CephObjectStoreLister helps list CephObjectStores.
@@ -30,7 +30,7 @@ import (
type CephObjectStoreLister interface {
// List lists all CephObjectStores in the indexer.
// Objects returned here must be treated as read-only.
List(selector labels.Selector) (ret []*v1.CephObjectStore, err error)
List(selector labels.Selector) (ret []*cephrookiov1.CephObjectStore, err error)
// CephObjectStores returns an object that can list and get CephObjectStores.
CephObjectStores(namespace string) CephObjectStoreNamespaceLister
CephObjectStoreListerExpansion
@@ -38,17 +38,17 @@ type CephObjectStoreLister interface {
// cephObjectStoreLister implements the CephObjectStoreLister interface.
type cephObjectStoreLister struct {
listers.ResourceIndexer[*v1.CephObjectStore]
listers.ResourceIndexer[*cephrookiov1.CephObjectStore]
}
// NewCephObjectStoreLister returns a new CephObjectStoreLister.
func NewCephObjectStoreLister(indexer cache.Indexer) CephObjectStoreLister {
return &cephObjectStoreLister{listers.New[*v1.CephObjectStore](indexer, v1.Resource("cephobjectstore"))}
return &cephObjectStoreLister{listers.New[*cephrookiov1.CephObjectStore](indexer, cephrookiov1.Resource("cephobjectstore"))}
}
// CephObjectStores returns an object that can list and get CephObjectStores.
func (s *cephObjectStoreLister) CephObjectStores(namespace string) CephObjectStoreNamespaceLister {
return cephObjectStoreNamespaceLister{listers.NewNamespaced[*v1.CephObjectStore](s.ResourceIndexer, namespace)}
return cephObjectStoreNamespaceLister{listers.NewNamespaced[*cephrookiov1.CephObjectStore](s.ResourceIndexer, namespace)}
}
// CephObjectStoreNamespaceLister helps list and get CephObjectStores.
@@ -56,15 +56,15 @@ func (s *cephObjectStoreLister) CephObjectStores(namespace string) CephObjectSto
type CephObjectStoreNamespaceLister interface {
// List lists all CephObjectStores in the indexer for a given namespace.
// Objects returned here must be treated as read-only.
List(selector labels.Selector) (ret []*v1.CephObjectStore, err error)
List(selector labels.Selector) (ret []*cephrookiov1.CephObjectStore, err error)
// Get retrieves the CephObjectStore from the indexer for a given namespace and name.
// Objects returned here must be treated as read-only.
Get(name string) (*v1.CephObjectStore, error)
Get(name string) (*cephrookiov1.CephObjectStore, error)
CephObjectStoreNamespaceListerExpansion
}
// cephObjectStoreNamespaceLister implements the CephObjectStoreNamespaceLister
// interface.
type cephObjectStoreNamespaceLister struct {
listers.ResourceIndexer[*v1.CephObjectStore]
listers.ResourceIndexer[*cephrookiov1.CephObjectStore]
}
@@ -19,10 +19,10 @@ limitations under the License.
package v1
import (
v1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
"k8s.io/apimachinery/pkg/labels"
"k8s.io/client-go/listers"
"k8s.io/client-go/tools/cache"
cephrookiov1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
labels "k8s.io/apimachinery/pkg/labels"
listers "k8s.io/client-go/listers"
cache "k8s.io/client-go/tools/cache"
)
// CephObjectStoreUserLister helps list CephObjectStoreUsers.
@@ -30,7 +30,7 @@ import (
type CephObjectStoreUserLister interface {
// List lists all CephObjectStoreUsers in the indexer.
// Objects returned here must be treated as read-only.
List(selector labels.Selector) (ret []*v1.CephObjectStoreUser, err error)
List(selector labels.Selector) (ret []*cephrookiov1.CephObjectStoreUser, err error)
// CephObjectStoreUsers returns an object that can list and get CephObjectStoreUsers.
CephObjectStoreUsers(namespace string) CephObjectStoreUserNamespaceLister
CephObjectStoreUserListerExpansion
@@ -38,17 +38,17 @@ type CephObjectStoreUserLister interface {
// cephObjectStoreUserLister implements the CephObjectStoreUserLister interface.
type cephObjectStoreUserLister struct {
listers.ResourceIndexer[*v1.CephObjectStoreUser]
listers.ResourceIndexer[*cephrookiov1.CephObjectStoreUser]
}
// NewCephObjectStoreUserLister returns a new CephObjectStoreUserLister.
func NewCephObjectStoreUserLister(indexer cache.Indexer) CephObjectStoreUserLister {
return &cephObjectStoreUserLister{listers.New[*v1.CephObjectStoreUser](indexer, v1.Resource("cephobjectstoreuser"))}
return &cephObjectStoreUserLister{listers.New[*cephrookiov1.CephObjectStoreUser](indexer, cephrookiov1.Resource("cephobjectstoreuser"))}
}
// CephObjectStoreUsers returns an object that can list and get CephObjectStoreUsers.
func (s *cephObjectStoreUserLister) CephObjectStoreUsers(namespace string) CephObjectStoreUserNamespaceLister {
return cephObjectStoreUserNamespaceLister{listers.NewNamespaced[*v1.CephObjectStoreUser](s.ResourceIndexer, namespace)}
return cephObjectStoreUserNamespaceLister{listers.NewNamespaced[*cephrookiov1.CephObjectStoreUser](s.ResourceIndexer, namespace)}
}
// CephObjectStoreUserNamespaceLister helps list and get CephObjectStoreUsers.
@@ -56,15 +56,15 @@ func (s *cephObjectStoreUserLister) CephObjectStoreUsers(namespace string) CephO
type CephObjectStoreUserNamespaceLister interface {
// List lists all CephObjectStoreUsers in the indexer for a given namespace.
// Objects returned here must be treated as read-only.
List(selector labels.Selector) (ret []*v1.CephObjectStoreUser, err error)
List(selector labels.Selector) (ret []*cephrookiov1.CephObjectStoreUser, err error)
// Get retrieves the CephObjectStoreUser from the indexer for a given namespace and name.
// Objects returned here must be treated as read-only.
Get(name string) (*v1.CephObjectStoreUser, error)
Get(name string) (*cephrookiov1.CephObjectStoreUser, error)
CephObjectStoreUserNamespaceListerExpansion
}
// cephObjectStoreUserNamespaceLister implements the CephObjectStoreUserNamespaceLister
// interface.
type cephObjectStoreUserNamespaceLister struct {
listers.ResourceIndexer[*v1.CephObjectStoreUser]
listers.ResourceIndexer[*cephrookiov1.CephObjectStoreUser]
}
@@ -19,10 +19,10 @@ limitations under the License.
package v1
import (
v1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
"k8s.io/apimachinery/pkg/labels"
"k8s.io/client-go/listers"
"k8s.io/client-go/tools/cache"
cephrookiov1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
labels "k8s.io/apimachinery/pkg/labels"
listers "k8s.io/client-go/listers"
cache "k8s.io/client-go/tools/cache"
)
// CephObjectZoneLister helps list CephObjectZones.
@@ -30,7 +30,7 @@ import (
type CephObjectZoneLister interface {
// List lists all CephObjectZones in the indexer.
// Objects returned here must be treated as read-only.
List(selector labels.Selector) (ret []*v1.CephObjectZone, err error)
List(selector labels.Selector) (ret []*cephrookiov1.CephObjectZone, err error)
// CephObjectZones returns an object that can list and get CephObjectZones.
CephObjectZones(namespace string) CephObjectZoneNamespaceLister
CephObjectZoneListerExpansion
@@ -38,17 +38,17 @@ type CephObjectZoneLister interface {
// cephObjectZoneLister implements the CephObjectZoneLister interface.
type cephObjectZoneLister struct {
listers.ResourceIndexer[*v1.CephObjectZone]
listers.ResourceIndexer[*cephrookiov1.CephObjectZone]
}
// NewCephObjectZoneLister returns a new CephObjectZoneLister.
func NewCephObjectZoneLister(indexer cache.Indexer) CephObjectZoneLister {
return &cephObjectZoneLister{listers.New[*v1.CephObjectZone](indexer, v1.Resource("cephobjectzone"))}
return &cephObjectZoneLister{listers.New[*cephrookiov1.CephObjectZone](indexer, cephrookiov1.Resource("cephobjectzone"))}
}
// CephObjectZones returns an object that can list and get CephObjectZones.
func (s *cephObjectZoneLister) CephObjectZones(namespace string) CephObjectZoneNamespaceLister {
return cephObjectZoneNamespaceLister{listers.NewNamespaced[*v1.CephObjectZone](s.ResourceIndexer, namespace)}
return cephObjectZoneNamespaceLister{listers.NewNamespaced[*cephrookiov1.CephObjectZone](s.ResourceIndexer, namespace)}
}
// CephObjectZoneNamespaceLister helps list and get CephObjectZones.
@@ -56,15 +56,15 @@ func (s *cephObjectZoneLister) CephObjectZones(namespace string) CephObjectZoneN
type CephObjectZoneNamespaceLister interface {
// List lists all CephObjectZones in the indexer for a given namespace.
// Objects returned here must be treated as read-only.
List(selector labels.Selector) (ret []*v1.CephObjectZone, err error)
List(selector labels.Selector) (ret []*cephrookiov1.CephObjectZone, err error)
// Get retrieves the CephObjectZone from the indexer for a given namespace and name.
// Objects returned here must be treated as read-only.
Get(name string) (*v1.CephObjectZone, error)
Get(name string) (*cephrookiov1.CephObjectZone, error)
CephObjectZoneNamespaceListerExpansion
}
// cephObjectZoneNamespaceLister implements the CephObjectZoneNamespaceLister
// interface.
type cephObjectZoneNamespaceLister struct {
listers.ResourceIndexer[*v1.CephObjectZone]
listers.ResourceIndexer[*cephrookiov1.CephObjectZone]
}
@@ -19,10 +19,10 @@ limitations under the License.
package v1
import (
v1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
"k8s.io/apimachinery/pkg/labels"
"k8s.io/client-go/listers"
"k8s.io/client-go/tools/cache"
cephrookiov1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
labels "k8s.io/apimachinery/pkg/labels"
listers "k8s.io/client-go/listers"
cache "k8s.io/client-go/tools/cache"
)
// CephObjectZoneGroupLister helps list CephObjectZoneGroups.
@@ -30,7 +30,7 @@ import (
type CephObjectZoneGroupLister interface {
// List lists all CephObjectZoneGroups in the indexer.
// Objects returned here must be treated as read-only.
List(selector labels.Selector) (ret []*v1.CephObjectZoneGroup, err error)
List(selector labels.Selector) (ret []*cephrookiov1.CephObjectZoneGroup, err error)
// CephObjectZoneGroups returns an object that can list and get CephObjectZoneGroups.
CephObjectZoneGroups(namespace string) CephObjectZoneGroupNamespaceLister
CephObjectZoneGroupListerExpansion
@@ -38,17 +38,17 @@ type CephObjectZoneGroupLister interface {
// cephObjectZoneGroupLister implements the CephObjectZoneGroupLister interface.
type cephObjectZoneGroupLister struct {
listers.ResourceIndexer[*v1.CephObjectZoneGroup]
listers.ResourceIndexer[*cephrookiov1.CephObjectZoneGroup]
}
// NewCephObjectZoneGroupLister returns a new CephObjectZoneGroupLister.
func NewCephObjectZoneGroupLister(indexer cache.Indexer) CephObjectZoneGroupLister {
return &cephObjectZoneGroupLister{listers.New[*v1.CephObjectZoneGroup](indexer, v1.Resource("cephobjectzonegroup"))}
return &cephObjectZoneGroupLister{listers.New[*cephrookiov1.CephObjectZoneGroup](indexer, cephrookiov1.Resource("cephobjectzonegroup"))}
}
// CephObjectZoneGroups returns an object that can list and get CephObjectZoneGroups.
func (s *cephObjectZoneGroupLister) CephObjectZoneGroups(namespace string) CephObjectZoneGroupNamespaceLister {
return cephObjectZoneGroupNamespaceLister{listers.NewNamespaced[*v1.CephObjectZoneGroup](s.ResourceIndexer, namespace)}
return cephObjectZoneGroupNamespaceLister{listers.NewNamespaced[*cephrookiov1.CephObjectZoneGroup](s.ResourceIndexer, namespace)}
}
// CephObjectZoneGroupNamespaceLister helps list and get CephObjectZoneGroups.
@@ -56,15 +56,15 @@ func (s *cephObjectZoneGroupLister) CephObjectZoneGroups(namespace string) CephO
type CephObjectZoneGroupNamespaceLister interface {
// List lists all CephObjectZoneGroups in the indexer for a given namespace.
// Objects returned here must be treated as read-only.
List(selector labels.Selector) (ret []*v1.CephObjectZoneGroup, err error)
List(selector labels.Selector) (ret []*cephrookiov1.CephObjectZoneGroup, err error)
// Get retrieves the CephObjectZoneGroup from the indexer for a given namespace and name.
// Objects returned here must be treated as read-only.
Get(name string) (*v1.CephObjectZoneGroup, error)
Get(name string) (*cephrookiov1.CephObjectZoneGroup, error)
CephObjectZoneGroupNamespaceListerExpansion
}
// cephObjectZoneGroupNamespaceLister implements the CephObjectZoneGroupNamespaceLister
// interface.
type cephObjectZoneGroupNamespaceLister struct {
listers.ResourceIndexer[*v1.CephObjectZoneGroup]
listers.ResourceIndexer[*cephrookiov1.CephObjectZoneGroup]
}
@@ -19,10 +19,10 @@ limitations under the License.
package v1
import (
v1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
"k8s.io/apimachinery/pkg/labels"
"k8s.io/client-go/listers"
"k8s.io/client-go/tools/cache"
cephrookiov1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1"
labels "k8s.io/apimachinery/pkg/labels"
listers "k8s.io/client-go/listers"
cache "k8s.io/client-go/tools/cache"
)
// CephRBDMirrorLister helps list CephRBDMirrors.
@@ -30,7 +30,7 @@ import (
type CephRBDMirrorLister interface {
// List lists all CephRBDMirrors in the indexer.
// Objects returned here must be treated as read-only.
List(selector labels.Selector) (ret []*v1.CephRBDMirror, err error)
List(selector labels.Selector) (ret []*cephrookiov1.CephRBDMirror, err error)
// CephRBDMirrors returns an object that can list and get CephRBDMirrors.
CephRBDMirrors(namespace string) CephRBDMirrorNamespaceLister
CephRBDMirrorListerExpansion
@@ -38,17 +38,17 @@ type CephRBDMirrorLister interface {
// cephRBDMirrorLister implements the CephRBDMirrorLister interface.
type cephRBDMirrorLister struct {
listers.ResourceIndexer[*v1.CephRBDMirror]
listers.ResourceIndexer[*cephrookiov1.CephRBDMirror]
}
// NewCephRBDMirrorLister returns a new CephRBDMirrorLister.
func NewCephRBDMirrorLister(indexer cache.Indexer) CephRBDMirrorLister {
return &cephRBDMirrorLister{listers.New[*v1.CephRBDMirror](indexer, v1.Resource("cephrbdmirror"))}
return &cephRBDMirrorLister{listers.New[*cephrookiov1.CephRBDMirror](indexer, cephrookiov1.Resource("cephrbdmirror"))}
}
// CephRBDMirrors returns an object that can list and get CephRBDMirrors.
func (s *cephRBDMirrorLister) CephRBDMirrors(namespace string) CephRBDMirrorNamespaceLister {
return cephRBDMirrorNamespaceLister{listers.NewNamespaced[*v1.CephRBDMirror](s.ResourceIndexer, namespace)}
return cephRBDMirrorNamespaceLister{listers.NewNamespaced[*cephrookiov1.CephRBDMirror](s.ResourceIndexer, namespace)}
}
// CephRBDMirrorNamespaceLister helps list and get CephRBDMirrors.
@@ -56,15 +56,15 @@ func (s *cephRBDMirrorLister) CephRBDMirrors(namespace string) CephRBDMirrorName
type CephRBDMirrorNamespaceLister interface {
// List lists all CephRBDMirrors in the indexer for a given namespace.
// Objects returned here must be treated as read-only.
List(selector labels.Selector) (ret []*v1.CephRBDMirror, err error)
List(selector labels.Selector) (ret []*cephrookiov1.CephRBDMirror, err error)
// Get retrieves the CephRBDMirror from the indexer for a given namespace and name.
// Objects returned here must be treated as read-only.
Get(name string) (*v1.CephRBDMirror, error)
Get(name string) (*cephrookiov1.CephRBDMirror, error)
CephRBDMirrorNamespaceListerExpansion
}
// cephRBDMirrorNamespaceLister implements the CephRBDMirrorNamespaceLister
// interface.
type cephRBDMirrorNamespaceLister struct {
listers.ResourceIndexer[*v1.CephRBDMirror]
listers.ResourceIndexer[*cephrookiov1.CephRBDMirror]
}