diff --git a/pkg/apis/ceph.rook.io/v1alpha1/zz_generated.deepcopy.go b/pkg/apis/ceph.rook.io/v1alpha1/zz_generated.deepcopy.go index 71455f456..1b337e538 100644 --- a/pkg/apis/ceph.rook.io/v1alpha1/zz_generated.deepcopy.go +++ b/pkg/apis/ceph.rook.io/v1alpha1/zz_generated.deepcopy.go @@ -1,7 +1,7 @@ // +build !ignore_autogenerated /* -Copyright 2018 The Kubernetes Authors. +Copyright The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// This file was autogenerated by deepcopy-gen. Do not edit it manually! +// Code generated by deepcopy-gen. DO NOT EDIT. package v1alpha1 @@ -49,9 +49,8 @@ func (in *Cluster) DeepCopy() *Cluster { func (in *Cluster) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c - } else { - return nil } + return nil } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. @@ -83,9 +82,8 @@ func (in *ClusterList) DeepCopy() *ClusterList { func (in *ClusterList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c - } else { - return nil } + return nil } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. @@ -97,9 +95,7 @@ func (in *ClusterSpec) DeepCopyInto(out *ClusterSpec) { in, out := &in.Placement, &out.Placement *out = make(v1alpha2.PlacementSpec, len(*in)) for key, val := range *in { - newVal := new(v1alpha2.Placement) - val.DeepCopyInto(newVal) - (*out)[key] = *newVal + (*out)[key] = *val.DeepCopy() } } in.Network.DeepCopyInto(&out.Network) @@ -195,9 +191,8 @@ func (in *Filesystem) DeepCopy() *Filesystem { func (in *Filesystem) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c - } else { - return nil } + return nil } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. @@ -229,9 +224,8 @@ func (in *FilesystemList) DeepCopy() *FilesystemList { func (in *FilesystemList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c - } else { - return nil } + return nil } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. @@ -332,9 +326,8 @@ func (in *ObjectStore) DeepCopy() *ObjectStore { func (in *ObjectStore) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c - } else { - return nil } + return nil } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. @@ -366,9 +359,8 @@ func (in *ObjectStoreList) DeepCopy() *ObjectStoreList { func (in *ObjectStoreList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c - } else { - return nil } + return nil } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. @@ -413,9 +405,8 @@ func (in *Pool) DeepCopy() *Pool { func (in *Pool) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c - } else { - return nil } + return nil } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. @@ -447,9 +438,8 @@ func (in *PoolList) DeepCopy() *PoolList { func (in *PoolList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c - } else { - return nil } + return nil } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. diff --git a/pkg/apis/ceph.rook.io/v1beta1/zz_generated.deepcopy.go b/pkg/apis/ceph.rook.io/v1beta1/zz_generated.deepcopy.go index 15ebb20ba..d1c0f4889 100644 --- a/pkg/apis/ceph.rook.io/v1beta1/zz_generated.deepcopy.go +++ b/pkg/apis/ceph.rook.io/v1beta1/zz_generated.deepcopy.go @@ -1,7 +1,7 @@ // +build !ignore_autogenerated /* -Copyright 2018 The Kubernetes Authors. +Copyright The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// This file was autogenerated by deepcopy-gen. Do not edit it manually! +// Code generated by deepcopy-gen. DO NOT EDIT. package v1beta1 @@ -49,9 +49,8 @@ func (in *Cluster) DeepCopy() *Cluster { func (in *Cluster) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c - } else { - return nil } + return nil } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. @@ -83,9 +82,8 @@ func (in *ClusterList) DeepCopy() *ClusterList { func (in *ClusterList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c - } else { - return nil } + return nil } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. @@ -96,9 +94,7 @@ func (in *ClusterSpec) DeepCopyInto(out *ClusterSpec) { in, out := &in.Placement, &out.Placement *out = make(v1alpha2.PlacementSpec, len(*in)) for key, val := range *in { - newVal := new(v1alpha2.Placement) - val.DeepCopyInto(newVal) - (*out)[key] = *newVal + (*out)[key] = *val.DeepCopy() } } in.Network.DeepCopyInto(&out.Network) @@ -195,9 +191,8 @@ func (in *Filesystem) DeepCopy() *Filesystem { func (in *Filesystem) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c - } else { - return nil } + return nil } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. @@ -229,9 +224,8 @@ func (in *FilesystemList) DeepCopy() *FilesystemList { func (in *FilesystemList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c - } else { - return nil } + return nil } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. @@ -332,9 +326,8 @@ func (in *ObjectStore) DeepCopy() *ObjectStore { func (in *ObjectStore) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c - } else { - return nil } + return nil } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. @@ -366,9 +359,8 @@ func (in *ObjectStoreList) DeepCopy() *ObjectStoreList { func (in *ObjectStoreList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c - } else { - return nil } + return nil } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. @@ -413,9 +405,8 @@ func (in *Pool) DeepCopy() *Pool { func (in *Pool) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c - } else { - return nil } + return nil } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. @@ -447,9 +438,8 @@ func (in *PoolList) DeepCopy() *PoolList { func (in *PoolList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c - } else { - return nil } + return nil } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. diff --git a/pkg/apis/cockroachdb.rook.io/v1alpha1/zz_generated.deepcopy.go b/pkg/apis/cockroachdb.rook.io/v1alpha1/zz_generated.deepcopy.go index a1ae821d4..505253f56 100644 --- a/pkg/apis/cockroachdb.rook.io/v1alpha1/zz_generated.deepcopy.go +++ b/pkg/apis/cockroachdb.rook.io/v1alpha1/zz_generated.deepcopy.go @@ -1,7 +1,7 @@ // +build !ignore_autogenerated /* -Copyright 2018 The Kubernetes Authors. +Copyright The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// This file was autogenerated by deepcopy-gen. Do not edit it manually! +// Code generated by deepcopy-gen. DO NOT EDIT. package v1alpha1 @@ -47,9 +47,8 @@ func (in *Cluster) DeepCopy() *Cluster { func (in *Cluster) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c - } else { - return nil } + return nil } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. @@ -81,9 +80,8 @@ func (in *ClusterList) DeepCopy() *ClusterList { func (in *ClusterList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c - } else { - return nil } + return nil } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. diff --git a/pkg/apis/minio.rook.io/v1alpha1/zz_generated.deepcopy.go b/pkg/apis/minio.rook.io/v1alpha1/zz_generated.deepcopy.go index 7d4d52c71..3cd68ec7a 100644 --- a/pkg/apis/minio.rook.io/v1alpha1/zz_generated.deepcopy.go +++ b/pkg/apis/minio.rook.io/v1alpha1/zz_generated.deepcopy.go @@ -1,7 +1,7 @@ // +build !ignore_autogenerated /* -Copyright 2018 The Kubernetes Authors. +Copyright The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// This file was autogenerated by deepcopy-gen. Do not edit it manually! +// Code generated by deepcopy-gen. DO NOT EDIT. package v1alpha1 @@ -48,9 +48,8 @@ func (in *ObjectStore) DeepCopy() *ObjectStore { func (in *ObjectStore) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c - } else { - return nil } + return nil } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. @@ -82,9 +81,8 @@ func (in *ObjectStoreList) DeepCopy() *ObjectStoreList { func (in *ObjectStoreList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c - } else { - return nil } + return nil } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. @@ -95,9 +93,7 @@ func (in *ObjectStoreSpec) DeepCopyInto(out *ObjectStoreSpec) { in, out := &in.Placement, &out.Placement *out = make(v1alpha2.PlacementSpec, len(*in)) for key, val := range *in { - newVal := new(v1alpha2.Placement) - val.DeepCopyInto(newVal) - (*out)[key] = *newVal + (*out)[key] = *val.DeepCopy() } } out.Credentials = in.Credentials diff --git a/pkg/apis/nfs.rook.io/v1alpha1/zz_generated.deepcopy.go b/pkg/apis/nfs.rook.io/v1alpha1/zz_generated.deepcopy.go index bcfb1e982..30ed96311 100644 --- a/pkg/apis/nfs.rook.io/v1alpha1/zz_generated.deepcopy.go +++ b/pkg/apis/nfs.rook.io/v1alpha1/zz_generated.deepcopy.go @@ -1,7 +1,7 @@ // +build !ignore_autogenerated /* -Copyright 2018 The Kubernetes Authors. +Copyright The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// This file was autogenerated by deepcopy-gen. Do not edit it manually! +// Code generated by deepcopy-gen. DO NOT EDIT. package v1alpha1 @@ -86,9 +86,8 @@ func (in *NFSServer) DeepCopy() *NFSServer { func (in *NFSServer) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c - } else { - return nil } + return nil } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. @@ -120,9 +119,8 @@ func (in *NFSServerList) DeepCopy() *NFSServerList { func (in *NFSServerList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c - } else { - return nil } + return nil } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. diff --git a/pkg/apis/rook.io/v1alpha1/zz_generated.deepcopy.go b/pkg/apis/rook.io/v1alpha1/zz_generated.deepcopy.go index 75eb8a5cf..5d88473cd 100644 --- a/pkg/apis/rook.io/v1alpha1/zz_generated.deepcopy.go +++ b/pkg/apis/rook.io/v1alpha1/zz_generated.deepcopy.go @@ -1,7 +1,7 @@ // +build !ignore_autogenerated /* -Copyright 2018 The Kubernetes Authors. +Copyright The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// This file was autogenerated by deepcopy-gen. Do not edit it manually! +// Code generated by deepcopy-gen. DO NOT EDIT. package v1alpha1 @@ -65,9 +65,8 @@ func (in *Cluster) DeepCopy() *Cluster { func (in *Cluster) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c - } else { - return nil } + return nil } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. @@ -99,9 +98,8 @@ func (in *ClusterList) DeepCopy() *ClusterList { func (in *ClusterList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c - } else { - return nil } + return nil } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. @@ -227,9 +225,8 @@ func (in *Filesystem) DeepCopy() *Filesystem { func (in *Filesystem) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c - } else { - return nil } + return nil } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. @@ -261,9 +258,8 @@ func (in *FilesystemList) DeepCopy() *FilesystemList { func (in *FilesystemList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c - } else { - return nil } + return nil } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. @@ -349,6 +345,28 @@ func (in *Node) DeepCopy() *Node { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in NodesByName) DeepCopyInto(out *NodesByName) { + { + in := &in + *out = make(NodesByName, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + return + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodesByName. +func (in NodesByName) DeepCopy() NodesByName { + if in == nil { + return nil + } + out := new(NodesByName) + in.DeepCopyInto(out) + return *out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ObjectStore) DeepCopyInto(out *ObjectStore) { *out = *in @@ -372,9 +390,8 @@ func (in *ObjectStore) DeepCopy() *ObjectStore { func (in *ObjectStore) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c - } else { - return nil } + return nil } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. @@ -406,9 +423,8 @@ func (in *ObjectStoreList) DeepCopy() *ObjectStoreList { func (in *ObjectStoreList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c - } else { - return nil } + return nil } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. @@ -436,30 +452,18 @@ func (in *Placement) DeepCopyInto(out *Placement) { out.TypeMeta = in.TypeMeta if in.NodeAffinity != nil { in, out := &in.NodeAffinity, &out.NodeAffinity - if *in == nil { - *out = nil - } else { - *out = new(v1.NodeAffinity) - (*in).DeepCopyInto(*out) - } + *out = new(v1.NodeAffinity) + (*in).DeepCopyInto(*out) } if in.PodAffinity != nil { in, out := &in.PodAffinity, &out.PodAffinity - if *in == nil { - *out = nil - } else { - *out = new(v1.PodAffinity) - (*in).DeepCopyInto(*out) - } + *out = new(v1.PodAffinity) + (*in).DeepCopyInto(*out) } if in.PodAntiAffinity != nil { in, out := &in.PodAntiAffinity, &out.PodAntiAffinity - if *in == nil { - *out = nil - } else { - *out = new(v1.PodAntiAffinity) - (*in).DeepCopyInto(*out) - } + *out = new(v1.PodAntiAffinity) + (*in).DeepCopyInto(*out) } if in.Tolerations != nil { in, out := &in.Tolerations, &out.Tolerations @@ -485,9 +489,8 @@ func (in *Placement) DeepCopy() *Placement { func (in *Placement) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c - } else { - return nil } + return nil } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. @@ -516,9 +519,8 @@ func (in *PlacementSpec) DeepCopy() *PlacementSpec { func (in *PlacementSpec) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c - } else { - return nil } + return nil } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. @@ -544,9 +546,8 @@ func (in *Pool) DeepCopy() *Pool { func (in *Pool) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c - } else { - return nil } + return nil } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. @@ -578,9 +579,8 @@ func (in *PoolList) DeepCopy() *PoolList { func (in *PoolList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c - } else { - return nil } + return nil } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. @@ -642,12 +642,8 @@ func (in *Selection) DeepCopyInto(out *Selection) { *out = *in if in.UseAllDevices != nil { in, out := &in.UseAllDevices, &out.UseAllDevices - if *in == nil { - *out = nil - } else { - *out = new(bool) - **out = **in - } + *out = new(bool) + **out = **in } if in.Directories != nil { in, out := &in.Directories, &out.Directories @@ -735,9 +731,8 @@ func (in *VolumeAttachment) DeepCopy() *VolumeAttachment { func (in *VolumeAttachment) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c - } else { - return nil } + return nil } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. @@ -769,7 +764,6 @@ func (in *VolumeAttachmentList) DeepCopy() *VolumeAttachmentList { func (in *VolumeAttachmentList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c - } else { - return nil } + return nil } diff --git a/pkg/apis/rook.io/v1alpha2/zz_generated.deepcopy.go b/pkg/apis/rook.io/v1alpha2/zz_generated.deepcopy.go index fc290c1e5..db7f9989f 100644 --- a/pkg/apis/rook.io/v1alpha2/zz_generated.deepcopy.go +++ b/pkg/apis/rook.io/v1alpha2/zz_generated.deepcopy.go @@ -1,7 +1,7 @@ // +build !ignore_autogenerated /* -Copyright 2018 The Kubernetes Authors. +Copyright The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -16,7 +16,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// This file was autogenerated by deepcopy-gen. Do not edit it manually! +// Code generated by deepcopy-gen. DO NOT EDIT. package v1alpha2 @@ -134,35 +134,45 @@ func (in *Node) DeepCopy() *Node { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in NodesByName) DeepCopyInto(out *NodesByName) { + { + in := &in + *out = make(NodesByName, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + return + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodesByName. +func (in NodesByName) DeepCopy() NodesByName { + if in == nil { + return nil + } + out := new(NodesByName) + in.DeepCopyInto(out) + return *out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *Placement) DeepCopyInto(out *Placement) { *out = *in if in.NodeAffinity != nil { in, out := &in.NodeAffinity, &out.NodeAffinity - if *in == nil { - *out = nil - } else { - *out = new(v1.NodeAffinity) - (*in).DeepCopyInto(*out) - } + *out = new(v1.NodeAffinity) + (*in).DeepCopyInto(*out) } if in.PodAffinity != nil { in, out := &in.PodAffinity, &out.PodAffinity - if *in == nil { - *out = nil - } else { - *out = new(v1.PodAffinity) - (*in).DeepCopyInto(*out) - } + *out = new(v1.PodAffinity) + (*in).DeepCopyInto(*out) } if in.PodAntiAffinity != nil { in, out := &in.PodAntiAffinity, &out.PodAntiAffinity - if *in == nil { - *out = nil - } else { - *out = new(v1.PodAntiAffinity) - (*in).DeepCopyInto(*out) - } + *out = new(v1.PodAntiAffinity) + (*in).DeepCopyInto(*out) } if in.Tolerations != nil { in, out := &in.Tolerations, &out.Tolerations @@ -184,6 +194,28 @@ func (in *Placement) DeepCopy() *Placement { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in PlacementSpec) DeepCopyInto(out *PlacementSpec) { + { + in := &in + *out = make(PlacementSpec, len(*in)) + for key, val := range *in { + (*out)[key] = *val.DeepCopy() + } + return + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PlacementSpec. +func (in PlacementSpec) DeepCopy() PlacementSpec { + if in == nil { + return nil + } + out := new(PlacementSpec) + in.DeepCopyInto(out) + return *out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *PortSpec) DeepCopyInto(out *PortSpec) { *out = *in @@ -200,17 +232,35 @@ func (in *PortSpec) DeepCopy() *PortSpec { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in ResourceSpec) DeepCopyInto(out *ResourceSpec) { + { + in := &in + *out = make(ResourceSpec, len(*in)) + for key, val := range *in { + (*out)[key] = *val.DeepCopy() + } + return + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceSpec. +func (in ResourceSpec) DeepCopy() ResourceSpec { + if in == nil { + return nil + } + out := new(ResourceSpec) + in.DeepCopyInto(out) + return *out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *Selection) DeepCopyInto(out *Selection) { *out = *in if in.UseAllDevices != nil { in, out := &in.UseAllDevices, &out.UseAllDevices - if *in == nil { - *out = nil - } else { - *out = new(bool) - **out = **in - } + *out = new(bool) + **out = **in } if in.Devices != nil { in, out := &in.Devices, &out.Devices @@ -275,9 +325,8 @@ func (in *StorageScopeSpec) DeepCopy() *StorageScopeSpec { func (in *StorageScopeSpec) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c - } else { - return nil } + return nil } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. @@ -307,9 +356,8 @@ func (in *Volume) DeepCopy() *Volume { func (in *Volume) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c - } else { - return nil } + return nil } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. @@ -341,7 +389,6 @@ func (in *VolumeList) DeepCopy() *VolumeList { func (in *VolumeList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c - } else { - return nil } + return nil } diff --git a/pkg/client/clientset/versioned/clientset.go b/pkg/client/clientset/versioned/clientset.go index 863c9d8d3..7a5a61e66 100644 --- a/pkg/client/clientset/versioned/clientset.go +++ b/pkg/client/clientset/versioned/clientset.go @@ -1,5 +1,5 @@ /* -Copyright 2018 The Kubernetes Authors. +Copyright The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -14,17 +14,18 @@ See the License for the specific language governing permissions and limitations under the License. */ +// Code generated by client-gen. DO NOT EDIT. + package versioned import ( - glog "github.com/golang/glog" - cephv1alpha1 "github.com/rook/rook/pkg/client/clientset/versioned/typed/ceph/v1alpha1" - cephv1beta1 "github.com/rook/rook/pkg/client/clientset/versioned/typed/ceph/v1beta1" - cockroachdbv1alpha1 "github.com/rook/rook/pkg/client/clientset/versioned/typed/cockroachdb/v1alpha1" - miniov1alpha1 "github.com/rook/rook/pkg/client/clientset/versioned/typed/minio/v1alpha1" - nfsv1alpha1 "github.com/rook/rook/pkg/client/clientset/versioned/typed/nfs/v1alpha1" - rookv1alpha1 "github.com/rook/rook/pkg/client/clientset/versioned/typed/rook/v1alpha1" - rookv1alpha2 "github.com/rook/rook/pkg/client/clientset/versioned/typed/rook/v1alpha2" + cephv1alpha1 "github.com/rook/rook/pkg/client/clientset/versioned/typed/ceph.rook.io/v1alpha1" + cephv1beta1 "github.com/rook/rook/pkg/client/clientset/versioned/typed/ceph.rook.io/v1beta1" + cockroachdbv1alpha1 "github.com/rook/rook/pkg/client/clientset/versioned/typed/cockroachdb.rook.io/v1alpha1" + miniov1alpha1 "github.com/rook/rook/pkg/client/clientset/versioned/typed/minio.rook.io/v1alpha1" + nfsv1alpha1 "github.com/rook/rook/pkg/client/clientset/versioned/typed/nfs.rook.io/v1alpha1" + rookv1alpha1 "github.com/rook/rook/pkg/client/clientset/versioned/typed/rook.io/v1alpha1" + rookv1alpha2 "github.com/rook/rook/pkg/client/clientset/versioned/typed/rook.io/v1alpha2" discovery "k8s.io/client-go/discovery" rest "k8s.io/client-go/rest" flowcontrol "k8s.io/client-go/util/flowcontrol" @@ -176,7 +177,6 @@ func NewForConfig(c *rest.Config) (*Clientset, error) { cs.DiscoveryClient, err = discovery.NewDiscoveryClientForConfig(&configShallowCopy) if err != nil { - glog.Errorf("failed to create the DiscoveryClient: %v", err) return nil, err } return &cs, nil diff --git a/pkg/client/clientset/versioned/doc.go b/pkg/client/clientset/versioned/doc.go index d47b198e6..41721ca52 100644 --- a/pkg/client/clientset/versioned/doc.go +++ b/pkg/client/clientset/versioned/doc.go @@ -1,5 +1,5 @@ /* -Copyright 2018 The Kubernetes Authors. +Copyright The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// This package is generated by client-gen with custom arguments. +// Code generated by client-gen. DO NOT EDIT. // This package has the automatically generated clientset. package versioned diff --git a/pkg/client/clientset/versioned/fake/clientset_generated.go b/pkg/client/clientset/versioned/fake/clientset_generated.go index 6ffbb4e98..f9c0e359a 100644 --- a/pkg/client/clientset/versioned/fake/clientset_generated.go +++ b/pkg/client/clientset/versioned/fake/clientset_generated.go @@ -1,5 +1,5 @@ /* -Copyright 2018 The Kubernetes Authors. +Copyright The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -14,24 +14,26 @@ See the License for the specific language governing permissions and limitations under the License. */ +// Code generated by client-gen. DO NOT EDIT. + package fake import ( clientset "github.com/rook/rook/pkg/client/clientset/versioned" - cephv1alpha1 "github.com/rook/rook/pkg/client/clientset/versioned/typed/ceph/v1alpha1" - fakecephv1alpha1 "github.com/rook/rook/pkg/client/clientset/versioned/typed/ceph/v1alpha1/fake" - cephv1beta1 "github.com/rook/rook/pkg/client/clientset/versioned/typed/ceph/v1beta1" - fakecephv1beta1 "github.com/rook/rook/pkg/client/clientset/versioned/typed/ceph/v1beta1/fake" - cockroachdbv1alpha1 "github.com/rook/rook/pkg/client/clientset/versioned/typed/cockroachdb/v1alpha1" - fakecockroachdbv1alpha1 "github.com/rook/rook/pkg/client/clientset/versioned/typed/cockroachdb/v1alpha1/fake" - miniov1alpha1 "github.com/rook/rook/pkg/client/clientset/versioned/typed/minio/v1alpha1" - fakeminiov1alpha1 "github.com/rook/rook/pkg/client/clientset/versioned/typed/minio/v1alpha1/fake" - nfsv1alpha1 "github.com/rook/rook/pkg/client/clientset/versioned/typed/nfs/v1alpha1" - fakenfsv1alpha1 "github.com/rook/rook/pkg/client/clientset/versioned/typed/nfs/v1alpha1/fake" - rookv1alpha1 "github.com/rook/rook/pkg/client/clientset/versioned/typed/rook/v1alpha1" - fakerookv1alpha1 "github.com/rook/rook/pkg/client/clientset/versioned/typed/rook/v1alpha1/fake" - rookv1alpha2 "github.com/rook/rook/pkg/client/clientset/versioned/typed/rook/v1alpha2" - fakerookv1alpha2 "github.com/rook/rook/pkg/client/clientset/versioned/typed/rook/v1alpha2/fake" + cephv1alpha1 "github.com/rook/rook/pkg/client/clientset/versioned/typed/ceph.rook.io/v1alpha1" + fakecephv1alpha1 "github.com/rook/rook/pkg/client/clientset/versioned/typed/ceph.rook.io/v1alpha1/fake" + cephv1beta1 "github.com/rook/rook/pkg/client/clientset/versioned/typed/ceph.rook.io/v1beta1" + fakecephv1beta1 "github.com/rook/rook/pkg/client/clientset/versioned/typed/ceph.rook.io/v1beta1/fake" + cockroachdbv1alpha1 "github.com/rook/rook/pkg/client/clientset/versioned/typed/cockroachdb.rook.io/v1alpha1" + fakecockroachdbv1alpha1 "github.com/rook/rook/pkg/client/clientset/versioned/typed/cockroachdb.rook.io/v1alpha1/fake" + miniov1alpha1 "github.com/rook/rook/pkg/client/clientset/versioned/typed/minio.rook.io/v1alpha1" + fakeminiov1alpha1 "github.com/rook/rook/pkg/client/clientset/versioned/typed/minio.rook.io/v1alpha1/fake" + nfsv1alpha1 "github.com/rook/rook/pkg/client/clientset/versioned/typed/nfs.rook.io/v1alpha1" + fakenfsv1alpha1 "github.com/rook/rook/pkg/client/clientset/versioned/typed/nfs.rook.io/v1alpha1/fake" + rookv1alpha1 "github.com/rook/rook/pkg/client/clientset/versioned/typed/rook.io/v1alpha1" + fakerookv1alpha1 "github.com/rook/rook/pkg/client/clientset/versioned/typed/rook.io/v1alpha1/fake" + rookv1alpha2 "github.com/rook/rook/pkg/client/clientset/versioned/typed/rook.io/v1alpha2" + fakerookv1alpha2 "github.com/rook/rook/pkg/client/clientset/versioned/typed/rook.io/v1alpha2/fake" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/watch" "k8s.io/client-go/discovery" @@ -52,10 +54,18 @@ func NewSimpleClientset(objects ...runtime.Object) *Clientset { } cs := &Clientset{} - cs.Fake.AddReactor("*", "*", testing.ObjectReaction(o)) - cs.Fake.AddWatchReactor("*", testing.DefaultWatchReactor(watch.NewFake(), nil)) - 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) { + gvr := action.GetResource() + ns := action.GetNamespace() + watch, err := o.Watch(gvr, ns) + if err != nil { + return false, nil, err + } + return true, watch, nil + }) + return cs } diff --git a/pkg/client/clientset/versioned/fake/doc.go b/pkg/client/clientset/versioned/fake/doc.go index a92832030..9b99e7167 100644 --- a/pkg/client/clientset/versioned/fake/doc.go +++ b/pkg/client/clientset/versioned/fake/doc.go @@ -1,5 +1,5 @@ /* -Copyright 2018 The Kubernetes Authors. +Copyright The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// This package is generated by client-gen with custom arguments. +// Code generated by client-gen. DO NOT EDIT. // This package has the automatically generated fake clientset. package fake diff --git a/pkg/client/clientset/versioned/fake/register.go b/pkg/client/clientset/versioned/fake/register.go index 31eb9f809..d413ddf7b 100644 --- a/pkg/client/clientset/versioned/fake/register.go +++ b/pkg/client/clientset/versioned/fake/register.go @@ -1,5 +1,5 @@ /* -Copyright 2018 The Kubernetes Authors. +Copyright The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -14,6 +14,8 @@ See the License for the specific language governing permissions and limitations under the License. */ +// Code generated by client-gen. DO NOT EDIT. + package fake import ( @@ -44,7 +46,7 @@ func init() { // // import ( // "k8s.io/client-go/kubernetes" -// clientsetscheme "k8s.io/client-go/kuberentes/scheme" +// clientsetscheme "k8s.io/client-go/kubernetes/scheme" // aggregatorclientsetscheme "k8s.io/kube-aggregator/pkg/client/clientset_generated/clientset/scheme" // ) // @@ -61,5 +63,4 @@ func AddToScheme(scheme *runtime.Scheme) { nfsv1alpha1.AddToScheme(scheme) rookv1alpha1.AddToScheme(scheme) rookv1alpha2.AddToScheme(scheme) - } diff --git a/pkg/client/clientset/versioned/scheme/doc.go b/pkg/client/clientset/versioned/scheme/doc.go index 9e5efb259..7dc375616 100644 --- a/pkg/client/clientset/versioned/scheme/doc.go +++ b/pkg/client/clientset/versioned/scheme/doc.go @@ -1,5 +1,5 @@ /* -Copyright 2018 The Kubernetes Authors. +Copyright The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// This package is generated by client-gen with custom arguments. +// Code generated by client-gen. DO NOT EDIT. // This package contains the scheme of the automatically generated clientset. package scheme diff --git a/pkg/client/clientset/versioned/scheme/register.go b/pkg/client/clientset/versioned/scheme/register.go index fbb552255..23051f7d3 100644 --- a/pkg/client/clientset/versioned/scheme/register.go +++ b/pkg/client/clientset/versioned/scheme/register.go @@ -1,5 +1,5 @@ /* -Copyright 2018 The Kubernetes Authors. +Copyright The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -14,6 +14,8 @@ See the License for the specific language governing permissions and limitations under the License. */ +// Code generated by client-gen. DO NOT EDIT. + package scheme import ( @@ -44,7 +46,7 @@ func init() { // // import ( // "k8s.io/client-go/kubernetes" -// clientsetscheme "k8s.io/client-go/kuberentes/scheme" +// clientsetscheme "k8s.io/client-go/kubernetes/scheme" // aggregatorclientsetscheme "k8s.io/kube-aggregator/pkg/client/clientset_generated/clientset/scheme" // ) // @@ -61,5 +63,4 @@ func AddToScheme(scheme *runtime.Scheme) { nfsv1alpha1.AddToScheme(scheme) rookv1alpha1.AddToScheme(scheme) rookv1alpha2.AddToScheme(scheme) - } diff --git a/pkg/client/clientset/versioned/typed/ceph/v1alpha1/ceph_client.go b/pkg/client/clientset/versioned/typed/ceph.rook.io/v1alpha1/ceph.rook.io_client.go similarity index 97% rename from pkg/client/clientset/versioned/typed/ceph/v1alpha1/ceph_client.go rename to pkg/client/clientset/versioned/typed/ceph.rook.io/v1alpha1/ceph.rook.io_client.go index be40a8973..2f2fc4859 100644 --- a/pkg/client/clientset/versioned/typed/ceph/v1alpha1/ceph_client.go +++ b/pkg/client/clientset/versioned/typed/ceph.rook.io/v1alpha1/ceph.rook.io_client.go @@ -1,5 +1,5 @@ /* -Copyright 2018 The Kubernetes Authors. +Copyright The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -14,6 +14,8 @@ See the License for the specific language governing permissions and limitations under the License. */ +// Code generated by client-gen. DO NOT EDIT. + package v1alpha1 import ( diff --git a/pkg/client/clientset/versioned/typed/ceph/v1alpha1/cluster.go b/pkg/client/clientset/versioned/typed/ceph.rook.io/v1alpha1/cluster.go similarity index 98% rename from pkg/client/clientset/versioned/typed/ceph/v1alpha1/cluster.go rename to pkg/client/clientset/versioned/typed/ceph.rook.io/v1alpha1/cluster.go index 63e24b04f..591da67e0 100644 --- a/pkg/client/clientset/versioned/typed/ceph/v1alpha1/cluster.go +++ b/pkg/client/clientset/versioned/typed/ceph.rook.io/v1alpha1/cluster.go @@ -1,5 +1,5 @@ /* -Copyright 2018 The Kubernetes Authors. +Copyright The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -14,6 +14,8 @@ See the License for the specific language governing permissions and limitations under the License. */ +// Code generated by client-gen. DO NOT EDIT. + package v1alpha1 import ( diff --git a/pkg/client/clientset/versioned/typed/cockroachdb/v1alpha1/doc.go b/pkg/client/clientset/versioned/typed/ceph.rook.io/v1alpha1/doc.go similarity index 85% rename from pkg/client/clientset/versioned/typed/cockroachdb/v1alpha1/doc.go rename to pkg/client/clientset/versioned/typed/ceph.rook.io/v1alpha1/doc.go index f51751d64..df51baa4d 100644 --- a/pkg/client/clientset/versioned/typed/cockroachdb/v1alpha1/doc.go +++ b/pkg/client/clientset/versioned/typed/ceph.rook.io/v1alpha1/doc.go @@ -1,5 +1,5 @@ /* -Copyright 2018 The Kubernetes Authors. +Copyright The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// This package is generated by client-gen with custom arguments. +// Code generated by client-gen. DO NOT EDIT. // This package has the automatically generated typed clients. package v1alpha1 diff --git a/pkg/client/clientset/versioned/typed/ceph/v1beta1/fake/doc.go b/pkg/client/clientset/versioned/typed/ceph.rook.io/v1alpha1/fake/doc.go similarity index 85% rename from pkg/client/clientset/versioned/typed/ceph/v1beta1/fake/doc.go rename to pkg/client/clientset/versioned/typed/ceph.rook.io/v1alpha1/fake/doc.go index d4003d501..16f443990 100644 --- a/pkg/client/clientset/versioned/typed/ceph/v1beta1/fake/doc.go +++ b/pkg/client/clientset/versioned/typed/ceph.rook.io/v1alpha1/fake/doc.go @@ -1,5 +1,5 @@ /* -Copyright 2018 The Kubernetes Authors. +Copyright The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// This package is generated by client-gen with custom arguments. +// Code generated by client-gen. DO NOT EDIT. // Package fake has the automatically generated clients. package fake diff --git a/pkg/client/clientset/versioned/typed/ceph/v1alpha1/fake/fake_ceph_client.go b/pkg/client/clientset/versioned/typed/ceph.rook.io/v1alpha1/fake/fake_ceph.rook.io_client.go similarity index 92% rename from pkg/client/clientset/versioned/typed/ceph/v1alpha1/fake/fake_ceph_client.go rename to pkg/client/clientset/versioned/typed/ceph.rook.io/v1alpha1/fake/fake_ceph.rook.io_client.go index b0a1316aa..8d719a37a 100644 --- a/pkg/client/clientset/versioned/typed/ceph/v1alpha1/fake/fake_ceph_client.go +++ b/pkg/client/clientset/versioned/typed/ceph.rook.io/v1alpha1/fake/fake_ceph.rook.io_client.go @@ -1,5 +1,5 @@ /* -Copyright 2018 The Kubernetes Authors. +Copyright The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -14,10 +14,12 @@ See the License for the specific language governing permissions and limitations under the License. */ +// Code generated by client-gen. DO NOT EDIT. + package fake import ( - v1alpha1 "github.com/rook/rook/pkg/client/clientset/versioned/typed/ceph/v1alpha1" + v1alpha1 "github.com/rook/rook/pkg/client/clientset/versioned/typed/ceph.rook.io/v1alpha1" rest "k8s.io/client-go/rest" testing "k8s.io/client-go/testing" ) diff --git a/pkg/client/clientset/versioned/typed/ceph/v1alpha1/fake/fake_cluster.go b/pkg/client/clientset/versioned/typed/ceph.rook.io/v1alpha1/fake/fake_cluster.go similarity index 96% rename from pkg/client/clientset/versioned/typed/ceph/v1alpha1/fake/fake_cluster.go rename to pkg/client/clientset/versioned/typed/ceph.rook.io/v1alpha1/fake/fake_cluster.go index 7f9bc9f06..813221c11 100644 --- a/pkg/client/clientset/versioned/typed/ceph/v1alpha1/fake/fake_cluster.go +++ b/pkg/client/clientset/versioned/typed/ceph.rook.io/v1alpha1/fake/fake_cluster.go @@ -1,5 +1,5 @@ /* -Copyright 2018 The Kubernetes Authors. +Copyright The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -14,6 +14,8 @@ See the License for the specific language governing permissions and limitations under the License. */ +// Code generated by client-gen. DO NOT EDIT. + package fake import ( @@ -60,7 +62,7 @@ func (c *FakeClusters) List(opts v1.ListOptions) (result *v1alpha1.ClusterList, if label == nil { label = labels.Everything() } - list := &v1alpha1.ClusterList{} + list := &v1alpha1.ClusterList{ListMeta: obj.(*v1alpha1.ClusterList).ListMeta} for _, item := range obj.(*v1alpha1.ClusterList).Items { if label.Matches(labels.Set(item.Labels)) { list.Items = append(list.Items, item) diff --git a/pkg/client/clientset/versioned/typed/ceph/v1alpha1/fake/fake_filesystem.go b/pkg/client/clientset/versioned/typed/ceph.rook.io/v1alpha1/fake/fake_filesystem.go similarity index 96% rename from pkg/client/clientset/versioned/typed/ceph/v1alpha1/fake/fake_filesystem.go rename to pkg/client/clientset/versioned/typed/ceph.rook.io/v1alpha1/fake/fake_filesystem.go index 81125e1df..cf7c4f96c 100644 --- a/pkg/client/clientset/versioned/typed/ceph/v1alpha1/fake/fake_filesystem.go +++ b/pkg/client/clientset/versioned/typed/ceph.rook.io/v1alpha1/fake/fake_filesystem.go @@ -1,5 +1,5 @@ /* -Copyright 2018 The Kubernetes Authors. +Copyright The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -14,6 +14,8 @@ See the License for the specific language governing permissions and limitations under the License. */ +// Code generated by client-gen. DO NOT EDIT. + package fake import ( @@ -60,7 +62,7 @@ func (c *FakeFilesystems) List(opts v1.ListOptions) (result *v1alpha1.Filesystem if label == nil { label = labels.Everything() } - list := &v1alpha1.FilesystemList{} + list := &v1alpha1.FilesystemList{ListMeta: obj.(*v1alpha1.FilesystemList).ListMeta} for _, item := range obj.(*v1alpha1.FilesystemList).Items { if label.Matches(labels.Set(item.Labels)) { list.Items = append(list.Items, item) diff --git a/pkg/client/clientset/versioned/typed/ceph/v1alpha1/fake/fake_objectstore.go b/pkg/client/clientset/versioned/typed/ceph.rook.io/v1alpha1/fake/fake_objectstore.go similarity index 96% rename from pkg/client/clientset/versioned/typed/ceph/v1alpha1/fake/fake_objectstore.go rename to pkg/client/clientset/versioned/typed/ceph.rook.io/v1alpha1/fake/fake_objectstore.go index d455cfde1..6fd329b74 100644 --- a/pkg/client/clientset/versioned/typed/ceph/v1alpha1/fake/fake_objectstore.go +++ b/pkg/client/clientset/versioned/typed/ceph.rook.io/v1alpha1/fake/fake_objectstore.go @@ -1,5 +1,5 @@ /* -Copyright 2018 The Kubernetes Authors. +Copyright The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -14,6 +14,8 @@ See the License for the specific language governing permissions and limitations under the License. */ +// Code generated by client-gen. DO NOT EDIT. + package fake import ( @@ -60,7 +62,7 @@ func (c *FakeObjectStores) List(opts v1.ListOptions) (result *v1alpha1.ObjectSto if label == nil { label = labels.Everything() } - list := &v1alpha1.ObjectStoreList{} + list := &v1alpha1.ObjectStoreList{ListMeta: obj.(*v1alpha1.ObjectStoreList).ListMeta} for _, item := range obj.(*v1alpha1.ObjectStoreList).Items { if label.Matches(labels.Set(item.Labels)) { list.Items = append(list.Items, item) diff --git a/pkg/client/clientset/versioned/typed/ceph/v1alpha1/fake/fake_pool.go b/pkg/client/clientset/versioned/typed/ceph.rook.io/v1alpha1/fake/fake_pool.go similarity index 96% rename from pkg/client/clientset/versioned/typed/ceph/v1alpha1/fake/fake_pool.go rename to pkg/client/clientset/versioned/typed/ceph.rook.io/v1alpha1/fake/fake_pool.go index ffc63ee77..a367a708d 100644 --- a/pkg/client/clientset/versioned/typed/ceph/v1alpha1/fake/fake_pool.go +++ b/pkg/client/clientset/versioned/typed/ceph.rook.io/v1alpha1/fake/fake_pool.go @@ -1,5 +1,5 @@ /* -Copyright 2018 The Kubernetes Authors. +Copyright The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -14,6 +14,8 @@ See the License for the specific language governing permissions and limitations under the License. */ +// Code generated by client-gen. DO NOT EDIT. + package fake import ( @@ -60,7 +62,7 @@ func (c *FakePools) List(opts v1.ListOptions) (result *v1alpha1.PoolList, err er if label == nil { label = labels.Everything() } - list := &v1alpha1.PoolList{} + list := &v1alpha1.PoolList{ListMeta: obj.(*v1alpha1.PoolList).ListMeta} for _, item := range obj.(*v1alpha1.PoolList).Items { if label.Matches(labels.Set(item.Labels)) { list.Items = append(list.Items, item) diff --git a/pkg/client/clientset/versioned/typed/ceph/v1alpha1/filesystem.go b/pkg/client/clientset/versioned/typed/ceph.rook.io/v1alpha1/filesystem.go similarity index 98% rename from pkg/client/clientset/versioned/typed/ceph/v1alpha1/filesystem.go rename to pkg/client/clientset/versioned/typed/ceph.rook.io/v1alpha1/filesystem.go index f0cfadb81..45642e38b 100644 --- a/pkg/client/clientset/versioned/typed/ceph/v1alpha1/filesystem.go +++ b/pkg/client/clientset/versioned/typed/ceph.rook.io/v1alpha1/filesystem.go @@ -1,5 +1,5 @@ /* -Copyright 2018 The Kubernetes Authors. +Copyright The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -14,6 +14,8 @@ See the License for the specific language governing permissions and limitations under the License. */ +// Code generated by client-gen. DO NOT EDIT. + package v1alpha1 import ( diff --git a/pkg/client/clientset/versioned/typed/ceph/v1alpha1/generated_expansion.go b/pkg/client/clientset/versioned/typed/ceph.rook.io/v1alpha1/generated_expansion.go similarity index 89% rename from pkg/client/clientset/versioned/typed/ceph/v1alpha1/generated_expansion.go rename to pkg/client/clientset/versioned/typed/ceph.rook.io/v1alpha1/generated_expansion.go index 251cdfcb0..0a5ea3ef0 100644 --- a/pkg/client/clientset/versioned/typed/ceph/v1alpha1/generated_expansion.go +++ b/pkg/client/clientset/versioned/typed/ceph.rook.io/v1alpha1/generated_expansion.go @@ -1,5 +1,5 @@ /* -Copyright 2018 The Kubernetes Authors. +Copyright The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -14,6 +14,8 @@ See the License for the specific language governing permissions and limitations under the License. */ +// Code generated by client-gen. DO NOT EDIT. + package v1alpha1 type ClusterExpansion interface{} diff --git a/pkg/client/clientset/versioned/typed/ceph/v1alpha1/objectstore.go b/pkg/client/clientset/versioned/typed/ceph.rook.io/v1alpha1/objectstore.go similarity index 98% rename from pkg/client/clientset/versioned/typed/ceph/v1alpha1/objectstore.go rename to pkg/client/clientset/versioned/typed/ceph.rook.io/v1alpha1/objectstore.go index b6960078e..3465666d6 100644 --- a/pkg/client/clientset/versioned/typed/ceph/v1alpha1/objectstore.go +++ b/pkg/client/clientset/versioned/typed/ceph.rook.io/v1alpha1/objectstore.go @@ -1,5 +1,5 @@ /* -Copyright 2018 The Kubernetes Authors. +Copyright The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -14,6 +14,8 @@ See the License for the specific language governing permissions and limitations under the License. */ +// Code generated by client-gen. DO NOT EDIT. + package v1alpha1 import ( diff --git a/pkg/client/clientset/versioned/typed/ceph/v1alpha1/pool.go b/pkg/client/clientset/versioned/typed/ceph.rook.io/v1alpha1/pool.go similarity index 98% rename from pkg/client/clientset/versioned/typed/ceph/v1alpha1/pool.go rename to pkg/client/clientset/versioned/typed/ceph.rook.io/v1alpha1/pool.go index 2e30ee20d..17061e344 100644 --- a/pkg/client/clientset/versioned/typed/ceph/v1alpha1/pool.go +++ b/pkg/client/clientset/versioned/typed/ceph.rook.io/v1alpha1/pool.go @@ -1,5 +1,5 @@ /* -Copyright 2018 The Kubernetes Authors. +Copyright The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -14,6 +14,8 @@ See the License for the specific language governing permissions and limitations under the License. */ +// Code generated by client-gen. DO NOT EDIT. + package v1alpha1 import ( diff --git a/pkg/client/clientset/versioned/typed/ceph/v1beta1/ceph_client.go b/pkg/client/clientset/versioned/typed/ceph.rook.io/v1beta1/ceph.rook.io_client.go similarity index 97% rename from pkg/client/clientset/versioned/typed/ceph/v1beta1/ceph_client.go rename to pkg/client/clientset/versioned/typed/ceph.rook.io/v1beta1/ceph.rook.io_client.go index f7000e549..e4b5a87a1 100644 --- a/pkg/client/clientset/versioned/typed/ceph/v1beta1/ceph_client.go +++ b/pkg/client/clientset/versioned/typed/ceph.rook.io/v1beta1/ceph.rook.io_client.go @@ -1,5 +1,5 @@ /* -Copyright 2018 The Kubernetes Authors. +Copyright The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -14,6 +14,8 @@ See the License for the specific language governing permissions and limitations under the License. */ +// Code generated by client-gen. DO NOT EDIT. + package v1beta1 import ( diff --git a/pkg/client/clientset/versioned/typed/ceph/v1beta1/cluster.go b/pkg/client/clientset/versioned/typed/ceph.rook.io/v1beta1/cluster.go similarity index 98% rename from pkg/client/clientset/versioned/typed/ceph/v1beta1/cluster.go rename to pkg/client/clientset/versioned/typed/ceph.rook.io/v1beta1/cluster.go index c5f0f1bdb..28da6cce9 100644 --- a/pkg/client/clientset/versioned/typed/ceph/v1beta1/cluster.go +++ b/pkg/client/clientset/versioned/typed/ceph.rook.io/v1beta1/cluster.go @@ -1,5 +1,5 @@ /* -Copyright 2018 The Kubernetes Authors. +Copyright The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -14,6 +14,8 @@ See the License for the specific language governing permissions and limitations under the License. */ +// Code generated by client-gen. DO NOT EDIT. + package v1beta1 import ( diff --git a/pkg/client/clientset/versioned/typed/ceph/v1beta1/doc.go b/pkg/client/clientset/versioned/typed/ceph.rook.io/v1beta1/doc.go similarity index 85% rename from pkg/client/clientset/versioned/typed/ceph/v1beta1/doc.go rename to pkg/client/clientset/versioned/typed/ceph.rook.io/v1beta1/doc.go index 6bd6c5839..771101956 100644 --- a/pkg/client/clientset/versioned/typed/ceph/v1beta1/doc.go +++ b/pkg/client/clientset/versioned/typed/ceph.rook.io/v1beta1/doc.go @@ -1,5 +1,5 @@ /* -Copyright 2018 The Kubernetes Authors. +Copyright The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// This package is generated by client-gen with custom arguments. +// Code generated by client-gen. DO NOT EDIT. // This package has the automatically generated typed clients. package v1beta1 diff --git a/pkg/client/clientset/versioned/typed/minio/v1alpha1/fake/doc.go b/pkg/client/clientset/versioned/typed/ceph.rook.io/v1beta1/fake/doc.go similarity index 85% rename from pkg/client/clientset/versioned/typed/minio/v1alpha1/fake/doc.go rename to pkg/client/clientset/versioned/typed/ceph.rook.io/v1beta1/fake/doc.go index d4003d501..16f443990 100644 --- a/pkg/client/clientset/versioned/typed/minio/v1alpha1/fake/doc.go +++ b/pkg/client/clientset/versioned/typed/ceph.rook.io/v1beta1/fake/doc.go @@ -1,5 +1,5 @@ /* -Copyright 2018 The Kubernetes Authors. +Copyright The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// This package is generated by client-gen with custom arguments. +// Code generated by client-gen. DO NOT EDIT. // Package fake has the automatically generated clients. package fake diff --git a/pkg/client/clientset/versioned/typed/ceph/v1beta1/fake/fake_ceph_client.go b/pkg/client/clientset/versioned/typed/ceph.rook.io/v1beta1/fake/fake_ceph.rook.io_client.go similarity index 93% rename from pkg/client/clientset/versioned/typed/ceph/v1beta1/fake/fake_ceph_client.go rename to pkg/client/clientset/versioned/typed/ceph.rook.io/v1beta1/fake/fake_ceph.rook.io_client.go index 3e63e7621..6a81ac64d 100644 --- a/pkg/client/clientset/versioned/typed/ceph/v1beta1/fake/fake_ceph_client.go +++ b/pkg/client/clientset/versioned/typed/ceph.rook.io/v1beta1/fake/fake_ceph.rook.io_client.go @@ -1,5 +1,5 @@ /* -Copyright 2018 The Kubernetes Authors. +Copyright The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -14,10 +14,12 @@ See the License for the specific language governing permissions and limitations under the License. */ +// Code generated by client-gen. DO NOT EDIT. + package fake import ( - v1beta1 "github.com/rook/rook/pkg/client/clientset/versioned/typed/ceph/v1beta1" + v1beta1 "github.com/rook/rook/pkg/client/clientset/versioned/typed/ceph.rook.io/v1beta1" rest "k8s.io/client-go/rest" testing "k8s.io/client-go/testing" ) diff --git a/pkg/client/clientset/versioned/typed/ceph/v1beta1/fake/fake_cluster.go b/pkg/client/clientset/versioned/typed/ceph.rook.io/v1beta1/fake/fake_cluster.go similarity index 96% rename from pkg/client/clientset/versioned/typed/ceph/v1beta1/fake/fake_cluster.go rename to pkg/client/clientset/versioned/typed/ceph.rook.io/v1beta1/fake/fake_cluster.go index e5db811bc..5c0a529a5 100644 --- a/pkg/client/clientset/versioned/typed/ceph/v1beta1/fake/fake_cluster.go +++ b/pkg/client/clientset/versioned/typed/ceph.rook.io/v1beta1/fake/fake_cluster.go @@ -1,5 +1,5 @@ /* -Copyright 2018 The Kubernetes Authors. +Copyright The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -14,6 +14,8 @@ See the License for the specific language governing permissions and limitations under the License. */ +// Code generated by client-gen. DO NOT EDIT. + package fake import ( @@ -60,7 +62,7 @@ func (c *FakeClusters) List(opts v1.ListOptions) (result *v1beta1.ClusterList, e if label == nil { label = labels.Everything() } - list := &v1beta1.ClusterList{} + list := &v1beta1.ClusterList{ListMeta: obj.(*v1beta1.ClusterList).ListMeta} for _, item := range obj.(*v1beta1.ClusterList).Items { if label.Matches(labels.Set(item.Labels)) { list.Items = append(list.Items, item) diff --git a/pkg/client/clientset/versioned/typed/ceph/v1beta1/fake/fake_filesystem.go b/pkg/client/clientset/versioned/typed/ceph.rook.io/v1beta1/fake/fake_filesystem.go similarity index 96% rename from pkg/client/clientset/versioned/typed/ceph/v1beta1/fake/fake_filesystem.go rename to pkg/client/clientset/versioned/typed/ceph.rook.io/v1beta1/fake/fake_filesystem.go index d8665f91f..451cc6ff3 100644 --- a/pkg/client/clientset/versioned/typed/ceph/v1beta1/fake/fake_filesystem.go +++ b/pkg/client/clientset/versioned/typed/ceph.rook.io/v1beta1/fake/fake_filesystem.go @@ -1,5 +1,5 @@ /* -Copyright 2018 The Kubernetes Authors. +Copyright The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -14,6 +14,8 @@ See the License for the specific language governing permissions and limitations under the License. */ +// Code generated by client-gen. DO NOT EDIT. + package fake import ( @@ -60,7 +62,7 @@ func (c *FakeFilesystems) List(opts v1.ListOptions) (result *v1beta1.FilesystemL if label == nil { label = labels.Everything() } - list := &v1beta1.FilesystemList{} + list := &v1beta1.FilesystemList{ListMeta: obj.(*v1beta1.FilesystemList).ListMeta} for _, item := range obj.(*v1beta1.FilesystemList).Items { if label.Matches(labels.Set(item.Labels)) { list.Items = append(list.Items, item) diff --git a/pkg/client/clientset/versioned/typed/ceph/v1beta1/fake/fake_objectstore.go b/pkg/client/clientset/versioned/typed/ceph.rook.io/v1beta1/fake/fake_objectstore.go similarity index 96% rename from pkg/client/clientset/versioned/typed/ceph/v1beta1/fake/fake_objectstore.go rename to pkg/client/clientset/versioned/typed/ceph.rook.io/v1beta1/fake/fake_objectstore.go index 2e3dfce95..1b5381d2b 100644 --- a/pkg/client/clientset/versioned/typed/ceph/v1beta1/fake/fake_objectstore.go +++ b/pkg/client/clientset/versioned/typed/ceph.rook.io/v1beta1/fake/fake_objectstore.go @@ -1,5 +1,5 @@ /* -Copyright 2018 The Kubernetes Authors. +Copyright The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -14,6 +14,8 @@ See the License for the specific language governing permissions and limitations under the License. */ +// Code generated by client-gen. DO NOT EDIT. + package fake import ( @@ -60,7 +62,7 @@ func (c *FakeObjectStores) List(opts v1.ListOptions) (result *v1beta1.ObjectStor if label == nil { label = labels.Everything() } - list := &v1beta1.ObjectStoreList{} + list := &v1beta1.ObjectStoreList{ListMeta: obj.(*v1beta1.ObjectStoreList).ListMeta} for _, item := range obj.(*v1beta1.ObjectStoreList).Items { if label.Matches(labels.Set(item.Labels)) { list.Items = append(list.Items, item) diff --git a/pkg/client/clientset/versioned/typed/ceph/v1beta1/fake/fake_pool.go b/pkg/client/clientset/versioned/typed/ceph.rook.io/v1beta1/fake/fake_pool.go similarity index 96% rename from pkg/client/clientset/versioned/typed/ceph/v1beta1/fake/fake_pool.go rename to pkg/client/clientset/versioned/typed/ceph.rook.io/v1beta1/fake/fake_pool.go index e82d44ea4..168970b17 100644 --- a/pkg/client/clientset/versioned/typed/ceph/v1beta1/fake/fake_pool.go +++ b/pkg/client/clientset/versioned/typed/ceph.rook.io/v1beta1/fake/fake_pool.go @@ -1,5 +1,5 @@ /* -Copyright 2018 The Kubernetes Authors. +Copyright The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -14,6 +14,8 @@ See the License for the specific language governing permissions and limitations under the License. */ +// Code generated by client-gen. DO NOT EDIT. + package fake import ( @@ -60,7 +62,7 @@ func (c *FakePools) List(opts v1.ListOptions) (result *v1beta1.PoolList, err err if label == nil { label = labels.Everything() } - list := &v1beta1.PoolList{} + list := &v1beta1.PoolList{ListMeta: obj.(*v1beta1.PoolList).ListMeta} for _, item := range obj.(*v1beta1.PoolList).Items { if label.Matches(labels.Set(item.Labels)) { list.Items = append(list.Items, item) diff --git a/pkg/client/clientset/versioned/typed/ceph/v1beta1/filesystem.go b/pkg/client/clientset/versioned/typed/ceph.rook.io/v1beta1/filesystem.go similarity index 98% rename from pkg/client/clientset/versioned/typed/ceph/v1beta1/filesystem.go rename to pkg/client/clientset/versioned/typed/ceph.rook.io/v1beta1/filesystem.go index 48a06baae..6f4860d9d 100644 --- a/pkg/client/clientset/versioned/typed/ceph/v1beta1/filesystem.go +++ b/pkg/client/clientset/versioned/typed/ceph.rook.io/v1beta1/filesystem.go @@ -1,5 +1,5 @@ /* -Copyright 2018 The Kubernetes Authors. +Copyright The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -14,6 +14,8 @@ See the License for the specific language governing permissions and limitations under the License. */ +// Code generated by client-gen. DO NOT EDIT. + package v1beta1 import ( diff --git a/pkg/client/clientset/versioned/typed/ceph/v1beta1/generated_expansion.go b/pkg/client/clientset/versioned/typed/ceph.rook.io/v1beta1/generated_expansion.go similarity index 89% rename from pkg/client/clientset/versioned/typed/ceph/v1beta1/generated_expansion.go rename to pkg/client/clientset/versioned/typed/ceph.rook.io/v1beta1/generated_expansion.go index b592e3bc7..b406cc421 100644 --- a/pkg/client/clientset/versioned/typed/ceph/v1beta1/generated_expansion.go +++ b/pkg/client/clientset/versioned/typed/ceph.rook.io/v1beta1/generated_expansion.go @@ -1,5 +1,5 @@ /* -Copyright 2018 The Kubernetes Authors. +Copyright The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -14,6 +14,8 @@ See the License for the specific language governing permissions and limitations under the License. */ +// Code generated by client-gen. DO NOT EDIT. + package v1beta1 type ClusterExpansion interface{} diff --git a/pkg/client/clientset/versioned/typed/ceph/v1beta1/objectstore.go b/pkg/client/clientset/versioned/typed/ceph.rook.io/v1beta1/objectstore.go similarity index 98% rename from pkg/client/clientset/versioned/typed/ceph/v1beta1/objectstore.go rename to pkg/client/clientset/versioned/typed/ceph.rook.io/v1beta1/objectstore.go index 5f09810ed..fb834f587 100644 --- a/pkg/client/clientset/versioned/typed/ceph/v1beta1/objectstore.go +++ b/pkg/client/clientset/versioned/typed/ceph.rook.io/v1beta1/objectstore.go @@ -1,5 +1,5 @@ /* -Copyright 2018 The Kubernetes Authors. +Copyright The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -14,6 +14,8 @@ See the License for the specific language governing permissions and limitations under the License. */ +// Code generated by client-gen. DO NOT EDIT. + package v1beta1 import ( diff --git a/pkg/client/clientset/versioned/typed/ceph/v1beta1/pool.go b/pkg/client/clientset/versioned/typed/ceph.rook.io/v1beta1/pool.go similarity index 98% rename from pkg/client/clientset/versioned/typed/ceph/v1beta1/pool.go rename to pkg/client/clientset/versioned/typed/ceph.rook.io/v1beta1/pool.go index 397d9015c..5b0075346 100644 --- a/pkg/client/clientset/versioned/typed/ceph/v1beta1/pool.go +++ b/pkg/client/clientset/versioned/typed/ceph.rook.io/v1beta1/pool.go @@ -1,5 +1,5 @@ /* -Copyright 2018 The Kubernetes Authors. +Copyright The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -14,6 +14,8 @@ See the License for the specific language governing permissions and limitations under the License. */ +// Code generated by client-gen. DO NOT EDIT. + package v1beta1 import ( diff --git a/pkg/client/clientset/versioned/typed/cockroachdb/v1alpha1/cluster.go b/pkg/client/clientset/versioned/typed/cockroachdb.rook.io/v1alpha1/cluster.go similarity index 98% rename from pkg/client/clientset/versioned/typed/cockroachdb/v1alpha1/cluster.go rename to pkg/client/clientset/versioned/typed/cockroachdb.rook.io/v1alpha1/cluster.go index ec6f348a9..3a66d3bda 100644 --- a/pkg/client/clientset/versioned/typed/cockroachdb/v1alpha1/cluster.go +++ b/pkg/client/clientset/versioned/typed/cockroachdb.rook.io/v1alpha1/cluster.go @@ -1,5 +1,5 @@ /* -Copyright 2018 The Kubernetes Authors. +Copyright The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -14,6 +14,8 @@ See the License for the specific language governing permissions and limitations under the License. */ +// Code generated by client-gen. DO NOT EDIT. + package v1alpha1 import ( diff --git a/pkg/client/clientset/versioned/typed/cockroachdb/v1alpha1/cockroachdb_client.go b/pkg/client/clientset/versioned/typed/cockroachdb.rook.io/v1alpha1/cockroachdb.rook.io_client.go similarity index 96% rename from pkg/client/clientset/versioned/typed/cockroachdb/v1alpha1/cockroachdb_client.go rename to pkg/client/clientset/versioned/typed/cockroachdb.rook.io/v1alpha1/cockroachdb.rook.io_client.go index a2d50d590..910ea7e50 100644 --- a/pkg/client/clientset/versioned/typed/cockroachdb/v1alpha1/cockroachdb_client.go +++ b/pkg/client/clientset/versioned/typed/cockroachdb.rook.io/v1alpha1/cockroachdb.rook.io_client.go @@ -1,5 +1,5 @@ /* -Copyright 2018 The Kubernetes Authors. +Copyright The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -14,6 +14,8 @@ See the License for the specific language governing permissions and limitations under the License. */ +// Code generated by client-gen. DO NOT EDIT. + package v1alpha1 import ( diff --git a/pkg/client/clientset/versioned/typed/nfs/v1alpha1/doc.go b/pkg/client/clientset/versioned/typed/cockroachdb.rook.io/v1alpha1/doc.go similarity index 85% rename from pkg/client/clientset/versioned/typed/nfs/v1alpha1/doc.go rename to pkg/client/clientset/versioned/typed/cockroachdb.rook.io/v1alpha1/doc.go index f51751d64..df51baa4d 100644 --- a/pkg/client/clientset/versioned/typed/nfs/v1alpha1/doc.go +++ b/pkg/client/clientset/versioned/typed/cockroachdb.rook.io/v1alpha1/doc.go @@ -1,5 +1,5 @@ /* -Copyright 2018 The Kubernetes Authors. +Copyright The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// This package is generated by client-gen with custom arguments. +// Code generated by client-gen. DO NOT EDIT. // This package has the automatically generated typed clients. package v1alpha1 diff --git a/pkg/client/clientset/versioned/typed/cockroachdb/v1alpha1/fake/doc.go b/pkg/client/clientset/versioned/typed/cockroachdb.rook.io/v1alpha1/fake/doc.go similarity index 85% rename from pkg/client/clientset/versioned/typed/cockroachdb/v1alpha1/fake/doc.go rename to pkg/client/clientset/versioned/typed/cockroachdb.rook.io/v1alpha1/fake/doc.go index d4003d501..16f443990 100644 --- a/pkg/client/clientset/versioned/typed/cockroachdb/v1alpha1/fake/doc.go +++ b/pkg/client/clientset/versioned/typed/cockroachdb.rook.io/v1alpha1/fake/doc.go @@ -1,5 +1,5 @@ /* -Copyright 2018 The Kubernetes Authors. +Copyright The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// This package is generated by client-gen with custom arguments. +// Code generated by client-gen. DO NOT EDIT. // Package fake has the automatically generated clients. package fake diff --git a/pkg/client/clientset/versioned/typed/cockroachdb/v1alpha1/fake/fake_cluster.go b/pkg/client/clientset/versioned/typed/cockroachdb.rook.io/v1alpha1/fake/fake_cluster.go similarity index 96% rename from pkg/client/clientset/versioned/typed/cockroachdb/v1alpha1/fake/fake_cluster.go rename to pkg/client/clientset/versioned/typed/cockroachdb.rook.io/v1alpha1/fake/fake_cluster.go index 550ba3e6b..e0a242156 100644 --- a/pkg/client/clientset/versioned/typed/cockroachdb/v1alpha1/fake/fake_cluster.go +++ b/pkg/client/clientset/versioned/typed/cockroachdb.rook.io/v1alpha1/fake/fake_cluster.go @@ -1,5 +1,5 @@ /* -Copyright 2018 The Kubernetes Authors. +Copyright The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -14,6 +14,8 @@ See the License for the specific language governing permissions and limitations under the License. */ +// Code generated by client-gen. DO NOT EDIT. + package fake import ( @@ -60,7 +62,7 @@ func (c *FakeClusters) List(opts v1.ListOptions) (result *v1alpha1.ClusterList, if label == nil { label = labels.Everything() } - list := &v1alpha1.ClusterList{} + list := &v1alpha1.ClusterList{ListMeta: obj.(*v1alpha1.ClusterList).ListMeta} for _, item := range obj.(*v1alpha1.ClusterList).Items { if label.Matches(labels.Set(item.Labels)) { list.Items = append(list.Items, item) diff --git a/pkg/client/clientset/versioned/typed/cockroachdb/v1alpha1/fake/fake_cockroachdb_client.go b/pkg/client/clientset/versioned/typed/cockroachdb.rook.io/v1alpha1/fake/fake_cockroachdb.rook.io_client.go similarity index 90% rename from pkg/client/clientset/versioned/typed/cockroachdb/v1alpha1/fake/fake_cockroachdb_client.go rename to pkg/client/clientset/versioned/typed/cockroachdb.rook.io/v1alpha1/fake/fake_cockroachdb.rook.io_client.go index 07e670efc..eed1896c6 100644 --- a/pkg/client/clientset/versioned/typed/cockroachdb/v1alpha1/fake/fake_cockroachdb_client.go +++ b/pkg/client/clientset/versioned/typed/cockroachdb.rook.io/v1alpha1/fake/fake_cockroachdb.rook.io_client.go @@ -1,5 +1,5 @@ /* -Copyright 2018 The Kubernetes Authors. +Copyright The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -14,10 +14,12 @@ See the License for the specific language governing permissions and limitations under the License. */ +// Code generated by client-gen. DO NOT EDIT. + package fake import ( - v1alpha1 "github.com/rook/rook/pkg/client/clientset/versioned/typed/cockroachdb/v1alpha1" + v1alpha1 "github.com/rook/rook/pkg/client/clientset/versioned/typed/cockroachdb.rook.io/v1alpha1" rest "k8s.io/client-go/rest" testing "k8s.io/client-go/testing" ) diff --git a/pkg/client/clientset/versioned/typed/cockroachdb/v1alpha1/generated_expansion.go b/pkg/client/clientset/versioned/typed/cockroachdb.rook.io/v1alpha1/generated_expansion.go similarity index 87% rename from pkg/client/clientset/versioned/typed/cockroachdb/v1alpha1/generated_expansion.go rename to pkg/client/clientset/versioned/typed/cockroachdb.rook.io/v1alpha1/generated_expansion.go index 393ce5a03..fcf4a3396 100644 --- a/pkg/client/clientset/versioned/typed/cockroachdb/v1alpha1/generated_expansion.go +++ b/pkg/client/clientset/versioned/typed/cockroachdb.rook.io/v1alpha1/generated_expansion.go @@ -1,5 +1,5 @@ /* -Copyright 2018 The Kubernetes Authors. +Copyright The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -14,6 +14,8 @@ See the License for the specific language governing permissions and limitations under the License. */ +// Code generated by client-gen. DO NOT EDIT. + package v1alpha1 type ClusterExpansion interface{} diff --git a/pkg/client/clientset/versioned/typed/ceph/v1alpha1/doc.go b/pkg/client/clientset/versioned/typed/minio.rook.io/v1alpha1/doc.go similarity index 85% rename from pkg/client/clientset/versioned/typed/ceph/v1alpha1/doc.go rename to pkg/client/clientset/versioned/typed/minio.rook.io/v1alpha1/doc.go index f51751d64..df51baa4d 100644 --- a/pkg/client/clientset/versioned/typed/ceph/v1alpha1/doc.go +++ b/pkg/client/clientset/versioned/typed/minio.rook.io/v1alpha1/doc.go @@ -1,5 +1,5 @@ /* -Copyright 2018 The Kubernetes Authors. +Copyright The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// This package is generated by client-gen with custom arguments. +// Code generated by client-gen. DO NOT EDIT. // This package has the automatically generated typed clients. package v1alpha1 diff --git a/pkg/client/clientset/versioned/typed/ceph/v1alpha1/fake/doc.go b/pkg/client/clientset/versioned/typed/minio.rook.io/v1alpha1/fake/doc.go similarity index 85% rename from pkg/client/clientset/versioned/typed/ceph/v1alpha1/fake/doc.go rename to pkg/client/clientset/versioned/typed/minio.rook.io/v1alpha1/fake/doc.go index d4003d501..16f443990 100644 --- a/pkg/client/clientset/versioned/typed/ceph/v1alpha1/fake/doc.go +++ b/pkg/client/clientset/versioned/typed/minio.rook.io/v1alpha1/fake/doc.go @@ -1,5 +1,5 @@ /* -Copyright 2018 The Kubernetes Authors. +Copyright The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// This package is generated by client-gen with custom arguments. +// Code generated by client-gen. DO NOT EDIT. // Package fake has the automatically generated clients. package fake diff --git a/pkg/client/clientset/versioned/typed/minio/v1alpha1/fake/fake_minio_client.go b/pkg/client/clientset/versioned/typed/minio.rook.io/v1alpha1/fake/fake_minio.rook.io_client.go similarity index 90% rename from pkg/client/clientset/versioned/typed/minio/v1alpha1/fake/fake_minio_client.go rename to pkg/client/clientset/versioned/typed/minio.rook.io/v1alpha1/fake/fake_minio.rook.io_client.go index 670ad22da..638e65a0e 100644 --- a/pkg/client/clientset/versioned/typed/minio/v1alpha1/fake/fake_minio_client.go +++ b/pkg/client/clientset/versioned/typed/minio.rook.io/v1alpha1/fake/fake_minio.rook.io_client.go @@ -1,5 +1,5 @@ /* -Copyright 2018 The Kubernetes Authors. +Copyright The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -14,10 +14,12 @@ See the License for the specific language governing permissions and limitations under the License. */ +// Code generated by client-gen. DO NOT EDIT. + package fake import ( - v1alpha1 "github.com/rook/rook/pkg/client/clientset/versioned/typed/minio/v1alpha1" + v1alpha1 "github.com/rook/rook/pkg/client/clientset/versioned/typed/minio.rook.io/v1alpha1" rest "k8s.io/client-go/rest" testing "k8s.io/client-go/testing" ) diff --git a/pkg/client/clientset/versioned/typed/minio/v1alpha1/fake/fake_objectstore.go b/pkg/client/clientset/versioned/typed/minio.rook.io/v1alpha1/fake/fake_objectstore.go similarity index 96% rename from pkg/client/clientset/versioned/typed/minio/v1alpha1/fake/fake_objectstore.go rename to pkg/client/clientset/versioned/typed/minio.rook.io/v1alpha1/fake/fake_objectstore.go index c91032d46..ed7c4733c 100644 --- a/pkg/client/clientset/versioned/typed/minio/v1alpha1/fake/fake_objectstore.go +++ b/pkg/client/clientset/versioned/typed/minio.rook.io/v1alpha1/fake/fake_objectstore.go @@ -1,5 +1,5 @@ /* -Copyright 2018 The Kubernetes Authors. +Copyright The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -14,6 +14,8 @@ See the License for the specific language governing permissions and limitations under the License. */ +// Code generated by client-gen. DO NOT EDIT. + package fake import ( @@ -60,7 +62,7 @@ func (c *FakeObjectStores) List(opts v1.ListOptions) (result *v1alpha1.ObjectSto if label == nil { label = labels.Everything() } - list := &v1alpha1.ObjectStoreList{} + list := &v1alpha1.ObjectStoreList{ListMeta: obj.(*v1alpha1.ObjectStoreList).ListMeta} for _, item := range obj.(*v1alpha1.ObjectStoreList).Items { if label.Matches(labels.Set(item.Labels)) { list.Items = append(list.Items, item) diff --git a/pkg/client/clientset/versioned/typed/minio/v1alpha1/generated_expansion.go b/pkg/client/clientset/versioned/typed/minio.rook.io/v1alpha1/generated_expansion.go similarity index 87% rename from pkg/client/clientset/versioned/typed/minio/v1alpha1/generated_expansion.go rename to pkg/client/clientset/versioned/typed/minio.rook.io/v1alpha1/generated_expansion.go index a1059d1b9..e3f635901 100644 --- a/pkg/client/clientset/versioned/typed/minio/v1alpha1/generated_expansion.go +++ b/pkg/client/clientset/versioned/typed/minio.rook.io/v1alpha1/generated_expansion.go @@ -1,5 +1,5 @@ /* -Copyright 2018 The Kubernetes Authors. +Copyright The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -14,6 +14,8 @@ See the License for the specific language governing permissions and limitations under the License. */ +// Code generated by client-gen. DO NOT EDIT. + package v1alpha1 type ObjectStoreExpansion interface{} diff --git a/pkg/client/clientset/versioned/typed/minio/v1alpha1/minio_client.go b/pkg/client/clientset/versioned/typed/minio.rook.io/v1alpha1/minio.rook.io_client.go similarity index 96% rename from pkg/client/clientset/versioned/typed/minio/v1alpha1/minio_client.go rename to pkg/client/clientset/versioned/typed/minio.rook.io/v1alpha1/minio.rook.io_client.go index 307cd5e3d..8892082b6 100644 --- a/pkg/client/clientset/versioned/typed/minio/v1alpha1/minio_client.go +++ b/pkg/client/clientset/versioned/typed/minio.rook.io/v1alpha1/minio.rook.io_client.go @@ -1,5 +1,5 @@ /* -Copyright 2018 The Kubernetes Authors. +Copyright The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -14,6 +14,8 @@ See the License for the specific language governing permissions and limitations under the License. */ +// Code generated by client-gen. DO NOT EDIT. + package v1alpha1 import ( diff --git a/pkg/client/clientset/versioned/typed/minio/v1alpha1/objectstore.go b/pkg/client/clientset/versioned/typed/minio.rook.io/v1alpha1/objectstore.go similarity index 98% rename from pkg/client/clientset/versioned/typed/minio/v1alpha1/objectstore.go rename to pkg/client/clientset/versioned/typed/minio.rook.io/v1alpha1/objectstore.go index 3355d0775..7177fd4ba 100644 --- a/pkg/client/clientset/versioned/typed/minio/v1alpha1/objectstore.go +++ b/pkg/client/clientset/versioned/typed/minio.rook.io/v1alpha1/objectstore.go @@ -1,5 +1,5 @@ /* -Copyright 2018 The Kubernetes Authors. +Copyright The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -14,6 +14,8 @@ See the License for the specific language governing permissions and limitations under the License. */ +// Code generated by client-gen. DO NOT EDIT. + package v1alpha1 import ( diff --git a/pkg/client/clientset/versioned/typed/minio/v1alpha1/doc.go b/pkg/client/clientset/versioned/typed/nfs.rook.io/v1alpha1/doc.go similarity index 85% rename from pkg/client/clientset/versioned/typed/minio/v1alpha1/doc.go rename to pkg/client/clientset/versioned/typed/nfs.rook.io/v1alpha1/doc.go index f51751d64..df51baa4d 100644 --- a/pkg/client/clientset/versioned/typed/minio/v1alpha1/doc.go +++ b/pkg/client/clientset/versioned/typed/nfs.rook.io/v1alpha1/doc.go @@ -1,5 +1,5 @@ /* -Copyright 2018 The Kubernetes Authors. +Copyright The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// This package is generated by client-gen with custom arguments. +// Code generated by client-gen. DO NOT EDIT. // This package has the automatically generated typed clients. package v1alpha1 diff --git a/pkg/client/clientset/versioned/typed/nfs.rook.io/v1alpha1/fake/doc.go b/pkg/client/clientset/versioned/typed/nfs.rook.io/v1alpha1/fake/doc.go new file mode 100644 index 000000000..16f443990 --- /dev/null +++ b/pkg/client/clientset/versioned/typed/nfs.rook.io/v1alpha1/fake/doc.go @@ -0,0 +1,20 @@ +/* +Copyright The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by client-gen. DO NOT EDIT. + +// Package fake has the automatically generated clients. +package fake diff --git a/pkg/client/clientset/versioned/typed/nfs/v1alpha1/fake/fake_nfs_client.go b/pkg/client/clientset/versioned/typed/nfs.rook.io/v1alpha1/fake/fake_nfs.rook.io_client.go similarity index 90% rename from pkg/client/clientset/versioned/typed/nfs/v1alpha1/fake/fake_nfs_client.go rename to pkg/client/clientset/versioned/typed/nfs.rook.io/v1alpha1/fake/fake_nfs.rook.io_client.go index 2fe5eaad8..547010476 100644 --- a/pkg/client/clientset/versioned/typed/nfs/v1alpha1/fake/fake_nfs_client.go +++ b/pkg/client/clientset/versioned/typed/nfs.rook.io/v1alpha1/fake/fake_nfs.rook.io_client.go @@ -1,5 +1,5 @@ /* -Copyright 2018 The Kubernetes Authors. +Copyright The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -14,10 +14,12 @@ See the License for the specific language governing permissions and limitations under the License. */ +// Code generated by client-gen. DO NOT EDIT. + package fake import ( - v1alpha1 "github.com/rook/rook/pkg/client/clientset/versioned/typed/nfs/v1alpha1" + v1alpha1 "github.com/rook/rook/pkg/client/clientset/versioned/typed/nfs.rook.io/v1alpha1" rest "k8s.io/client-go/rest" testing "k8s.io/client-go/testing" ) diff --git a/pkg/client/clientset/versioned/typed/nfs/v1alpha1/fake/fake_nfsserver.go b/pkg/client/clientset/versioned/typed/nfs.rook.io/v1alpha1/fake/fake_nfsserver.go similarity index 96% rename from pkg/client/clientset/versioned/typed/nfs/v1alpha1/fake/fake_nfsserver.go rename to pkg/client/clientset/versioned/typed/nfs.rook.io/v1alpha1/fake/fake_nfsserver.go index ee288b012..ec8820f8f 100644 --- a/pkg/client/clientset/versioned/typed/nfs/v1alpha1/fake/fake_nfsserver.go +++ b/pkg/client/clientset/versioned/typed/nfs.rook.io/v1alpha1/fake/fake_nfsserver.go @@ -1,5 +1,5 @@ /* -Copyright 2018 The Kubernetes Authors. +Copyright The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -14,6 +14,8 @@ See the License for the specific language governing permissions and limitations under the License. */ +// Code generated by client-gen. DO NOT EDIT. + package fake import ( @@ -60,7 +62,7 @@ func (c *FakeNFSServers) List(opts v1.ListOptions) (result *v1alpha1.NFSServerLi if label == nil { label = labels.Everything() } - list := &v1alpha1.NFSServerList{} + list := &v1alpha1.NFSServerList{ListMeta: obj.(*v1alpha1.NFSServerList).ListMeta} for _, item := range obj.(*v1alpha1.NFSServerList).Items { if label.Matches(labels.Set(item.Labels)) { list.Items = append(list.Items, item) diff --git a/pkg/client/clientset/versioned/typed/nfs/v1alpha1/generated_expansion.go b/pkg/client/clientset/versioned/typed/nfs.rook.io/v1alpha1/generated_expansion.go similarity index 87% rename from pkg/client/clientset/versioned/typed/nfs/v1alpha1/generated_expansion.go rename to pkg/client/clientset/versioned/typed/nfs.rook.io/v1alpha1/generated_expansion.go index 215df2d9e..39cd4986f 100644 --- a/pkg/client/clientset/versioned/typed/nfs/v1alpha1/generated_expansion.go +++ b/pkg/client/clientset/versioned/typed/nfs.rook.io/v1alpha1/generated_expansion.go @@ -1,5 +1,5 @@ /* -Copyright 2018 The Kubernetes Authors. +Copyright The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -14,6 +14,8 @@ See the License for the specific language governing permissions and limitations under the License. */ +// Code generated by client-gen. DO NOT EDIT. + package v1alpha1 type NFSServerExpansion interface{} diff --git a/pkg/client/clientset/versioned/typed/nfs/v1alpha1/nfs_client.go b/pkg/client/clientset/versioned/typed/nfs.rook.io/v1alpha1/nfs.rook.io_client.go similarity index 96% rename from pkg/client/clientset/versioned/typed/nfs/v1alpha1/nfs_client.go rename to pkg/client/clientset/versioned/typed/nfs.rook.io/v1alpha1/nfs.rook.io_client.go index 3b8cc3521..02f7eb3e0 100644 --- a/pkg/client/clientset/versioned/typed/nfs/v1alpha1/nfs_client.go +++ b/pkg/client/clientset/versioned/typed/nfs.rook.io/v1alpha1/nfs.rook.io_client.go @@ -1,5 +1,5 @@ /* -Copyright 2018 The Kubernetes Authors. +Copyright The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -14,6 +14,8 @@ See the License for the specific language governing permissions and limitations under the License. */ +// Code generated by client-gen. DO NOT EDIT. + package v1alpha1 import ( diff --git a/pkg/client/clientset/versioned/typed/nfs/v1alpha1/nfsserver.go b/pkg/client/clientset/versioned/typed/nfs.rook.io/v1alpha1/nfsserver.go similarity index 98% rename from pkg/client/clientset/versioned/typed/nfs/v1alpha1/nfsserver.go rename to pkg/client/clientset/versioned/typed/nfs.rook.io/v1alpha1/nfsserver.go index 234a556dd..3796647dd 100644 --- a/pkg/client/clientset/versioned/typed/nfs/v1alpha1/nfsserver.go +++ b/pkg/client/clientset/versioned/typed/nfs.rook.io/v1alpha1/nfsserver.go @@ -1,5 +1,5 @@ /* -Copyright 2018 The Kubernetes Authors. +Copyright The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -14,6 +14,8 @@ See the License for the specific language governing permissions and limitations under the License. */ +// Code generated by client-gen. DO NOT EDIT. + package v1alpha1 import ( diff --git a/pkg/client/clientset/versioned/typed/nfs/v1alpha1/fake/doc.go b/pkg/client/clientset/versioned/typed/nfs/v1alpha1/fake/doc.go deleted file mode 100644 index d4003d501..000000000 --- a/pkg/client/clientset/versioned/typed/nfs/v1alpha1/fake/doc.go +++ /dev/null @@ -1,20 +0,0 @@ -/* -Copyright 2018 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// This package is generated by client-gen with custom arguments. - -// Package fake has the automatically generated clients. -package fake diff --git a/pkg/client/clientset/versioned/typed/rook/v1alpha1/cluster.go b/pkg/client/clientset/versioned/typed/rook.io/v1alpha1/cluster.go similarity index 98% rename from pkg/client/clientset/versioned/typed/rook/v1alpha1/cluster.go rename to pkg/client/clientset/versioned/typed/rook.io/v1alpha1/cluster.go index a71ca459e..36e2f0c86 100644 --- a/pkg/client/clientset/versioned/typed/rook/v1alpha1/cluster.go +++ b/pkg/client/clientset/versioned/typed/rook.io/v1alpha1/cluster.go @@ -1,5 +1,5 @@ /* -Copyright 2018 The Kubernetes Authors. +Copyright The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -14,6 +14,8 @@ See the License for the specific language governing permissions and limitations under the License. */ +// Code generated by client-gen. DO NOT EDIT. + package v1alpha1 import ( diff --git a/pkg/client/clientset/versioned/typed/rook.io/v1alpha1/doc.go b/pkg/client/clientset/versioned/typed/rook.io/v1alpha1/doc.go new file mode 100644 index 000000000..df51baa4d --- /dev/null +++ b/pkg/client/clientset/versioned/typed/rook.io/v1alpha1/doc.go @@ -0,0 +1,20 @@ +/* +Copyright The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by client-gen. DO NOT EDIT. + +// This package has the automatically generated typed clients. +package v1alpha1 diff --git a/pkg/client/clientset/versioned/typed/rook.io/v1alpha1/fake/doc.go b/pkg/client/clientset/versioned/typed/rook.io/v1alpha1/fake/doc.go new file mode 100644 index 000000000..16f443990 --- /dev/null +++ b/pkg/client/clientset/versioned/typed/rook.io/v1alpha1/fake/doc.go @@ -0,0 +1,20 @@ +/* +Copyright The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by client-gen. DO NOT EDIT. + +// Package fake has the automatically generated clients. +package fake diff --git a/pkg/client/clientset/versioned/typed/rook/v1alpha1/fake/fake_cluster.go b/pkg/client/clientset/versioned/typed/rook.io/v1alpha1/fake/fake_cluster.go similarity index 96% rename from pkg/client/clientset/versioned/typed/rook/v1alpha1/fake/fake_cluster.go rename to pkg/client/clientset/versioned/typed/rook.io/v1alpha1/fake/fake_cluster.go index 52299da95..1f7e2e82a 100644 --- a/pkg/client/clientset/versioned/typed/rook/v1alpha1/fake/fake_cluster.go +++ b/pkg/client/clientset/versioned/typed/rook.io/v1alpha1/fake/fake_cluster.go @@ -1,5 +1,5 @@ /* -Copyright 2018 The Kubernetes Authors. +Copyright The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -14,6 +14,8 @@ See the License for the specific language governing permissions and limitations under the License. */ +// Code generated by client-gen. DO NOT EDIT. + package fake import ( @@ -60,7 +62,7 @@ func (c *FakeClusters) List(opts v1.ListOptions) (result *v1alpha1.ClusterList, if label == nil { label = labels.Everything() } - list := &v1alpha1.ClusterList{} + list := &v1alpha1.ClusterList{ListMeta: obj.(*v1alpha1.ClusterList).ListMeta} for _, item := range obj.(*v1alpha1.ClusterList).Items { if label.Matches(labels.Set(item.Labels)) { list.Items = append(list.Items, item) diff --git a/pkg/client/clientset/versioned/typed/rook/v1alpha1/fake/fake_filesystem.go b/pkg/client/clientset/versioned/typed/rook.io/v1alpha1/fake/fake_filesystem.go similarity index 96% rename from pkg/client/clientset/versioned/typed/rook/v1alpha1/fake/fake_filesystem.go rename to pkg/client/clientset/versioned/typed/rook.io/v1alpha1/fake/fake_filesystem.go index 15fd970f8..647863e2f 100644 --- a/pkg/client/clientset/versioned/typed/rook/v1alpha1/fake/fake_filesystem.go +++ b/pkg/client/clientset/versioned/typed/rook.io/v1alpha1/fake/fake_filesystem.go @@ -1,5 +1,5 @@ /* -Copyright 2018 The Kubernetes Authors. +Copyright The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -14,6 +14,8 @@ See the License for the specific language governing permissions and limitations under the License. */ +// Code generated by client-gen. DO NOT EDIT. + package fake import ( @@ -60,7 +62,7 @@ func (c *FakeFilesystems) List(opts v1.ListOptions) (result *v1alpha1.Filesystem if label == nil { label = labels.Everything() } - list := &v1alpha1.FilesystemList{} + list := &v1alpha1.FilesystemList{ListMeta: obj.(*v1alpha1.FilesystemList).ListMeta} for _, item := range obj.(*v1alpha1.FilesystemList).Items { if label.Matches(labels.Set(item.Labels)) { list.Items = append(list.Items, item) diff --git a/pkg/client/clientset/versioned/typed/rook/v1alpha1/fake/fake_objectstore.go b/pkg/client/clientset/versioned/typed/rook.io/v1alpha1/fake/fake_objectstore.go similarity index 96% rename from pkg/client/clientset/versioned/typed/rook/v1alpha1/fake/fake_objectstore.go rename to pkg/client/clientset/versioned/typed/rook.io/v1alpha1/fake/fake_objectstore.go index 2952aff41..f8b4e49b5 100644 --- a/pkg/client/clientset/versioned/typed/rook/v1alpha1/fake/fake_objectstore.go +++ b/pkg/client/clientset/versioned/typed/rook.io/v1alpha1/fake/fake_objectstore.go @@ -1,5 +1,5 @@ /* -Copyright 2018 The Kubernetes Authors. +Copyright The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -14,6 +14,8 @@ See the License for the specific language governing permissions and limitations under the License. */ +// Code generated by client-gen. DO NOT EDIT. + package fake import ( @@ -60,7 +62,7 @@ func (c *FakeObjectStores) List(opts v1.ListOptions) (result *v1alpha1.ObjectSto if label == nil { label = labels.Everything() } - list := &v1alpha1.ObjectStoreList{} + list := &v1alpha1.ObjectStoreList{ListMeta: obj.(*v1alpha1.ObjectStoreList).ListMeta} for _, item := range obj.(*v1alpha1.ObjectStoreList).Items { if label.Matches(labels.Set(item.Labels)) { list.Items = append(list.Items, item) diff --git a/pkg/client/clientset/versioned/typed/rook/v1alpha1/fake/fake_pool.go b/pkg/client/clientset/versioned/typed/rook.io/v1alpha1/fake/fake_pool.go similarity index 96% rename from pkg/client/clientset/versioned/typed/rook/v1alpha1/fake/fake_pool.go rename to pkg/client/clientset/versioned/typed/rook.io/v1alpha1/fake/fake_pool.go index f3cfddcd2..da452a2e4 100644 --- a/pkg/client/clientset/versioned/typed/rook/v1alpha1/fake/fake_pool.go +++ b/pkg/client/clientset/versioned/typed/rook.io/v1alpha1/fake/fake_pool.go @@ -1,5 +1,5 @@ /* -Copyright 2018 The Kubernetes Authors. +Copyright The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -14,6 +14,8 @@ See the License for the specific language governing permissions and limitations under the License. */ +// Code generated by client-gen. DO NOT EDIT. + package fake import ( @@ -60,7 +62,7 @@ func (c *FakePools) List(opts v1.ListOptions) (result *v1alpha1.PoolList, err er if label == nil { label = labels.Everything() } - list := &v1alpha1.PoolList{} + list := &v1alpha1.PoolList{ListMeta: obj.(*v1alpha1.PoolList).ListMeta} for _, item := range obj.(*v1alpha1.PoolList).Items { if label.Matches(labels.Set(item.Labels)) { list.Items = append(list.Items, item) diff --git a/pkg/client/clientset/versioned/typed/rook/v1alpha1/fake/fake_rook_client.go b/pkg/client/clientset/versioned/typed/rook.io/v1alpha1/fake/fake_rook.io_client.go similarity index 93% rename from pkg/client/clientset/versioned/typed/rook/v1alpha1/fake/fake_rook_client.go rename to pkg/client/clientset/versioned/typed/rook.io/v1alpha1/fake/fake_rook.io_client.go index f614aca24..e2a0b44df 100644 --- a/pkg/client/clientset/versioned/typed/rook/v1alpha1/fake/fake_rook_client.go +++ b/pkg/client/clientset/versioned/typed/rook.io/v1alpha1/fake/fake_rook.io_client.go @@ -1,5 +1,5 @@ /* -Copyright 2018 The Kubernetes Authors. +Copyright The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -14,10 +14,12 @@ See the License for the specific language governing permissions and limitations under the License. */ +// Code generated by client-gen. DO NOT EDIT. + package fake import ( - v1alpha1 "github.com/rook/rook/pkg/client/clientset/versioned/typed/rook/v1alpha1" + v1alpha1 "github.com/rook/rook/pkg/client/clientset/versioned/typed/rook.io/v1alpha1" rest "k8s.io/client-go/rest" testing "k8s.io/client-go/testing" ) diff --git a/pkg/client/clientset/versioned/typed/rook/v1alpha1/fake/fake_volumeattachment.go b/pkg/client/clientset/versioned/typed/rook.io/v1alpha1/fake/fake_volumeattachment.go similarity index 96% rename from pkg/client/clientset/versioned/typed/rook/v1alpha1/fake/fake_volumeattachment.go rename to pkg/client/clientset/versioned/typed/rook.io/v1alpha1/fake/fake_volumeattachment.go index f44f3a66d..2be0a48b1 100644 --- a/pkg/client/clientset/versioned/typed/rook/v1alpha1/fake/fake_volumeattachment.go +++ b/pkg/client/clientset/versioned/typed/rook.io/v1alpha1/fake/fake_volumeattachment.go @@ -1,5 +1,5 @@ /* -Copyright 2018 The Kubernetes Authors. +Copyright The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -14,6 +14,8 @@ See the License for the specific language governing permissions and limitations under the License. */ +// Code generated by client-gen. DO NOT EDIT. + package fake import ( @@ -60,7 +62,7 @@ func (c *FakeVolumeAttachments) List(opts v1.ListOptions) (result *v1alpha1.Volu if label == nil { label = labels.Everything() } - list := &v1alpha1.VolumeAttachmentList{} + list := &v1alpha1.VolumeAttachmentList{ListMeta: obj.(*v1alpha1.VolumeAttachmentList).ListMeta} for _, item := range obj.(*v1alpha1.VolumeAttachmentList).Items { if label.Matches(labels.Set(item.Labels)) { list.Items = append(list.Items, item) diff --git a/pkg/client/clientset/versioned/typed/rook/v1alpha1/filesystem.go b/pkg/client/clientset/versioned/typed/rook.io/v1alpha1/filesystem.go similarity index 98% rename from pkg/client/clientset/versioned/typed/rook/v1alpha1/filesystem.go rename to pkg/client/clientset/versioned/typed/rook.io/v1alpha1/filesystem.go index b392c1099..6a385758f 100644 --- a/pkg/client/clientset/versioned/typed/rook/v1alpha1/filesystem.go +++ b/pkg/client/clientset/versioned/typed/rook.io/v1alpha1/filesystem.go @@ -1,5 +1,5 @@ /* -Copyright 2018 The Kubernetes Authors. +Copyright The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -14,6 +14,8 @@ See the License for the specific language governing permissions and limitations under the License. */ +// Code generated by client-gen. DO NOT EDIT. + package v1alpha1 import ( diff --git a/pkg/client/clientset/versioned/typed/rook/v1alpha1/generated_expansion.go b/pkg/client/clientset/versioned/typed/rook.io/v1alpha1/generated_expansion.go similarity index 90% rename from pkg/client/clientset/versioned/typed/rook/v1alpha1/generated_expansion.go rename to pkg/client/clientset/versioned/typed/rook.io/v1alpha1/generated_expansion.go index ebd5b3c50..858f0f7bf 100644 --- a/pkg/client/clientset/versioned/typed/rook/v1alpha1/generated_expansion.go +++ b/pkg/client/clientset/versioned/typed/rook.io/v1alpha1/generated_expansion.go @@ -1,5 +1,5 @@ /* -Copyright 2018 The Kubernetes Authors. +Copyright The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -14,6 +14,8 @@ See the License for the specific language governing permissions and limitations under the License. */ +// Code generated by client-gen. DO NOT EDIT. + package v1alpha1 type ClusterExpansion interface{} diff --git a/pkg/client/clientset/versioned/typed/rook/v1alpha1/objectstore.go b/pkg/client/clientset/versioned/typed/rook.io/v1alpha1/objectstore.go similarity index 98% rename from pkg/client/clientset/versioned/typed/rook/v1alpha1/objectstore.go rename to pkg/client/clientset/versioned/typed/rook.io/v1alpha1/objectstore.go index 24c1607a9..6ccad1526 100644 --- a/pkg/client/clientset/versioned/typed/rook/v1alpha1/objectstore.go +++ b/pkg/client/clientset/versioned/typed/rook.io/v1alpha1/objectstore.go @@ -1,5 +1,5 @@ /* -Copyright 2018 The Kubernetes Authors. +Copyright The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -14,6 +14,8 @@ See the License for the specific language governing permissions and limitations under the License. */ +// Code generated by client-gen. DO NOT EDIT. + package v1alpha1 import ( diff --git a/pkg/client/clientset/versioned/typed/rook/v1alpha1/pool.go b/pkg/client/clientset/versioned/typed/rook.io/v1alpha1/pool.go similarity index 98% rename from pkg/client/clientset/versioned/typed/rook/v1alpha1/pool.go rename to pkg/client/clientset/versioned/typed/rook.io/v1alpha1/pool.go index 9eb9ee050..7974ffb37 100644 --- a/pkg/client/clientset/versioned/typed/rook/v1alpha1/pool.go +++ b/pkg/client/clientset/versioned/typed/rook.io/v1alpha1/pool.go @@ -1,5 +1,5 @@ /* -Copyright 2018 The Kubernetes Authors. +Copyright The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -14,6 +14,8 @@ See the License for the specific language governing permissions and limitations under the License. */ +// Code generated by client-gen. DO NOT EDIT. + package v1alpha1 import ( diff --git a/pkg/client/clientset/versioned/typed/rook/v1alpha1/rook_client.go b/pkg/client/clientset/versioned/typed/rook.io/v1alpha1/rook.io_client.go similarity index 97% rename from pkg/client/clientset/versioned/typed/rook/v1alpha1/rook_client.go rename to pkg/client/clientset/versioned/typed/rook.io/v1alpha1/rook.io_client.go index b95db6ad8..db2750867 100644 --- a/pkg/client/clientset/versioned/typed/rook/v1alpha1/rook_client.go +++ b/pkg/client/clientset/versioned/typed/rook.io/v1alpha1/rook.io_client.go @@ -1,5 +1,5 @@ /* -Copyright 2018 The Kubernetes Authors. +Copyright The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -14,6 +14,8 @@ See the License for the specific language governing permissions and limitations under the License. */ +// Code generated by client-gen. DO NOT EDIT. + package v1alpha1 import ( diff --git a/pkg/client/clientset/versioned/typed/rook/v1alpha1/volumeattachment.go b/pkg/client/clientset/versioned/typed/rook.io/v1alpha1/volumeattachment.go similarity index 98% rename from pkg/client/clientset/versioned/typed/rook/v1alpha1/volumeattachment.go rename to pkg/client/clientset/versioned/typed/rook.io/v1alpha1/volumeattachment.go index 8fa449f63..3effea1c4 100644 --- a/pkg/client/clientset/versioned/typed/rook/v1alpha1/volumeattachment.go +++ b/pkg/client/clientset/versioned/typed/rook.io/v1alpha1/volumeattachment.go @@ -1,5 +1,5 @@ /* -Copyright 2018 The Kubernetes Authors. +Copyright The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -14,6 +14,8 @@ See the License for the specific language governing permissions and limitations under the License. */ +// Code generated by client-gen. DO NOT EDIT. + package v1alpha1 import ( diff --git a/pkg/client/clientset/versioned/typed/rook/v1alpha2/doc.go b/pkg/client/clientset/versioned/typed/rook.io/v1alpha2/doc.go similarity index 85% rename from pkg/client/clientset/versioned/typed/rook/v1alpha2/doc.go rename to pkg/client/clientset/versioned/typed/rook.io/v1alpha2/doc.go index ef161aeae..baaf2d985 100644 --- a/pkg/client/clientset/versioned/typed/rook/v1alpha2/doc.go +++ b/pkg/client/clientset/versioned/typed/rook.io/v1alpha2/doc.go @@ -1,5 +1,5 @@ /* -Copyright 2018 The Kubernetes Authors. +Copyright The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -// This package is generated by client-gen with custom arguments. +// Code generated by client-gen. DO NOT EDIT. // This package has the automatically generated typed clients. package v1alpha2 diff --git a/pkg/client/clientset/versioned/typed/rook.io/v1alpha2/fake/doc.go b/pkg/client/clientset/versioned/typed/rook.io/v1alpha2/fake/doc.go new file mode 100644 index 000000000..16f443990 --- /dev/null +++ b/pkg/client/clientset/versioned/typed/rook.io/v1alpha2/fake/doc.go @@ -0,0 +1,20 @@ +/* +Copyright The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by client-gen. DO NOT EDIT. + +// Package fake has the automatically generated clients. +package fake diff --git a/pkg/client/clientset/versioned/typed/rook/v1alpha2/fake/fake_rook_client.go b/pkg/client/clientset/versioned/typed/rook.io/v1alpha2/fake/fake_rook.io_client.go similarity index 91% rename from pkg/client/clientset/versioned/typed/rook/v1alpha2/fake/fake_rook_client.go rename to pkg/client/clientset/versioned/typed/rook.io/v1alpha2/fake/fake_rook.io_client.go index 4e4bb5cb6..c3b6fa86c 100644 --- a/pkg/client/clientset/versioned/typed/rook/v1alpha2/fake/fake_rook_client.go +++ b/pkg/client/clientset/versioned/typed/rook.io/v1alpha2/fake/fake_rook.io_client.go @@ -1,5 +1,5 @@ /* -Copyright 2018 The Kubernetes Authors. +Copyright The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -14,10 +14,12 @@ See the License for the specific language governing permissions and limitations under the License. */ +// Code generated by client-gen. DO NOT EDIT. + package fake import ( - v1alpha2 "github.com/rook/rook/pkg/client/clientset/versioned/typed/rook/v1alpha2" + v1alpha2 "github.com/rook/rook/pkg/client/clientset/versioned/typed/rook.io/v1alpha2" rest "k8s.io/client-go/rest" testing "k8s.io/client-go/testing" ) diff --git a/pkg/client/clientset/versioned/typed/rook/v1alpha2/fake/fake_volume.go b/pkg/client/clientset/versioned/typed/rook.io/v1alpha2/fake/fake_volume.go similarity index 96% rename from pkg/client/clientset/versioned/typed/rook/v1alpha2/fake/fake_volume.go rename to pkg/client/clientset/versioned/typed/rook.io/v1alpha2/fake/fake_volume.go index f2a7e8899..c54a79bd4 100644 --- a/pkg/client/clientset/versioned/typed/rook/v1alpha2/fake/fake_volume.go +++ b/pkg/client/clientset/versioned/typed/rook.io/v1alpha2/fake/fake_volume.go @@ -1,5 +1,5 @@ /* -Copyright 2018 The Kubernetes Authors. +Copyright The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -14,6 +14,8 @@ See the License for the specific language governing permissions and limitations under the License. */ +// Code generated by client-gen. DO NOT EDIT. + package fake import ( @@ -60,7 +62,7 @@ func (c *FakeVolumes) List(opts v1.ListOptions) (result *v1alpha2.VolumeList, er if label == nil { label = labels.Everything() } - list := &v1alpha2.VolumeList{} + list := &v1alpha2.VolumeList{ListMeta: obj.(*v1alpha2.VolumeList).ListMeta} for _, item := range obj.(*v1alpha2.VolumeList).Items { if label.Matches(labels.Set(item.Labels)) { list.Items = append(list.Items, item) diff --git a/pkg/client/clientset/versioned/typed/rook/v1alpha2/generated_expansion.go b/pkg/client/clientset/versioned/typed/rook.io/v1alpha2/generated_expansion.go similarity index 87% rename from pkg/client/clientset/versioned/typed/rook/v1alpha2/generated_expansion.go rename to pkg/client/clientset/versioned/typed/rook.io/v1alpha2/generated_expansion.go index ab233a95f..60865e6f1 100644 --- a/pkg/client/clientset/versioned/typed/rook/v1alpha2/generated_expansion.go +++ b/pkg/client/clientset/versioned/typed/rook.io/v1alpha2/generated_expansion.go @@ -1,5 +1,5 @@ /* -Copyright 2018 The Kubernetes Authors. +Copyright The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -14,6 +14,8 @@ See the License for the specific language governing permissions and limitations under the License. */ +// Code generated by client-gen. DO NOT EDIT. + package v1alpha2 type VolumeExpansion interface{} diff --git a/pkg/client/clientset/versioned/typed/rook/v1alpha2/rook_client.go b/pkg/client/clientset/versioned/typed/rook.io/v1alpha2/rook.io_client.go similarity index 96% rename from pkg/client/clientset/versioned/typed/rook/v1alpha2/rook_client.go rename to pkg/client/clientset/versioned/typed/rook.io/v1alpha2/rook.io_client.go index 6b69c9eac..24aa2049b 100644 --- a/pkg/client/clientset/versioned/typed/rook/v1alpha2/rook_client.go +++ b/pkg/client/clientset/versioned/typed/rook.io/v1alpha2/rook.io_client.go @@ -1,5 +1,5 @@ /* -Copyright 2018 The Kubernetes Authors. +Copyright The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -14,6 +14,8 @@ See the License for the specific language governing permissions and limitations under the License. */ +// Code generated by client-gen. DO NOT EDIT. + package v1alpha2 import ( diff --git a/pkg/client/clientset/versioned/typed/rook/v1alpha2/volume.go b/pkg/client/clientset/versioned/typed/rook.io/v1alpha2/volume.go similarity index 98% rename from pkg/client/clientset/versioned/typed/rook/v1alpha2/volume.go rename to pkg/client/clientset/versioned/typed/rook.io/v1alpha2/volume.go index 3e56f55b0..2432c1f63 100644 --- a/pkg/client/clientset/versioned/typed/rook/v1alpha2/volume.go +++ b/pkg/client/clientset/versioned/typed/rook.io/v1alpha2/volume.go @@ -1,5 +1,5 @@ /* -Copyright 2018 The Kubernetes Authors. +Copyright The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -14,6 +14,8 @@ See the License for the specific language governing permissions and limitations under the License. */ +// Code generated by client-gen. DO NOT EDIT. + package v1alpha2 import ( diff --git a/pkg/client/clientset/versioned/typed/rook/v1alpha1/doc.go b/pkg/client/clientset/versioned/typed/rook/v1alpha1/doc.go deleted file mode 100644 index f51751d64..000000000 --- a/pkg/client/clientset/versioned/typed/rook/v1alpha1/doc.go +++ /dev/null @@ -1,20 +0,0 @@ -/* -Copyright 2018 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// This package is generated by client-gen with custom arguments. - -// This package has the automatically generated typed clients. -package v1alpha1 diff --git a/pkg/client/clientset/versioned/typed/rook/v1alpha1/fake/doc.go b/pkg/client/clientset/versioned/typed/rook/v1alpha1/fake/doc.go deleted file mode 100644 index d4003d501..000000000 --- a/pkg/client/clientset/versioned/typed/rook/v1alpha1/fake/doc.go +++ /dev/null @@ -1,20 +0,0 @@ -/* -Copyright 2018 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// This package is generated by client-gen with custom arguments. - -// Package fake has the automatically generated clients. -package fake diff --git a/pkg/client/clientset/versioned/typed/rook/v1alpha2/fake/doc.go b/pkg/client/clientset/versioned/typed/rook/v1alpha2/fake/doc.go deleted file mode 100644 index d4003d501..000000000 --- a/pkg/client/clientset/versioned/typed/rook/v1alpha2/fake/doc.go +++ /dev/null @@ -1,20 +0,0 @@ -/* -Copyright 2018 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// This package is generated by client-gen with custom arguments. - -// Package fake has the automatically generated clients. -package fake diff --git a/pkg/client/informers/externalversions/ceph.rook.io/interface.go b/pkg/client/informers/externalversions/ceph.rook.io/interface.go new file mode 100644 index 000000000..6ca7106b1 --- /dev/null +++ b/pkg/client/informers/externalversions/ceph.rook.io/interface.go @@ -0,0 +1,54 @@ +/* +Copyright The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by informer-gen. DO NOT EDIT. + +package ceph + +import ( + v1alpha1 "github.com/rook/rook/pkg/client/informers/externalversions/ceph.rook.io/v1alpha1" + v1beta1 "github.com/rook/rook/pkg/client/informers/externalversions/ceph.rook.io/v1beta1" + internalinterfaces "github.com/rook/rook/pkg/client/informers/externalversions/internalinterfaces" +) + +// Interface provides access to each of this group's versions. +type Interface interface { + // V1alpha1 provides access to shared informers for resources in V1alpha1. + V1alpha1() v1alpha1.Interface + // V1beta1 provides access to shared informers for resources in V1beta1. + V1beta1() v1beta1.Interface +} + +type group struct { + factory internalinterfaces.SharedInformerFactory + namespace string + tweakListOptions internalinterfaces.TweakListOptionsFunc +} + +// New returns a new Interface. +func New(f internalinterfaces.SharedInformerFactory, namespace string, tweakListOptions internalinterfaces.TweakListOptionsFunc) Interface { + return &group{factory: f, namespace: namespace, tweakListOptions: tweakListOptions} +} + +// V1alpha1 returns a new v1alpha1.Interface. +func (g *group) V1alpha1() v1alpha1.Interface { + return v1alpha1.New(g.factory, g.namespace, g.tweakListOptions) +} + +// V1beta1 returns a new v1beta1.Interface. +func (g *group) V1beta1() v1beta1.Interface { + return v1beta1.New(g.factory, g.namespace, g.tweakListOptions) +} diff --git a/pkg/client/informers/externalversions/ceph.rook.io/v1alpha1/cluster.go b/pkg/client/informers/externalversions/ceph.rook.io/v1alpha1/cluster.go new file mode 100644 index 000000000..01638ebf1 --- /dev/null +++ b/pkg/client/informers/externalversions/ceph.rook.io/v1alpha1/cluster.go @@ -0,0 +1,89 @@ +/* +Copyright The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by informer-gen. DO NOT EDIT. + +package v1alpha1 + +import ( + time "time" + + cephrookiov1alpha1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1alpha1" + versioned "github.com/rook/rook/pkg/client/clientset/versioned" + internalinterfaces "github.com/rook/rook/pkg/client/informers/externalversions/internalinterfaces" + v1alpha1 "github.com/rook/rook/pkg/client/listers/ceph.rook.io/v1alpha1" + v1 "k8s.io/apimachinery/pkg/apis/meta/v1" + runtime "k8s.io/apimachinery/pkg/runtime" + watch "k8s.io/apimachinery/pkg/watch" + cache "k8s.io/client-go/tools/cache" +) + +// ClusterInformer provides access to a shared informer and lister for +// Clusters. +type ClusterInformer interface { + Informer() cache.SharedIndexInformer + Lister() v1alpha1.ClusterLister +} + +type clusterInformer struct { + factory internalinterfaces.SharedInformerFactory + tweakListOptions internalinterfaces.TweakListOptionsFunc + namespace string +} + +// NewClusterInformer constructs a new informer for Cluster type. +// Always prefer using an informer factory to get a shared informer instead of getting an independent +// one. This reduces memory footprint and number of connections to the server. +func NewClusterInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { + return NewFilteredClusterInformer(client, namespace, resyncPeriod, indexers, nil) +} + +// NewFilteredClusterInformer constructs a new informer for Cluster type. +// Always prefer using an informer factory to get a shared informer instead of getting an independent +// one. This reduces memory footprint and number of connections to the server. +func NewFilteredClusterInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { + return cache.NewSharedIndexInformer( + &cache.ListWatch{ + ListFunc: func(options v1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.CephV1alpha1().Clusters(namespace).List(options) + }, + WatchFunc: func(options v1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.CephV1alpha1().Clusters(namespace).Watch(options) + }, + }, + &cephrookiov1alpha1.Cluster{}, + resyncPeriod, + indexers, + ) +} + +func (f *clusterInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { + return NewFilteredClusterInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) +} + +func (f *clusterInformer) Informer() cache.SharedIndexInformer { + return f.factory.InformerFor(&cephrookiov1alpha1.Cluster{}, f.defaultInformer) +} + +func (f *clusterInformer) Lister() v1alpha1.ClusterLister { + return v1alpha1.NewClusterLister(f.Informer().GetIndexer()) +} diff --git a/pkg/client/informers/externalversions/ceph.rook.io/v1alpha1/filesystem.go b/pkg/client/informers/externalversions/ceph.rook.io/v1alpha1/filesystem.go new file mode 100644 index 000000000..bbf10110f --- /dev/null +++ b/pkg/client/informers/externalversions/ceph.rook.io/v1alpha1/filesystem.go @@ -0,0 +1,89 @@ +/* +Copyright The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by informer-gen. DO NOT EDIT. + +package v1alpha1 + +import ( + time "time" + + cephrookiov1alpha1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1alpha1" + versioned "github.com/rook/rook/pkg/client/clientset/versioned" + internalinterfaces "github.com/rook/rook/pkg/client/informers/externalversions/internalinterfaces" + v1alpha1 "github.com/rook/rook/pkg/client/listers/ceph.rook.io/v1alpha1" + v1 "k8s.io/apimachinery/pkg/apis/meta/v1" + runtime "k8s.io/apimachinery/pkg/runtime" + watch "k8s.io/apimachinery/pkg/watch" + cache "k8s.io/client-go/tools/cache" +) + +// FilesystemInformer provides access to a shared informer and lister for +// Filesystems. +type FilesystemInformer interface { + Informer() cache.SharedIndexInformer + Lister() v1alpha1.FilesystemLister +} + +type filesystemInformer struct { + factory internalinterfaces.SharedInformerFactory + tweakListOptions internalinterfaces.TweakListOptionsFunc + namespace string +} + +// NewFilesystemInformer constructs a new informer for Filesystem type. +// Always prefer using an informer factory to get a shared informer instead of getting an independent +// one. This reduces memory footprint and number of connections to the server. +func NewFilesystemInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { + return NewFilteredFilesystemInformer(client, namespace, resyncPeriod, indexers, nil) +} + +// NewFilteredFilesystemInformer constructs a new informer for Filesystem type. +// Always prefer using an informer factory to get a shared informer instead of getting an independent +// one. This reduces memory footprint and number of connections to the server. +func NewFilteredFilesystemInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { + return cache.NewSharedIndexInformer( + &cache.ListWatch{ + ListFunc: func(options v1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.CephV1alpha1().Filesystems(namespace).List(options) + }, + WatchFunc: func(options v1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.CephV1alpha1().Filesystems(namespace).Watch(options) + }, + }, + &cephrookiov1alpha1.Filesystem{}, + resyncPeriod, + indexers, + ) +} + +func (f *filesystemInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { + return NewFilteredFilesystemInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) +} + +func (f *filesystemInformer) Informer() cache.SharedIndexInformer { + return f.factory.InformerFor(&cephrookiov1alpha1.Filesystem{}, f.defaultInformer) +} + +func (f *filesystemInformer) Lister() v1alpha1.FilesystemLister { + return v1alpha1.NewFilesystemLister(f.Informer().GetIndexer()) +} diff --git a/pkg/client/informers/externalversions/ceph.rook.io/v1alpha1/interface.go b/pkg/client/informers/externalversions/ceph.rook.io/v1alpha1/interface.go new file mode 100644 index 000000000..f1f96b206 --- /dev/null +++ b/pkg/client/informers/externalversions/ceph.rook.io/v1alpha1/interface.go @@ -0,0 +1,66 @@ +/* +Copyright The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by informer-gen. DO NOT EDIT. + +package v1alpha1 + +import ( + internalinterfaces "github.com/rook/rook/pkg/client/informers/externalversions/internalinterfaces" +) + +// Interface provides access to all the informers in this group version. +type Interface interface { + // Clusters returns a ClusterInformer. + Clusters() ClusterInformer + // Filesystems returns a FilesystemInformer. + Filesystems() FilesystemInformer + // ObjectStores returns a ObjectStoreInformer. + ObjectStores() ObjectStoreInformer + // Pools returns a PoolInformer. + Pools() PoolInformer +} + +type version struct { + factory internalinterfaces.SharedInformerFactory + namespace string + tweakListOptions internalinterfaces.TweakListOptionsFunc +} + +// New returns a new Interface. +func New(f internalinterfaces.SharedInformerFactory, namespace string, tweakListOptions internalinterfaces.TweakListOptionsFunc) Interface { + return &version{factory: f, namespace: namespace, tweakListOptions: tweakListOptions} +} + +// Clusters returns a ClusterInformer. +func (v *version) Clusters() ClusterInformer { + return &clusterInformer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions} +} + +// Filesystems returns a FilesystemInformer. +func (v *version) Filesystems() FilesystemInformer { + return &filesystemInformer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions} +} + +// ObjectStores returns a ObjectStoreInformer. +func (v *version) ObjectStores() ObjectStoreInformer { + return &objectStoreInformer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions} +} + +// Pools returns a PoolInformer. +func (v *version) Pools() PoolInformer { + return &poolInformer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions} +} diff --git a/pkg/client/informers/externalversions/ceph.rook.io/v1alpha1/objectstore.go b/pkg/client/informers/externalversions/ceph.rook.io/v1alpha1/objectstore.go new file mode 100644 index 000000000..36d8b041d --- /dev/null +++ b/pkg/client/informers/externalversions/ceph.rook.io/v1alpha1/objectstore.go @@ -0,0 +1,89 @@ +/* +Copyright The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by informer-gen. DO NOT EDIT. + +package v1alpha1 + +import ( + time "time" + + cephrookiov1alpha1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1alpha1" + versioned "github.com/rook/rook/pkg/client/clientset/versioned" + internalinterfaces "github.com/rook/rook/pkg/client/informers/externalversions/internalinterfaces" + v1alpha1 "github.com/rook/rook/pkg/client/listers/ceph.rook.io/v1alpha1" + v1 "k8s.io/apimachinery/pkg/apis/meta/v1" + runtime "k8s.io/apimachinery/pkg/runtime" + watch "k8s.io/apimachinery/pkg/watch" + cache "k8s.io/client-go/tools/cache" +) + +// ObjectStoreInformer provides access to a shared informer and lister for +// ObjectStores. +type ObjectStoreInformer interface { + Informer() cache.SharedIndexInformer + Lister() v1alpha1.ObjectStoreLister +} + +type objectStoreInformer struct { + factory internalinterfaces.SharedInformerFactory + tweakListOptions internalinterfaces.TweakListOptionsFunc + namespace string +} + +// NewObjectStoreInformer constructs a new informer for ObjectStore type. +// Always prefer using an informer factory to get a shared informer instead of getting an independent +// one. This reduces memory footprint and number of connections to the server. +func NewObjectStoreInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { + return NewFilteredObjectStoreInformer(client, namespace, resyncPeriod, indexers, nil) +} + +// NewFilteredObjectStoreInformer constructs a new informer for ObjectStore type. +// Always prefer using an informer factory to get a shared informer instead of getting an independent +// one. This reduces memory footprint and number of connections to the server. +func NewFilteredObjectStoreInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { + return cache.NewSharedIndexInformer( + &cache.ListWatch{ + ListFunc: func(options v1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.CephV1alpha1().ObjectStores(namespace).List(options) + }, + WatchFunc: func(options v1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.CephV1alpha1().ObjectStores(namespace).Watch(options) + }, + }, + &cephrookiov1alpha1.ObjectStore{}, + resyncPeriod, + indexers, + ) +} + +func (f *objectStoreInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { + return NewFilteredObjectStoreInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) +} + +func (f *objectStoreInformer) Informer() cache.SharedIndexInformer { + return f.factory.InformerFor(&cephrookiov1alpha1.ObjectStore{}, f.defaultInformer) +} + +func (f *objectStoreInformer) Lister() v1alpha1.ObjectStoreLister { + return v1alpha1.NewObjectStoreLister(f.Informer().GetIndexer()) +} diff --git a/pkg/client/informers/externalversions/ceph.rook.io/v1alpha1/pool.go b/pkg/client/informers/externalversions/ceph.rook.io/v1alpha1/pool.go new file mode 100644 index 000000000..87b555ddb --- /dev/null +++ b/pkg/client/informers/externalversions/ceph.rook.io/v1alpha1/pool.go @@ -0,0 +1,89 @@ +/* +Copyright The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by informer-gen. DO NOT EDIT. + +package v1alpha1 + +import ( + time "time" + + cephrookiov1alpha1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1alpha1" + versioned "github.com/rook/rook/pkg/client/clientset/versioned" + internalinterfaces "github.com/rook/rook/pkg/client/informers/externalversions/internalinterfaces" + v1alpha1 "github.com/rook/rook/pkg/client/listers/ceph.rook.io/v1alpha1" + v1 "k8s.io/apimachinery/pkg/apis/meta/v1" + runtime "k8s.io/apimachinery/pkg/runtime" + watch "k8s.io/apimachinery/pkg/watch" + cache "k8s.io/client-go/tools/cache" +) + +// PoolInformer provides access to a shared informer and lister for +// Pools. +type PoolInformer interface { + Informer() cache.SharedIndexInformer + Lister() v1alpha1.PoolLister +} + +type poolInformer struct { + factory internalinterfaces.SharedInformerFactory + tweakListOptions internalinterfaces.TweakListOptionsFunc + namespace string +} + +// NewPoolInformer constructs a new informer for Pool type. +// Always prefer using an informer factory to get a shared informer instead of getting an independent +// one. This reduces memory footprint and number of connections to the server. +func NewPoolInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { + return NewFilteredPoolInformer(client, namespace, resyncPeriod, indexers, nil) +} + +// NewFilteredPoolInformer constructs a new informer for Pool type. +// Always prefer using an informer factory to get a shared informer instead of getting an independent +// one. This reduces memory footprint and number of connections to the server. +func NewFilteredPoolInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { + return cache.NewSharedIndexInformer( + &cache.ListWatch{ + ListFunc: func(options v1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.CephV1alpha1().Pools(namespace).List(options) + }, + WatchFunc: func(options v1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.CephV1alpha1().Pools(namespace).Watch(options) + }, + }, + &cephrookiov1alpha1.Pool{}, + resyncPeriod, + indexers, + ) +} + +func (f *poolInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { + return NewFilteredPoolInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) +} + +func (f *poolInformer) Informer() cache.SharedIndexInformer { + return f.factory.InformerFor(&cephrookiov1alpha1.Pool{}, f.defaultInformer) +} + +func (f *poolInformer) Lister() v1alpha1.PoolLister { + return v1alpha1.NewPoolLister(f.Informer().GetIndexer()) +} diff --git a/pkg/client/informers/externalversions/ceph.rook.io/v1beta1/cluster.go b/pkg/client/informers/externalversions/ceph.rook.io/v1beta1/cluster.go new file mode 100644 index 000000000..bb98612b1 --- /dev/null +++ b/pkg/client/informers/externalversions/ceph.rook.io/v1beta1/cluster.go @@ -0,0 +1,89 @@ +/* +Copyright The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by informer-gen. DO NOT EDIT. + +package v1beta1 + +import ( + time "time" + + cephrookiov1beta1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1beta1" + versioned "github.com/rook/rook/pkg/client/clientset/versioned" + internalinterfaces "github.com/rook/rook/pkg/client/informers/externalversions/internalinterfaces" + v1beta1 "github.com/rook/rook/pkg/client/listers/ceph.rook.io/v1beta1" + v1 "k8s.io/apimachinery/pkg/apis/meta/v1" + runtime "k8s.io/apimachinery/pkg/runtime" + watch "k8s.io/apimachinery/pkg/watch" + cache "k8s.io/client-go/tools/cache" +) + +// ClusterInformer provides access to a shared informer and lister for +// Clusters. +type ClusterInformer interface { + Informer() cache.SharedIndexInformer + Lister() v1beta1.ClusterLister +} + +type clusterInformer struct { + factory internalinterfaces.SharedInformerFactory + tweakListOptions internalinterfaces.TweakListOptionsFunc + namespace string +} + +// NewClusterInformer constructs a new informer for Cluster type. +// Always prefer using an informer factory to get a shared informer instead of getting an independent +// one. This reduces memory footprint and number of connections to the server. +func NewClusterInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { + return NewFilteredClusterInformer(client, namespace, resyncPeriod, indexers, nil) +} + +// NewFilteredClusterInformer constructs a new informer for Cluster type. +// Always prefer using an informer factory to get a shared informer instead of getting an independent +// one. This reduces memory footprint and number of connections to the server. +func NewFilteredClusterInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { + return cache.NewSharedIndexInformer( + &cache.ListWatch{ + ListFunc: func(options v1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.CephV1beta1().Clusters(namespace).List(options) + }, + WatchFunc: func(options v1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.CephV1beta1().Clusters(namespace).Watch(options) + }, + }, + &cephrookiov1beta1.Cluster{}, + resyncPeriod, + indexers, + ) +} + +func (f *clusterInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { + return NewFilteredClusterInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) +} + +func (f *clusterInformer) Informer() cache.SharedIndexInformer { + return f.factory.InformerFor(&cephrookiov1beta1.Cluster{}, f.defaultInformer) +} + +func (f *clusterInformer) Lister() v1beta1.ClusterLister { + return v1beta1.NewClusterLister(f.Informer().GetIndexer()) +} diff --git a/pkg/client/informers/externalversions/ceph.rook.io/v1beta1/filesystem.go b/pkg/client/informers/externalversions/ceph.rook.io/v1beta1/filesystem.go new file mode 100644 index 000000000..fdc61db0f --- /dev/null +++ b/pkg/client/informers/externalversions/ceph.rook.io/v1beta1/filesystem.go @@ -0,0 +1,89 @@ +/* +Copyright The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by informer-gen. DO NOT EDIT. + +package v1beta1 + +import ( + time "time" + + cephrookiov1beta1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1beta1" + versioned "github.com/rook/rook/pkg/client/clientset/versioned" + internalinterfaces "github.com/rook/rook/pkg/client/informers/externalversions/internalinterfaces" + v1beta1 "github.com/rook/rook/pkg/client/listers/ceph.rook.io/v1beta1" + v1 "k8s.io/apimachinery/pkg/apis/meta/v1" + runtime "k8s.io/apimachinery/pkg/runtime" + watch "k8s.io/apimachinery/pkg/watch" + cache "k8s.io/client-go/tools/cache" +) + +// FilesystemInformer provides access to a shared informer and lister for +// Filesystems. +type FilesystemInformer interface { + Informer() cache.SharedIndexInformer + Lister() v1beta1.FilesystemLister +} + +type filesystemInformer struct { + factory internalinterfaces.SharedInformerFactory + tweakListOptions internalinterfaces.TweakListOptionsFunc + namespace string +} + +// NewFilesystemInformer constructs a new informer for Filesystem type. +// Always prefer using an informer factory to get a shared informer instead of getting an independent +// one. This reduces memory footprint and number of connections to the server. +func NewFilesystemInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { + return NewFilteredFilesystemInformer(client, namespace, resyncPeriod, indexers, nil) +} + +// NewFilteredFilesystemInformer constructs a new informer for Filesystem type. +// Always prefer using an informer factory to get a shared informer instead of getting an independent +// one. This reduces memory footprint and number of connections to the server. +func NewFilteredFilesystemInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { + return cache.NewSharedIndexInformer( + &cache.ListWatch{ + ListFunc: func(options v1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.CephV1beta1().Filesystems(namespace).List(options) + }, + WatchFunc: func(options v1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.CephV1beta1().Filesystems(namespace).Watch(options) + }, + }, + &cephrookiov1beta1.Filesystem{}, + resyncPeriod, + indexers, + ) +} + +func (f *filesystemInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { + return NewFilteredFilesystemInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) +} + +func (f *filesystemInformer) Informer() cache.SharedIndexInformer { + return f.factory.InformerFor(&cephrookiov1beta1.Filesystem{}, f.defaultInformer) +} + +func (f *filesystemInformer) Lister() v1beta1.FilesystemLister { + return v1beta1.NewFilesystemLister(f.Informer().GetIndexer()) +} diff --git a/pkg/client/informers/externalversions/ceph.rook.io/v1beta1/interface.go b/pkg/client/informers/externalversions/ceph.rook.io/v1beta1/interface.go new file mode 100644 index 000000000..36f841ab0 --- /dev/null +++ b/pkg/client/informers/externalversions/ceph.rook.io/v1beta1/interface.go @@ -0,0 +1,66 @@ +/* +Copyright The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by informer-gen. DO NOT EDIT. + +package v1beta1 + +import ( + internalinterfaces "github.com/rook/rook/pkg/client/informers/externalversions/internalinterfaces" +) + +// Interface provides access to all the informers in this group version. +type Interface interface { + // Clusters returns a ClusterInformer. + Clusters() ClusterInformer + // Filesystems returns a FilesystemInformer. + Filesystems() FilesystemInformer + // ObjectStores returns a ObjectStoreInformer. + ObjectStores() ObjectStoreInformer + // Pools returns a PoolInformer. + Pools() PoolInformer +} + +type version struct { + factory internalinterfaces.SharedInformerFactory + namespace string + tweakListOptions internalinterfaces.TweakListOptionsFunc +} + +// New returns a new Interface. +func New(f internalinterfaces.SharedInformerFactory, namespace string, tweakListOptions internalinterfaces.TweakListOptionsFunc) Interface { + return &version{factory: f, namespace: namespace, tweakListOptions: tweakListOptions} +} + +// Clusters returns a ClusterInformer. +func (v *version) Clusters() ClusterInformer { + return &clusterInformer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions} +} + +// Filesystems returns a FilesystemInformer. +func (v *version) Filesystems() FilesystemInformer { + return &filesystemInformer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions} +} + +// ObjectStores returns a ObjectStoreInformer. +func (v *version) ObjectStores() ObjectStoreInformer { + return &objectStoreInformer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions} +} + +// Pools returns a PoolInformer. +func (v *version) Pools() PoolInformer { + return &poolInformer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions} +} diff --git a/pkg/client/informers/externalversions/ceph.rook.io/v1beta1/objectstore.go b/pkg/client/informers/externalversions/ceph.rook.io/v1beta1/objectstore.go new file mode 100644 index 000000000..b2cbe1211 --- /dev/null +++ b/pkg/client/informers/externalversions/ceph.rook.io/v1beta1/objectstore.go @@ -0,0 +1,89 @@ +/* +Copyright The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by informer-gen. DO NOT EDIT. + +package v1beta1 + +import ( + time "time" + + cephrookiov1beta1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1beta1" + versioned "github.com/rook/rook/pkg/client/clientset/versioned" + internalinterfaces "github.com/rook/rook/pkg/client/informers/externalversions/internalinterfaces" + v1beta1 "github.com/rook/rook/pkg/client/listers/ceph.rook.io/v1beta1" + v1 "k8s.io/apimachinery/pkg/apis/meta/v1" + runtime "k8s.io/apimachinery/pkg/runtime" + watch "k8s.io/apimachinery/pkg/watch" + cache "k8s.io/client-go/tools/cache" +) + +// ObjectStoreInformer provides access to a shared informer and lister for +// ObjectStores. +type ObjectStoreInformer interface { + Informer() cache.SharedIndexInformer + Lister() v1beta1.ObjectStoreLister +} + +type objectStoreInformer struct { + factory internalinterfaces.SharedInformerFactory + tweakListOptions internalinterfaces.TweakListOptionsFunc + namespace string +} + +// NewObjectStoreInformer constructs a new informer for ObjectStore type. +// Always prefer using an informer factory to get a shared informer instead of getting an independent +// one. This reduces memory footprint and number of connections to the server. +func NewObjectStoreInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { + return NewFilteredObjectStoreInformer(client, namespace, resyncPeriod, indexers, nil) +} + +// NewFilteredObjectStoreInformer constructs a new informer for ObjectStore type. +// Always prefer using an informer factory to get a shared informer instead of getting an independent +// one. This reduces memory footprint and number of connections to the server. +func NewFilteredObjectStoreInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { + return cache.NewSharedIndexInformer( + &cache.ListWatch{ + ListFunc: func(options v1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.CephV1beta1().ObjectStores(namespace).List(options) + }, + WatchFunc: func(options v1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.CephV1beta1().ObjectStores(namespace).Watch(options) + }, + }, + &cephrookiov1beta1.ObjectStore{}, + resyncPeriod, + indexers, + ) +} + +func (f *objectStoreInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { + return NewFilteredObjectStoreInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) +} + +func (f *objectStoreInformer) Informer() cache.SharedIndexInformer { + return f.factory.InformerFor(&cephrookiov1beta1.ObjectStore{}, f.defaultInformer) +} + +func (f *objectStoreInformer) Lister() v1beta1.ObjectStoreLister { + return v1beta1.NewObjectStoreLister(f.Informer().GetIndexer()) +} diff --git a/pkg/client/informers/externalversions/ceph.rook.io/v1beta1/pool.go b/pkg/client/informers/externalversions/ceph.rook.io/v1beta1/pool.go new file mode 100644 index 000000000..e789c41d1 --- /dev/null +++ b/pkg/client/informers/externalversions/ceph.rook.io/v1beta1/pool.go @@ -0,0 +1,89 @@ +/* +Copyright The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by informer-gen. DO NOT EDIT. + +package v1beta1 + +import ( + time "time" + + cephrookiov1beta1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1beta1" + versioned "github.com/rook/rook/pkg/client/clientset/versioned" + internalinterfaces "github.com/rook/rook/pkg/client/informers/externalversions/internalinterfaces" + v1beta1 "github.com/rook/rook/pkg/client/listers/ceph.rook.io/v1beta1" + v1 "k8s.io/apimachinery/pkg/apis/meta/v1" + runtime "k8s.io/apimachinery/pkg/runtime" + watch "k8s.io/apimachinery/pkg/watch" + cache "k8s.io/client-go/tools/cache" +) + +// PoolInformer provides access to a shared informer and lister for +// Pools. +type PoolInformer interface { + Informer() cache.SharedIndexInformer + Lister() v1beta1.PoolLister +} + +type poolInformer struct { + factory internalinterfaces.SharedInformerFactory + tweakListOptions internalinterfaces.TweakListOptionsFunc + namespace string +} + +// NewPoolInformer constructs a new informer for Pool type. +// Always prefer using an informer factory to get a shared informer instead of getting an independent +// one. This reduces memory footprint and number of connections to the server. +func NewPoolInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { + return NewFilteredPoolInformer(client, namespace, resyncPeriod, indexers, nil) +} + +// NewFilteredPoolInformer constructs a new informer for Pool type. +// Always prefer using an informer factory to get a shared informer instead of getting an independent +// one. This reduces memory footprint and number of connections to the server. +func NewFilteredPoolInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { + return cache.NewSharedIndexInformer( + &cache.ListWatch{ + ListFunc: func(options v1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.CephV1beta1().Pools(namespace).List(options) + }, + WatchFunc: func(options v1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.CephV1beta1().Pools(namespace).Watch(options) + }, + }, + &cephrookiov1beta1.Pool{}, + resyncPeriod, + indexers, + ) +} + +func (f *poolInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { + return NewFilteredPoolInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) +} + +func (f *poolInformer) Informer() cache.SharedIndexInformer { + return f.factory.InformerFor(&cephrookiov1beta1.Pool{}, f.defaultInformer) +} + +func (f *poolInformer) Lister() v1beta1.PoolLister { + return v1beta1.NewPoolLister(f.Informer().GetIndexer()) +} diff --git a/pkg/client/informers/externalversions/cockroachdb.rook.io/interface.go b/pkg/client/informers/externalversions/cockroachdb.rook.io/interface.go new file mode 100644 index 000000000..309191717 --- /dev/null +++ b/pkg/client/informers/externalversions/cockroachdb.rook.io/interface.go @@ -0,0 +1,46 @@ +/* +Copyright The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by informer-gen. DO NOT EDIT. + +package cockroachdb + +import ( + v1alpha1 "github.com/rook/rook/pkg/client/informers/externalversions/cockroachdb.rook.io/v1alpha1" + internalinterfaces "github.com/rook/rook/pkg/client/informers/externalversions/internalinterfaces" +) + +// Interface provides access to each of this group's versions. +type Interface interface { + // V1alpha1 provides access to shared informers for resources in V1alpha1. + V1alpha1() v1alpha1.Interface +} + +type group struct { + factory internalinterfaces.SharedInformerFactory + namespace string + tweakListOptions internalinterfaces.TweakListOptionsFunc +} + +// New returns a new Interface. +func New(f internalinterfaces.SharedInformerFactory, namespace string, tweakListOptions internalinterfaces.TweakListOptionsFunc) Interface { + return &group{factory: f, namespace: namespace, tweakListOptions: tweakListOptions} +} + +// V1alpha1 returns a new v1alpha1.Interface. +func (g *group) V1alpha1() v1alpha1.Interface { + return v1alpha1.New(g.factory, g.namespace, g.tweakListOptions) +} diff --git a/pkg/client/informers/externalversions/cockroachdb.rook.io/v1alpha1/cluster.go b/pkg/client/informers/externalversions/cockroachdb.rook.io/v1alpha1/cluster.go new file mode 100644 index 000000000..f6a9c583b --- /dev/null +++ b/pkg/client/informers/externalversions/cockroachdb.rook.io/v1alpha1/cluster.go @@ -0,0 +1,89 @@ +/* +Copyright The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by informer-gen. DO NOT EDIT. + +package v1alpha1 + +import ( + time "time" + + cockroachdbrookiov1alpha1 "github.com/rook/rook/pkg/apis/cockroachdb.rook.io/v1alpha1" + versioned "github.com/rook/rook/pkg/client/clientset/versioned" + internalinterfaces "github.com/rook/rook/pkg/client/informers/externalversions/internalinterfaces" + v1alpha1 "github.com/rook/rook/pkg/client/listers/cockroachdb.rook.io/v1alpha1" + v1 "k8s.io/apimachinery/pkg/apis/meta/v1" + runtime "k8s.io/apimachinery/pkg/runtime" + watch "k8s.io/apimachinery/pkg/watch" + cache "k8s.io/client-go/tools/cache" +) + +// ClusterInformer provides access to a shared informer and lister for +// Clusters. +type ClusterInformer interface { + Informer() cache.SharedIndexInformer + Lister() v1alpha1.ClusterLister +} + +type clusterInformer struct { + factory internalinterfaces.SharedInformerFactory + tweakListOptions internalinterfaces.TweakListOptionsFunc + namespace string +} + +// NewClusterInformer constructs a new informer for Cluster type. +// Always prefer using an informer factory to get a shared informer instead of getting an independent +// one. This reduces memory footprint and number of connections to the server. +func NewClusterInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { + return NewFilteredClusterInformer(client, namespace, resyncPeriod, indexers, nil) +} + +// NewFilteredClusterInformer constructs a new informer for Cluster type. +// Always prefer using an informer factory to get a shared informer instead of getting an independent +// one. This reduces memory footprint and number of connections to the server. +func NewFilteredClusterInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { + return cache.NewSharedIndexInformer( + &cache.ListWatch{ + ListFunc: func(options v1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.CockroachdbV1alpha1().Clusters(namespace).List(options) + }, + WatchFunc: func(options v1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.CockroachdbV1alpha1().Clusters(namespace).Watch(options) + }, + }, + &cockroachdbrookiov1alpha1.Cluster{}, + resyncPeriod, + indexers, + ) +} + +func (f *clusterInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { + return NewFilteredClusterInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) +} + +func (f *clusterInformer) Informer() cache.SharedIndexInformer { + return f.factory.InformerFor(&cockroachdbrookiov1alpha1.Cluster{}, f.defaultInformer) +} + +func (f *clusterInformer) Lister() v1alpha1.ClusterLister { + return v1alpha1.NewClusterLister(f.Informer().GetIndexer()) +} diff --git a/pkg/client/informers/externalversions/cockroachdb.rook.io/v1alpha1/interface.go b/pkg/client/informers/externalversions/cockroachdb.rook.io/v1alpha1/interface.go new file mode 100644 index 000000000..f5556f182 --- /dev/null +++ b/pkg/client/informers/externalversions/cockroachdb.rook.io/v1alpha1/interface.go @@ -0,0 +1,45 @@ +/* +Copyright The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by informer-gen. DO NOT EDIT. + +package v1alpha1 + +import ( + internalinterfaces "github.com/rook/rook/pkg/client/informers/externalversions/internalinterfaces" +) + +// Interface provides access to all the informers in this group version. +type Interface interface { + // Clusters returns a ClusterInformer. + Clusters() ClusterInformer +} + +type version struct { + factory internalinterfaces.SharedInformerFactory + namespace string + tweakListOptions internalinterfaces.TweakListOptionsFunc +} + +// New returns a new Interface. +func New(f internalinterfaces.SharedInformerFactory, namespace string, tweakListOptions internalinterfaces.TweakListOptionsFunc) Interface { + return &version{factory: f, namespace: namespace, tweakListOptions: tweakListOptions} +} + +// Clusters returns a ClusterInformer. +func (v *version) Clusters() ClusterInformer { + return &clusterInformer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions} +} diff --git a/pkg/client/informers/externalversions/factory.go b/pkg/client/informers/externalversions/factory.go new file mode 100644 index 000000000..a4c381a19 --- /dev/null +++ b/pkg/client/informers/externalversions/factory.go @@ -0,0 +1,204 @@ +/* +Copyright The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by informer-gen. DO NOT EDIT. + +package externalversions + +import ( + reflect "reflect" + sync "sync" + time "time" + + versioned "github.com/rook/rook/pkg/client/clientset/versioned" + cephrookio "github.com/rook/rook/pkg/client/informers/externalversions/ceph.rook.io" + cockroachdbrookio "github.com/rook/rook/pkg/client/informers/externalversions/cockroachdb.rook.io" + internalinterfaces "github.com/rook/rook/pkg/client/informers/externalversions/internalinterfaces" + miniorookio "github.com/rook/rook/pkg/client/informers/externalversions/minio.rook.io" + nfsrookio "github.com/rook/rook/pkg/client/informers/externalversions/nfs.rook.io" + rookio "github.com/rook/rook/pkg/client/informers/externalversions/rook.io" + v1 "k8s.io/apimachinery/pkg/apis/meta/v1" + runtime "k8s.io/apimachinery/pkg/runtime" + schema "k8s.io/apimachinery/pkg/runtime/schema" + cache "k8s.io/client-go/tools/cache" +) + +// SharedInformerOption defines the functional option type for SharedInformerFactory. +type SharedInformerOption func(*sharedInformerFactory) *sharedInformerFactory + +type sharedInformerFactory struct { + client versioned.Interface + namespace string + tweakListOptions internalinterfaces.TweakListOptionsFunc + lock sync.Mutex + defaultResync time.Duration + customResync map[reflect.Type]time.Duration + + informers map[reflect.Type]cache.SharedIndexInformer + // startedInformers is used for tracking which informers have been started. + // This allows Start() to be called multiple times safely. + startedInformers map[reflect.Type]bool +} + +// WithCustomResyncConfig sets a custom resync period for the specified informer types. +func WithCustomResyncConfig(resyncConfig map[v1.Object]time.Duration) SharedInformerOption { + return func(factory *sharedInformerFactory) *sharedInformerFactory { + for k, v := range resyncConfig { + factory.customResync[reflect.TypeOf(k)] = v + } + return factory + } +} + +// WithTweakListOptions sets a custom filter on all listers of the configured SharedInformerFactory. +func WithTweakListOptions(tweakListOptions internalinterfaces.TweakListOptionsFunc) SharedInformerOption { + return func(factory *sharedInformerFactory) *sharedInformerFactory { + factory.tweakListOptions = tweakListOptions + return factory + } +} + +// WithNamespace limits the SharedInformerFactory to the specified namespace. +func WithNamespace(namespace string) SharedInformerOption { + return func(factory *sharedInformerFactory) *sharedInformerFactory { + factory.namespace = namespace + return factory + } +} + +// NewSharedInformerFactory constructs a new instance of sharedInformerFactory for all namespaces. +func NewSharedInformerFactory(client versioned.Interface, defaultResync time.Duration) SharedInformerFactory { + return NewSharedInformerFactoryWithOptions(client, defaultResync) +} + +// NewFilteredSharedInformerFactory constructs a new instance of sharedInformerFactory. +// Listers obtained via this SharedInformerFactory will be subject to the same filters +// as specified here. +// Deprecated: Please use NewSharedInformerFactoryWithOptions instead +func NewFilteredSharedInformerFactory(client versioned.Interface, defaultResync time.Duration, namespace string, tweakListOptions internalinterfaces.TweakListOptionsFunc) SharedInformerFactory { + return NewSharedInformerFactoryWithOptions(client, defaultResync, WithNamespace(namespace), WithTweakListOptions(tweakListOptions)) +} + +// NewSharedInformerFactoryWithOptions constructs a new instance of a SharedInformerFactory with additional options. +func NewSharedInformerFactoryWithOptions(client versioned.Interface, defaultResync time.Duration, options ...SharedInformerOption) SharedInformerFactory { + factory := &sharedInformerFactory{ + client: client, + namespace: v1.NamespaceAll, + defaultResync: defaultResync, + informers: make(map[reflect.Type]cache.SharedIndexInformer), + startedInformers: make(map[reflect.Type]bool), + customResync: make(map[reflect.Type]time.Duration), + } + + // Apply all options + for _, opt := range options { + factory = opt(factory) + } + + return factory +} + +// Start initializes all requested informers. +func (f *sharedInformerFactory) Start(stopCh <-chan struct{}) { + f.lock.Lock() + defer f.lock.Unlock() + + for informerType, informer := range f.informers { + if !f.startedInformers[informerType] { + go informer.Run(stopCh) + f.startedInformers[informerType] = true + } + } +} + +// WaitForCacheSync waits for all started informers' cache were synced. +func (f *sharedInformerFactory) WaitForCacheSync(stopCh <-chan struct{}) map[reflect.Type]bool { + informers := func() map[reflect.Type]cache.SharedIndexInformer { + f.lock.Lock() + defer f.lock.Unlock() + + informers := map[reflect.Type]cache.SharedIndexInformer{} + for informerType, informer := range f.informers { + if f.startedInformers[informerType] { + informers[informerType] = informer + } + } + return informers + }() + + res := map[reflect.Type]bool{} + for informType, informer := range informers { + res[informType] = cache.WaitForCacheSync(stopCh, informer.HasSynced) + } + return res +} + +// InternalInformerFor returns the SharedIndexInformer for obj using an internal +// client. +func (f *sharedInformerFactory) InformerFor(obj runtime.Object, newFunc internalinterfaces.NewInformerFunc) cache.SharedIndexInformer { + f.lock.Lock() + defer f.lock.Unlock() + + informerType := reflect.TypeOf(obj) + informer, exists := f.informers[informerType] + if exists { + return informer + } + + resyncPeriod, exists := f.customResync[informerType] + if !exists { + resyncPeriod = f.defaultResync + } + + informer = newFunc(f.client, resyncPeriod) + f.informers[informerType] = informer + + return informer +} + +// SharedInformerFactory provides shared informers for resources in all known +// API group versions. +type SharedInformerFactory interface { + internalinterfaces.SharedInformerFactory + ForResource(resource schema.GroupVersionResource) (GenericInformer, error) + WaitForCacheSync(stopCh <-chan struct{}) map[reflect.Type]bool + + Ceph() cephrookio.Interface + Cockroachdb() cockroachdbrookio.Interface + Minio() miniorookio.Interface + Nfs() nfsrookio.Interface + Rook() rookio.Interface +} + +func (f *sharedInformerFactory) Ceph() cephrookio.Interface { + return cephrookio.New(f, f.namespace, f.tweakListOptions) +} + +func (f *sharedInformerFactory) Cockroachdb() cockroachdbrookio.Interface { + return cockroachdbrookio.New(f, f.namespace, f.tweakListOptions) +} + +func (f *sharedInformerFactory) Minio() miniorookio.Interface { + return miniorookio.New(f, f.namespace, f.tweakListOptions) +} + +func (f *sharedInformerFactory) Nfs() nfsrookio.Interface { + return nfsrookio.New(f, f.namespace, f.tweakListOptions) +} + +func (f *sharedInformerFactory) Rook() rookio.Interface { + return rookio.New(f, f.namespace, f.tweakListOptions) +} diff --git a/pkg/client/informers/externalversions/generic.go b/pkg/client/informers/externalversions/generic.go new file mode 100644 index 000000000..41892d0cd --- /dev/null +++ b/pkg/client/informers/externalversions/generic.go @@ -0,0 +1,112 @@ +/* +Copyright The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by informer-gen. DO NOT EDIT. + +package externalversions + +import ( + "fmt" + + v1alpha1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1alpha1" + v1beta1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1beta1" + cockroachdbrookiov1alpha1 "github.com/rook/rook/pkg/apis/cockroachdb.rook.io/v1alpha1" + miniorookiov1alpha1 "github.com/rook/rook/pkg/apis/minio.rook.io/v1alpha1" + nfsrookiov1alpha1 "github.com/rook/rook/pkg/apis/nfs.rook.io/v1alpha1" + rookiov1alpha1 "github.com/rook/rook/pkg/apis/rook.io/v1alpha1" + v1alpha2 "github.com/rook/rook/pkg/apis/rook.io/v1alpha2" + schema "k8s.io/apimachinery/pkg/runtime/schema" + cache "k8s.io/client-go/tools/cache" +) + +// GenericInformer is type of SharedIndexInformer which will locate and delegate to other +// sharedInformers based on type +type GenericInformer interface { + Informer() cache.SharedIndexInformer + Lister() cache.GenericLister +} + +type genericInformer struct { + informer cache.SharedIndexInformer + resource schema.GroupResource +} + +// Informer returns the SharedIndexInformer. +func (f *genericInformer) Informer() cache.SharedIndexInformer { + return f.informer +} + +// Lister returns the GenericLister. +func (f *genericInformer) Lister() cache.GenericLister { + return cache.NewGenericLister(f.Informer().GetIndexer(), f.resource) +} + +// ForResource gives generic access to a shared informer of the matching type +// TODO extend this to unknown resources with a client pool +func (f *sharedInformerFactory) ForResource(resource schema.GroupVersionResource) (GenericInformer, error) { + switch resource { + // Group=ceph.rook.io, Version=v1alpha1 + case v1alpha1.SchemeGroupVersion.WithResource("clusters"): + return &genericInformer{resource: resource.GroupResource(), informer: f.Ceph().V1alpha1().Clusters().Informer()}, nil + case v1alpha1.SchemeGroupVersion.WithResource("filesystems"): + return &genericInformer{resource: resource.GroupResource(), informer: f.Ceph().V1alpha1().Filesystems().Informer()}, nil + case v1alpha1.SchemeGroupVersion.WithResource("objectstores"): + return &genericInformer{resource: resource.GroupResource(), informer: f.Ceph().V1alpha1().ObjectStores().Informer()}, nil + case v1alpha1.SchemeGroupVersion.WithResource("pools"): + return &genericInformer{resource: resource.GroupResource(), informer: f.Ceph().V1alpha1().Pools().Informer()}, nil + + // Group=ceph.rook.io, Version=v1beta1 + case v1beta1.SchemeGroupVersion.WithResource("clusters"): + return &genericInformer{resource: resource.GroupResource(), informer: f.Ceph().V1beta1().Clusters().Informer()}, nil + case v1beta1.SchemeGroupVersion.WithResource("filesystems"): + return &genericInformer{resource: resource.GroupResource(), informer: f.Ceph().V1beta1().Filesystems().Informer()}, nil + case v1beta1.SchemeGroupVersion.WithResource("objectstores"): + return &genericInformer{resource: resource.GroupResource(), informer: f.Ceph().V1beta1().ObjectStores().Informer()}, nil + case v1beta1.SchemeGroupVersion.WithResource("pools"): + return &genericInformer{resource: resource.GroupResource(), informer: f.Ceph().V1beta1().Pools().Informer()}, nil + + // Group=cockroachdb.rook.io, Version=v1alpha1 + case cockroachdbrookiov1alpha1.SchemeGroupVersion.WithResource("clusters"): + return &genericInformer{resource: resource.GroupResource(), informer: f.Cockroachdb().V1alpha1().Clusters().Informer()}, nil + + // Group=minio.rook.io, Version=v1alpha1 + case miniorookiov1alpha1.SchemeGroupVersion.WithResource("objectstores"): + return &genericInformer{resource: resource.GroupResource(), informer: f.Minio().V1alpha1().ObjectStores().Informer()}, nil + + // Group=nfs.rook.io, Version=v1alpha1 + case nfsrookiov1alpha1.SchemeGroupVersion.WithResource("nfsservers"): + return &genericInformer{resource: resource.GroupResource(), informer: f.Nfs().V1alpha1().NFSServers().Informer()}, nil + + // Group=rook.io, Version=v1alpha1 + case rookiov1alpha1.SchemeGroupVersion.WithResource("clusters"): + return &genericInformer{resource: resource.GroupResource(), informer: f.Rook().V1alpha1().Clusters().Informer()}, nil + case rookiov1alpha1.SchemeGroupVersion.WithResource("filesystems"): + return &genericInformer{resource: resource.GroupResource(), informer: f.Rook().V1alpha1().Filesystems().Informer()}, nil + case rookiov1alpha1.SchemeGroupVersion.WithResource("objectstores"): + return &genericInformer{resource: resource.GroupResource(), informer: f.Rook().V1alpha1().ObjectStores().Informer()}, nil + case rookiov1alpha1.SchemeGroupVersion.WithResource("pools"): + return &genericInformer{resource: resource.GroupResource(), informer: f.Rook().V1alpha1().Pools().Informer()}, nil + case rookiov1alpha1.SchemeGroupVersion.WithResource("volumeattachments"): + return &genericInformer{resource: resource.GroupResource(), informer: f.Rook().V1alpha1().VolumeAttachments().Informer()}, nil + + // Group=rook.io, Version=v1alpha2 + case v1alpha2.SchemeGroupVersion.WithResource("volumes"): + return &genericInformer{resource: resource.GroupResource(), informer: f.Rook().V1alpha2().Volumes().Informer()}, nil + + } + + return nil, fmt.Errorf("no informer found for %v", resource) +} diff --git a/pkg/client/informers/externalversions/internalinterfaces/factory_interfaces.go b/pkg/client/informers/externalversions/internalinterfaces/factory_interfaces.go new file mode 100644 index 000000000..6daa0cff5 --- /dev/null +++ b/pkg/client/informers/externalversions/internalinterfaces/factory_interfaces.go @@ -0,0 +1,38 @@ +/* +Copyright The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by informer-gen. DO NOT EDIT. + +package internalinterfaces + +import ( + time "time" + + versioned "github.com/rook/rook/pkg/client/clientset/versioned" + v1 "k8s.io/apimachinery/pkg/apis/meta/v1" + runtime "k8s.io/apimachinery/pkg/runtime" + cache "k8s.io/client-go/tools/cache" +) + +type NewInformerFunc func(versioned.Interface, time.Duration) cache.SharedIndexInformer + +// SharedInformerFactory a small interface to allow for adding an informer without an import cycle +type SharedInformerFactory interface { + Start(stopCh <-chan struct{}) + InformerFor(obj runtime.Object, newFunc NewInformerFunc) cache.SharedIndexInformer +} + +type TweakListOptionsFunc func(*v1.ListOptions) diff --git a/pkg/client/informers/externalversions/minio.rook.io/interface.go b/pkg/client/informers/externalversions/minio.rook.io/interface.go new file mode 100644 index 000000000..c778c260c --- /dev/null +++ b/pkg/client/informers/externalversions/minio.rook.io/interface.go @@ -0,0 +1,46 @@ +/* +Copyright The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by informer-gen. DO NOT EDIT. + +package minio + +import ( + internalinterfaces "github.com/rook/rook/pkg/client/informers/externalversions/internalinterfaces" + v1alpha1 "github.com/rook/rook/pkg/client/informers/externalversions/minio.rook.io/v1alpha1" +) + +// Interface provides access to each of this group's versions. +type Interface interface { + // V1alpha1 provides access to shared informers for resources in V1alpha1. + V1alpha1() v1alpha1.Interface +} + +type group struct { + factory internalinterfaces.SharedInformerFactory + namespace string + tweakListOptions internalinterfaces.TweakListOptionsFunc +} + +// New returns a new Interface. +func New(f internalinterfaces.SharedInformerFactory, namespace string, tweakListOptions internalinterfaces.TweakListOptionsFunc) Interface { + return &group{factory: f, namespace: namespace, tweakListOptions: tweakListOptions} +} + +// V1alpha1 returns a new v1alpha1.Interface. +func (g *group) V1alpha1() v1alpha1.Interface { + return v1alpha1.New(g.factory, g.namespace, g.tweakListOptions) +} diff --git a/pkg/client/informers/externalversions/minio.rook.io/v1alpha1/interface.go b/pkg/client/informers/externalversions/minio.rook.io/v1alpha1/interface.go new file mode 100644 index 000000000..19c059334 --- /dev/null +++ b/pkg/client/informers/externalversions/minio.rook.io/v1alpha1/interface.go @@ -0,0 +1,45 @@ +/* +Copyright The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by informer-gen. DO NOT EDIT. + +package v1alpha1 + +import ( + internalinterfaces "github.com/rook/rook/pkg/client/informers/externalversions/internalinterfaces" +) + +// Interface provides access to all the informers in this group version. +type Interface interface { + // ObjectStores returns a ObjectStoreInformer. + ObjectStores() ObjectStoreInformer +} + +type version struct { + factory internalinterfaces.SharedInformerFactory + namespace string + tweakListOptions internalinterfaces.TweakListOptionsFunc +} + +// New returns a new Interface. +func New(f internalinterfaces.SharedInformerFactory, namespace string, tweakListOptions internalinterfaces.TweakListOptionsFunc) Interface { + return &version{factory: f, namespace: namespace, tweakListOptions: tweakListOptions} +} + +// ObjectStores returns a ObjectStoreInformer. +func (v *version) ObjectStores() ObjectStoreInformer { + return &objectStoreInformer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions} +} diff --git a/pkg/client/informers/externalversions/minio.rook.io/v1alpha1/objectstore.go b/pkg/client/informers/externalversions/minio.rook.io/v1alpha1/objectstore.go new file mode 100644 index 000000000..b748b94bf --- /dev/null +++ b/pkg/client/informers/externalversions/minio.rook.io/v1alpha1/objectstore.go @@ -0,0 +1,89 @@ +/* +Copyright The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by informer-gen. DO NOT EDIT. + +package v1alpha1 + +import ( + time "time" + + miniorookiov1alpha1 "github.com/rook/rook/pkg/apis/minio.rook.io/v1alpha1" + versioned "github.com/rook/rook/pkg/client/clientset/versioned" + internalinterfaces "github.com/rook/rook/pkg/client/informers/externalversions/internalinterfaces" + v1alpha1 "github.com/rook/rook/pkg/client/listers/minio.rook.io/v1alpha1" + v1 "k8s.io/apimachinery/pkg/apis/meta/v1" + runtime "k8s.io/apimachinery/pkg/runtime" + watch "k8s.io/apimachinery/pkg/watch" + cache "k8s.io/client-go/tools/cache" +) + +// ObjectStoreInformer provides access to a shared informer and lister for +// ObjectStores. +type ObjectStoreInformer interface { + Informer() cache.SharedIndexInformer + Lister() v1alpha1.ObjectStoreLister +} + +type objectStoreInformer struct { + factory internalinterfaces.SharedInformerFactory + tweakListOptions internalinterfaces.TweakListOptionsFunc + namespace string +} + +// NewObjectStoreInformer constructs a new informer for ObjectStore type. +// Always prefer using an informer factory to get a shared informer instead of getting an independent +// one. This reduces memory footprint and number of connections to the server. +func NewObjectStoreInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { + return NewFilteredObjectStoreInformer(client, namespace, resyncPeriod, indexers, nil) +} + +// NewFilteredObjectStoreInformer constructs a new informer for ObjectStore type. +// Always prefer using an informer factory to get a shared informer instead of getting an independent +// one. This reduces memory footprint and number of connections to the server. +func NewFilteredObjectStoreInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { + return cache.NewSharedIndexInformer( + &cache.ListWatch{ + ListFunc: func(options v1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.MinioV1alpha1().ObjectStores(namespace).List(options) + }, + WatchFunc: func(options v1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.MinioV1alpha1().ObjectStores(namespace).Watch(options) + }, + }, + &miniorookiov1alpha1.ObjectStore{}, + resyncPeriod, + indexers, + ) +} + +func (f *objectStoreInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { + return NewFilteredObjectStoreInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) +} + +func (f *objectStoreInformer) Informer() cache.SharedIndexInformer { + return f.factory.InformerFor(&miniorookiov1alpha1.ObjectStore{}, f.defaultInformer) +} + +func (f *objectStoreInformer) Lister() v1alpha1.ObjectStoreLister { + return v1alpha1.NewObjectStoreLister(f.Informer().GetIndexer()) +} diff --git a/pkg/client/informers/externalversions/nfs.rook.io/interface.go b/pkg/client/informers/externalversions/nfs.rook.io/interface.go new file mode 100644 index 000000000..1e9c18384 --- /dev/null +++ b/pkg/client/informers/externalversions/nfs.rook.io/interface.go @@ -0,0 +1,46 @@ +/* +Copyright The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by informer-gen. DO NOT EDIT. + +package nfs + +import ( + internalinterfaces "github.com/rook/rook/pkg/client/informers/externalversions/internalinterfaces" + v1alpha1 "github.com/rook/rook/pkg/client/informers/externalversions/nfs.rook.io/v1alpha1" +) + +// Interface provides access to each of this group's versions. +type Interface interface { + // V1alpha1 provides access to shared informers for resources in V1alpha1. + V1alpha1() v1alpha1.Interface +} + +type group struct { + factory internalinterfaces.SharedInformerFactory + namespace string + tweakListOptions internalinterfaces.TweakListOptionsFunc +} + +// New returns a new Interface. +func New(f internalinterfaces.SharedInformerFactory, namespace string, tweakListOptions internalinterfaces.TweakListOptionsFunc) Interface { + return &group{factory: f, namespace: namespace, tweakListOptions: tweakListOptions} +} + +// V1alpha1 returns a new v1alpha1.Interface. +func (g *group) V1alpha1() v1alpha1.Interface { + return v1alpha1.New(g.factory, g.namespace, g.tweakListOptions) +} diff --git a/pkg/client/informers/externalversions/nfs.rook.io/v1alpha1/interface.go b/pkg/client/informers/externalversions/nfs.rook.io/v1alpha1/interface.go new file mode 100644 index 000000000..c0687a846 --- /dev/null +++ b/pkg/client/informers/externalversions/nfs.rook.io/v1alpha1/interface.go @@ -0,0 +1,45 @@ +/* +Copyright The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by informer-gen. DO NOT EDIT. + +package v1alpha1 + +import ( + internalinterfaces "github.com/rook/rook/pkg/client/informers/externalversions/internalinterfaces" +) + +// Interface provides access to all the informers in this group version. +type Interface interface { + // NFSServers returns a NFSServerInformer. + NFSServers() NFSServerInformer +} + +type version struct { + factory internalinterfaces.SharedInformerFactory + namespace string + tweakListOptions internalinterfaces.TweakListOptionsFunc +} + +// New returns a new Interface. +func New(f internalinterfaces.SharedInformerFactory, namespace string, tweakListOptions internalinterfaces.TweakListOptionsFunc) Interface { + return &version{factory: f, namespace: namespace, tweakListOptions: tweakListOptions} +} + +// NFSServers returns a NFSServerInformer. +func (v *version) NFSServers() NFSServerInformer { + return &nFSServerInformer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions} +} diff --git a/pkg/client/informers/externalversions/nfs.rook.io/v1alpha1/nfsserver.go b/pkg/client/informers/externalversions/nfs.rook.io/v1alpha1/nfsserver.go new file mode 100644 index 000000000..b0962284a --- /dev/null +++ b/pkg/client/informers/externalversions/nfs.rook.io/v1alpha1/nfsserver.go @@ -0,0 +1,89 @@ +/* +Copyright The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by informer-gen. DO NOT EDIT. + +package v1alpha1 + +import ( + time "time" + + nfsrookiov1alpha1 "github.com/rook/rook/pkg/apis/nfs.rook.io/v1alpha1" + versioned "github.com/rook/rook/pkg/client/clientset/versioned" + internalinterfaces "github.com/rook/rook/pkg/client/informers/externalversions/internalinterfaces" + v1alpha1 "github.com/rook/rook/pkg/client/listers/nfs.rook.io/v1alpha1" + v1 "k8s.io/apimachinery/pkg/apis/meta/v1" + runtime "k8s.io/apimachinery/pkg/runtime" + watch "k8s.io/apimachinery/pkg/watch" + cache "k8s.io/client-go/tools/cache" +) + +// NFSServerInformer provides access to a shared informer and lister for +// NFSServers. +type NFSServerInformer interface { + Informer() cache.SharedIndexInformer + Lister() v1alpha1.NFSServerLister +} + +type nFSServerInformer struct { + factory internalinterfaces.SharedInformerFactory + tweakListOptions internalinterfaces.TweakListOptionsFunc + namespace string +} + +// NewNFSServerInformer constructs a new informer for NFSServer type. +// Always prefer using an informer factory to get a shared informer instead of getting an independent +// one. This reduces memory footprint and number of connections to the server. +func NewNFSServerInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { + return NewFilteredNFSServerInformer(client, namespace, resyncPeriod, indexers, nil) +} + +// NewFilteredNFSServerInformer constructs a new informer for NFSServer type. +// Always prefer using an informer factory to get a shared informer instead of getting an independent +// one. This reduces memory footprint and number of connections to the server. +func NewFilteredNFSServerInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { + return cache.NewSharedIndexInformer( + &cache.ListWatch{ + ListFunc: func(options v1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.NfsV1alpha1().NFSServers(namespace).List(options) + }, + WatchFunc: func(options v1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.NfsV1alpha1().NFSServers(namespace).Watch(options) + }, + }, + &nfsrookiov1alpha1.NFSServer{}, + resyncPeriod, + indexers, + ) +} + +func (f *nFSServerInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { + return NewFilteredNFSServerInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) +} + +func (f *nFSServerInformer) Informer() cache.SharedIndexInformer { + return f.factory.InformerFor(&nfsrookiov1alpha1.NFSServer{}, f.defaultInformer) +} + +func (f *nFSServerInformer) Lister() v1alpha1.NFSServerLister { + return v1alpha1.NewNFSServerLister(f.Informer().GetIndexer()) +} diff --git a/pkg/client/informers/externalversions/rook.io/interface.go b/pkg/client/informers/externalversions/rook.io/interface.go new file mode 100644 index 000000000..0a8a8a6e7 --- /dev/null +++ b/pkg/client/informers/externalversions/rook.io/interface.go @@ -0,0 +1,54 @@ +/* +Copyright The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by informer-gen. DO NOT EDIT. + +package rook + +import ( + internalinterfaces "github.com/rook/rook/pkg/client/informers/externalversions/internalinterfaces" + v1alpha1 "github.com/rook/rook/pkg/client/informers/externalversions/rook.io/v1alpha1" + v1alpha2 "github.com/rook/rook/pkg/client/informers/externalversions/rook.io/v1alpha2" +) + +// Interface provides access to each of this group's versions. +type Interface interface { + // V1alpha1 provides access to shared informers for resources in V1alpha1. + V1alpha1() v1alpha1.Interface + // V1alpha2 provides access to shared informers for resources in V1alpha2. + V1alpha2() v1alpha2.Interface +} + +type group struct { + factory internalinterfaces.SharedInformerFactory + namespace string + tweakListOptions internalinterfaces.TweakListOptionsFunc +} + +// New returns a new Interface. +func New(f internalinterfaces.SharedInformerFactory, namespace string, tweakListOptions internalinterfaces.TweakListOptionsFunc) Interface { + return &group{factory: f, namespace: namespace, tweakListOptions: tweakListOptions} +} + +// V1alpha1 returns a new v1alpha1.Interface. +func (g *group) V1alpha1() v1alpha1.Interface { + return v1alpha1.New(g.factory, g.namespace, g.tweakListOptions) +} + +// V1alpha2 returns a new v1alpha2.Interface. +func (g *group) V1alpha2() v1alpha2.Interface { + return v1alpha2.New(g.factory, g.namespace, g.tweakListOptions) +} diff --git a/pkg/client/informers/externalversions/rook.io/v1alpha1/cluster.go b/pkg/client/informers/externalversions/rook.io/v1alpha1/cluster.go new file mode 100644 index 000000000..a8c66e028 --- /dev/null +++ b/pkg/client/informers/externalversions/rook.io/v1alpha1/cluster.go @@ -0,0 +1,89 @@ +/* +Copyright The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by informer-gen. DO NOT EDIT. + +package v1alpha1 + +import ( + time "time" + + rookiov1alpha1 "github.com/rook/rook/pkg/apis/rook.io/v1alpha1" + versioned "github.com/rook/rook/pkg/client/clientset/versioned" + internalinterfaces "github.com/rook/rook/pkg/client/informers/externalversions/internalinterfaces" + v1alpha1 "github.com/rook/rook/pkg/client/listers/rook.io/v1alpha1" + v1 "k8s.io/apimachinery/pkg/apis/meta/v1" + runtime "k8s.io/apimachinery/pkg/runtime" + watch "k8s.io/apimachinery/pkg/watch" + cache "k8s.io/client-go/tools/cache" +) + +// ClusterInformer provides access to a shared informer and lister for +// Clusters. +type ClusterInformer interface { + Informer() cache.SharedIndexInformer + Lister() v1alpha1.ClusterLister +} + +type clusterInformer struct { + factory internalinterfaces.SharedInformerFactory + tweakListOptions internalinterfaces.TweakListOptionsFunc + namespace string +} + +// NewClusterInformer constructs a new informer for Cluster type. +// Always prefer using an informer factory to get a shared informer instead of getting an independent +// one. This reduces memory footprint and number of connections to the server. +func NewClusterInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { + return NewFilteredClusterInformer(client, namespace, resyncPeriod, indexers, nil) +} + +// NewFilteredClusterInformer constructs a new informer for Cluster type. +// Always prefer using an informer factory to get a shared informer instead of getting an independent +// one. This reduces memory footprint and number of connections to the server. +func NewFilteredClusterInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { + return cache.NewSharedIndexInformer( + &cache.ListWatch{ + ListFunc: func(options v1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.RookV1alpha1().Clusters(namespace).List(options) + }, + WatchFunc: func(options v1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.RookV1alpha1().Clusters(namespace).Watch(options) + }, + }, + &rookiov1alpha1.Cluster{}, + resyncPeriod, + indexers, + ) +} + +func (f *clusterInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { + return NewFilteredClusterInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) +} + +func (f *clusterInformer) Informer() cache.SharedIndexInformer { + return f.factory.InformerFor(&rookiov1alpha1.Cluster{}, f.defaultInformer) +} + +func (f *clusterInformer) Lister() v1alpha1.ClusterLister { + return v1alpha1.NewClusterLister(f.Informer().GetIndexer()) +} diff --git a/pkg/client/informers/externalversions/rook.io/v1alpha1/filesystem.go b/pkg/client/informers/externalversions/rook.io/v1alpha1/filesystem.go new file mode 100644 index 000000000..e29a34e31 --- /dev/null +++ b/pkg/client/informers/externalversions/rook.io/v1alpha1/filesystem.go @@ -0,0 +1,89 @@ +/* +Copyright The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by informer-gen. DO NOT EDIT. + +package v1alpha1 + +import ( + time "time" + + rookiov1alpha1 "github.com/rook/rook/pkg/apis/rook.io/v1alpha1" + versioned "github.com/rook/rook/pkg/client/clientset/versioned" + internalinterfaces "github.com/rook/rook/pkg/client/informers/externalversions/internalinterfaces" + v1alpha1 "github.com/rook/rook/pkg/client/listers/rook.io/v1alpha1" + v1 "k8s.io/apimachinery/pkg/apis/meta/v1" + runtime "k8s.io/apimachinery/pkg/runtime" + watch "k8s.io/apimachinery/pkg/watch" + cache "k8s.io/client-go/tools/cache" +) + +// FilesystemInformer provides access to a shared informer and lister for +// Filesystems. +type FilesystemInformer interface { + Informer() cache.SharedIndexInformer + Lister() v1alpha1.FilesystemLister +} + +type filesystemInformer struct { + factory internalinterfaces.SharedInformerFactory + tweakListOptions internalinterfaces.TweakListOptionsFunc + namespace string +} + +// NewFilesystemInformer constructs a new informer for Filesystem type. +// Always prefer using an informer factory to get a shared informer instead of getting an independent +// one. This reduces memory footprint and number of connections to the server. +func NewFilesystemInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { + return NewFilteredFilesystemInformer(client, namespace, resyncPeriod, indexers, nil) +} + +// NewFilteredFilesystemInformer constructs a new informer for Filesystem type. +// Always prefer using an informer factory to get a shared informer instead of getting an independent +// one. This reduces memory footprint and number of connections to the server. +func NewFilteredFilesystemInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { + return cache.NewSharedIndexInformer( + &cache.ListWatch{ + ListFunc: func(options v1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.RookV1alpha1().Filesystems(namespace).List(options) + }, + WatchFunc: func(options v1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.RookV1alpha1().Filesystems(namespace).Watch(options) + }, + }, + &rookiov1alpha1.Filesystem{}, + resyncPeriod, + indexers, + ) +} + +func (f *filesystemInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { + return NewFilteredFilesystemInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) +} + +func (f *filesystemInformer) Informer() cache.SharedIndexInformer { + return f.factory.InformerFor(&rookiov1alpha1.Filesystem{}, f.defaultInformer) +} + +func (f *filesystemInformer) Lister() v1alpha1.FilesystemLister { + return v1alpha1.NewFilesystemLister(f.Informer().GetIndexer()) +} diff --git a/pkg/client/informers/externalversions/rook.io/v1alpha1/interface.go b/pkg/client/informers/externalversions/rook.io/v1alpha1/interface.go new file mode 100644 index 000000000..d640da79a --- /dev/null +++ b/pkg/client/informers/externalversions/rook.io/v1alpha1/interface.go @@ -0,0 +1,73 @@ +/* +Copyright The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by informer-gen. DO NOT EDIT. + +package v1alpha1 + +import ( + internalinterfaces "github.com/rook/rook/pkg/client/informers/externalversions/internalinterfaces" +) + +// Interface provides access to all the informers in this group version. +type Interface interface { + // Clusters returns a ClusterInformer. + Clusters() ClusterInformer + // Filesystems returns a FilesystemInformer. + Filesystems() FilesystemInformer + // ObjectStores returns a ObjectStoreInformer. + ObjectStores() ObjectStoreInformer + // Pools returns a PoolInformer. + Pools() PoolInformer + // VolumeAttachments returns a VolumeAttachmentInformer. + VolumeAttachments() VolumeAttachmentInformer +} + +type version struct { + factory internalinterfaces.SharedInformerFactory + namespace string + tweakListOptions internalinterfaces.TweakListOptionsFunc +} + +// New returns a new Interface. +func New(f internalinterfaces.SharedInformerFactory, namespace string, tweakListOptions internalinterfaces.TweakListOptionsFunc) Interface { + return &version{factory: f, namespace: namespace, tweakListOptions: tweakListOptions} +} + +// Clusters returns a ClusterInformer. +func (v *version) Clusters() ClusterInformer { + return &clusterInformer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions} +} + +// Filesystems returns a FilesystemInformer. +func (v *version) Filesystems() FilesystemInformer { + return &filesystemInformer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions} +} + +// ObjectStores returns a ObjectStoreInformer. +func (v *version) ObjectStores() ObjectStoreInformer { + return &objectStoreInformer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions} +} + +// Pools returns a PoolInformer. +func (v *version) Pools() PoolInformer { + return &poolInformer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions} +} + +// VolumeAttachments returns a VolumeAttachmentInformer. +func (v *version) VolumeAttachments() VolumeAttachmentInformer { + return &volumeAttachmentInformer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions} +} diff --git a/pkg/client/informers/externalversions/rook.io/v1alpha1/objectstore.go b/pkg/client/informers/externalversions/rook.io/v1alpha1/objectstore.go new file mode 100644 index 000000000..3e38f6cff --- /dev/null +++ b/pkg/client/informers/externalversions/rook.io/v1alpha1/objectstore.go @@ -0,0 +1,89 @@ +/* +Copyright The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by informer-gen. DO NOT EDIT. + +package v1alpha1 + +import ( + time "time" + + rookiov1alpha1 "github.com/rook/rook/pkg/apis/rook.io/v1alpha1" + versioned "github.com/rook/rook/pkg/client/clientset/versioned" + internalinterfaces "github.com/rook/rook/pkg/client/informers/externalversions/internalinterfaces" + v1alpha1 "github.com/rook/rook/pkg/client/listers/rook.io/v1alpha1" + v1 "k8s.io/apimachinery/pkg/apis/meta/v1" + runtime "k8s.io/apimachinery/pkg/runtime" + watch "k8s.io/apimachinery/pkg/watch" + cache "k8s.io/client-go/tools/cache" +) + +// ObjectStoreInformer provides access to a shared informer and lister for +// ObjectStores. +type ObjectStoreInformer interface { + Informer() cache.SharedIndexInformer + Lister() v1alpha1.ObjectStoreLister +} + +type objectStoreInformer struct { + factory internalinterfaces.SharedInformerFactory + tweakListOptions internalinterfaces.TweakListOptionsFunc + namespace string +} + +// NewObjectStoreInformer constructs a new informer for ObjectStore type. +// Always prefer using an informer factory to get a shared informer instead of getting an independent +// one. This reduces memory footprint and number of connections to the server. +func NewObjectStoreInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { + return NewFilteredObjectStoreInformer(client, namespace, resyncPeriod, indexers, nil) +} + +// NewFilteredObjectStoreInformer constructs a new informer for ObjectStore type. +// Always prefer using an informer factory to get a shared informer instead of getting an independent +// one. This reduces memory footprint and number of connections to the server. +func NewFilteredObjectStoreInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { + return cache.NewSharedIndexInformer( + &cache.ListWatch{ + ListFunc: func(options v1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.RookV1alpha1().ObjectStores(namespace).List(options) + }, + WatchFunc: func(options v1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.RookV1alpha1().ObjectStores(namespace).Watch(options) + }, + }, + &rookiov1alpha1.ObjectStore{}, + resyncPeriod, + indexers, + ) +} + +func (f *objectStoreInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { + return NewFilteredObjectStoreInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) +} + +func (f *objectStoreInformer) Informer() cache.SharedIndexInformer { + return f.factory.InformerFor(&rookiov1alpha1.ObjectStore{}, f.defaultInformer) +} + +func (f *objectStoreInformer) Lister() v1alpha1.ObjectStoreLister { + return v1alpha1.NewObjectStoreLister(f.Informer().GetIndexer()) +} diff --git a/pkg/client/informers/externalversions/rook.io/v1alpha1/pool.go b/pkg/client/informers/externalversions/rook.io/v1alpha1/pool.go new file mode 100644 index 000000000..dac8fedd6 --- /dev/null +++ b/pkg/client/informers/externalversions/rook.io/v1alpha1/pool.go @@ -0,0 +1,89 @@ +/* +Copyright The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by informer-gen. DO NOT EDIT. + +package v1alpha1 + +import ( + time "time" + + rookiov1alpha1 "github.com/rook/rook/pkg/apis/rook.io/v1alpha1" + versioned "github.com/rook/rook/pkg/client/clientset/versioned" + internalinterfaces "github.com/rook/rook/pkg/client/informers/externalversions/internalinterfaces" + v1alpha1 "github.com/rook/rook/pkg/client/listers/rook.io/v1alpha1" + v1 "k8s.io/apimachinery/pkg/apis/meta/v1" + runtime "k8s.io/apimachinery/pkg/runtime" + watch "k8s.io/apimachinery/pkg/watch" + cache "k8s.io/client-go/tools/cache" +) + +// PoolInformer provides access to a shared informer and lister for +// Pools. +type PoolInformer interface { + Informer() cache.SharedIndexInformer + Lister() v1alpha1.PoolLister +} + +type poolInformer struct { + factory internalinterfaces.SharedInformerFactory + tweakListOptions internalinterfaces.TweakListOptionsFunc + namespace string +} + +// NewPoolInformer constructs a new informer for Pool type. +// Always prefer using an informer factory to get a shared informer instead of getting an independent +// one. This reduces memory footprint and number of connections to the server. +func NewPoolInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { + return NewFilteredPoolInformer(client, namespace, resyncPeriod, indexers, nil) +} + +// NewFilteredPoolInformer constructs a new informer for Pool type. +// Always prefer using an informer factory to get a shared informer instead of getting an independent +// one. This reduces memory footprint and number of connections to the server. +func NewFilteredPoolInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { + return cache.NewSharedIndexInformer( + &cache.ListWatch{ + ListFunc: func(options v1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.RookV1alpha1().Pools(namespace).List(options) + }, + WatchFunc: func(options v1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.RookV1alpha1().Pools(namespace).Watch(options) + }, + }, + &rookiov1alpha1.Pool{}, + resyncPeriod, + indexers, + ) +} + +func (f *poolInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { + return NewFilteredPoolInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) +} + +func (f *poolInformer) Informer() cache.SharedIndexInformer { + return f.factory.InformerFor(&rookiov1alpha1.Pool{}, f.defaultInformer) +} + +func (f *poolInformer) Lister() v1alpha1.PoolLister { + return v1alpha1.NewPoolLister(f.Informer().GetIndexer()) +} diff --git a/pkg/client/informers/externalversions/rook.io/v1alpha1/volumeattachment.go b/pkg/client/informers/externalversions/rook.io/v1alpha1/volumeattachment.go new file mode 100644 index 000000000..6bac7609e --- /dev/null +++ b/pkg/client/informers/externalversions/rook.io/v1alpha1/volumeattachment.go @@ -0,0 +1,89 @@ +/* +Copyright The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by informer-gen. DO NOT EDIT. + +package v1alpha1 + +import ( + time "time" + + rookiov1alpha1 "github.com/rook/rook/pkg/apis/rook.io/v1alpha1" + versioned "github.com/rook/rook/pkg/client/clientset/versioned" + internalinterfaces "github.com/rook/rook/pkg/client/informers/externalversions/internalinterfaces" + v1alpha1 "github.com/rook/rook/pkg/client/listers/rook.io/v1alpha1" + v1 "k8s.io/apimachinery/pkg/apis/meta/v1" + runtime "k8s.io/apimachinery/pkg/runtime" + watch "k8s.io/apimachinery/pkg/watch" + cache "k8s.io/client-go/tools/cache" +) + +// VolumeAttachmentInformer provides access to a shared informer and lister for +// VolumeAttachments. +type VolumeAttachmentInformer interface { + Informer() cache.SharedIndexInformer + Lister() v1alpha1.VolumeAttachmentLister +} + +type volumeAttachmentInformer struct { + factory internalinterfaces.SharedInformerFactory + tweakListOptions internalinterfaces.TweakListOptionsFunc + namespace string +} + +// NewVolumeAttachmentInformer constructs a new informer for VolumeAttachment type. +// Always prefer using an informer factory to get a shared informer instead of getting an independent +// one. This reduces memory footprint and number of connections to the server. +func NewVolumeAttachmentInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { + return NewFilteredVolumeAttachmentInformer(client, namespace, resyncPeriod, indexers, nil) +} + +// NewFilteredVolumeAttachmentInformer constructs a new informer for VolumeAttachment type. +// Always prefer using an informer factory to get a shared informer instead of getting an independent +// one. This reduces memory footprint and number of connections to the server. +func NewFilteredVolumeAttachmentInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { + return cache.NewSharedIndexInformer( + &cache.ListWatch{ + ListFunc: func(options v1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.RookV1alpha1().VolumeAttachments(namespace).List(options) + }, + WatchFunc: func(options v1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.RookV1alpha1().VolumeAttachments(namespace).Watch(options) + }, + }, + &rookiov1alpha1.VolumeAttachment{}, + resyncPeriod, + indexers, + ) +} + +func (f *volumeAttachmentInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { + return NewFilteredVolumeAttachmentInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) +} + +func (f *volumeAttachmentInformer) Informer() cache.SharedIndexInformer { + return f.factory.InformerFor(&rookiov1alpha1.VolumeAttachment{}, f.defaultInformer) +} + +func (f *volumeAttachmentInformer) Lister() v1alpha1.VolumeAttachmentLister { + return v1alpha1.NewVolumeAttachmentLister(f.Informer().GetIndexer()) +} diff --git a/pkg/client/informers/externalversions/rook.io/v1alpha2/interface.go b/pkg/client/informers/externalversions/rook.io/v1alpha2/interface.go new file mode 100644 index 000000000..5c5a58cf1 --- /dev/null +++ b/pkg/client/informers/externalversions/rook.io/v1alpha2/interface.go @@ -0,0 +1,45 @@ +/* +Copyright The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by informer-gen. DO NOT EDIT. + +package v1alpha2 + +import ( + internalinterfaces "github.com/rook/rook/pkg/client/informers/externalversions/internalinterfaces" +) + +// Interface provides access to all the informers in this group version. +type Interface interface { + // Volumes returns a VolumeInformer. + Volumes() VolumeInformer +} + +type version struct { + factory internalinterfaces.SharedInformerFactory + namespace string + tweakListOptions internalinterfaces.TweakListOptionsFunc +} + +// New returns a new Interface. +func New(f internalinterfaces.SharedInformerFactory, namespace string, tweakListOptions internalinterfaces.TweakListOptionsFunc) Interface { + return &version{factory: f, namespace: namespace, tweakListOptions: tweakListOptions} +} + +// Volumes returns a VolumeInformer. +func (v *version) Volumes() VolumeInformer { + return &volumeInformer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions} +} diff --git a/pkg/client/informers/externalversions/rook.io/v1alpha2/volume.go b/pkg/client/informers/externalversions/rook.io/v1alpha2/volume.go new file mode 100644 index 000000000..de6977c9b --- /dev/null +++ b/pkg/client/informers/externalversions/rook.io/v1alpha2/volume.go @@ -0,0 +1,89 @@ +/* +Copyright The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by informer-gen. DO NOT EDIT. + +package v1alpha2 + +import ( + time "time" + + rookiov1alpha2 "github.com/rook/rook/pkg/apis/rook.io/v1alpha2" + versioned "github.com/rook/rook/pkg/client/clientset/versioned" + internalinterfaces "github.com/rook/rook/pkg/client/informers/externalversions/internalinterfaces" + v1alpha2 "github.com/rook/rook/pkg/client/listers/rook.io/v1alpha2" + v1 "k8s.io/apimachinery/pkg/apis/meta/v1" + runtime "k8s.io/apimachinery/pkg/runtime" + watch "k8s.io/apimachinery/pkg/watch" + cache "k8s.io/client-go/tools/cache" +) + +// VolumeInformer provides access to a shared informer and lister for +// Volumes. +type VolumeInformer interface { + Informer() cache.SharedIndexInformer + Lister() v1alpha2.VolumeLister +} + +type volumeInformer struct { + factory internalinterfaces.SharedInformerFactory + tweakListOptions internalinterfaces.TweakListOptionsFunc + namespace string +} + +// NewVolumeInformer constructs a new informer for Volume type. +// Always prefer using an informer factory to get a shared informer instead of getting an independent +// one. This reduces memory footprint and number of connections to the server. +func NewVolumeInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { + return NewFilteredVolumeInformer(client, namespace, resyncPeriod, indexers, nil) +} + +// NewFilteredVolumeInformer constructs a new informer for Volume type. +// Always prefer using an informer factory to get a shared informer instead of getting an independent +// one. This reduces memory footprint and number of connections to the server. +func NewFilteredVolumeInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { + return cache.NewSharedIndexInformer( + &cache.ListWatch{ + ListFunc: func(options v1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.RookV1alpha2().Volumes(namespace).List(options) + }, + WatchFunc: func(options v1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.RookV1alpha2().Volumes(namespace).Watch(options) + }, + }, + &rookiov1alpha2.Volume{}, + resyncPeriod, + indexers, + ) +} + +func (f *volumeInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { + return NewFilteredVolumeInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) +} + +func (f *volumeInformer) Informer() cache.SharedIndexInformer { + return f.factory.InformerFor(&rookiov1alpha2.Volume{}, f.defaultInformer) +} + +func (f *volumeInformer) Lister() v1alpha2.VolumeLister { + return v1alpha2.NewVolumeLister(f.Informer().GetIndexer()) +} diff --git a/pkg/client/listers/ceph.rook.io/v1alpha1/cluster.go b/pkg/client/listers/ceph.rook.io/v1alpha1/cluster.go new file mode 100644 index 000000000..e945a5a41 --- /dev/null +++ b/pkg/client/listers/ceph.rook.io/v1alpha1/cluster.go @@ -0,0 +1,94 @@ +/* +Copyright The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by lister-gen. DO NOT EDIT. + +package v1alpha1 + +import ( + v1alpha1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1alpha1" + "k8s.io/apimachinery/pkg/api/errors" + "k8s.io/apimachinery/pkg/labels" + "k8s.io/client-go/tools/cache" +) + +// ClusterLister helps list Clusters. +type ClusterLister interface { + // List lists all Clusters in the indexer. + List(selector labels.Selector) (ret []*v1alpha1.Cluster, err error) + // Clusters returns an object that can list and get Clusters. + Clusters(namespace string) ClusterNamespaceLister + ClusterListerExpansion +} + +// clusterLister implements the ClusterLister interface. +type clusterLister struct { + indexer cache.Indexer +} + +// NewClusterLister returns a new ClusterLister. +func NewClusterLister(indexer cache.Indexer) ClusterLister { + return &clusterLister{indexer: indexer} +} + +// List lists all Clusters in the indexer. +func (s *clusterLister) List(selector labels.Selector) (ret []*v1alpha1.Cluster, err error) { + err = cache.ListAll(s.indexer, selector, func(m interface{}) { + ret = append(ret, m.(*v1alpha1.Cluster)) + }) + return ret, err +} + +// Clusters returns an object that can list and get Clusters. +func (s *clusterLister) Clusters(namespace string) ClusterNamespaceLister { + return clusterNamespaceLister{indexer: s.indexer, namespace: namespace} +} + +// ClusterNamespaceLister helps list and get Clusters. +type ClusterNamespaceLister interface { + // List lists all Clusters in the indexer for a given namespace. + List(selector labels.Selector) (ret []*v1alpha1.Cluster, err error) + // Get retrieves the Cluster from the indexer for a given namespace and name. + Get(name string) (*v1alpha1.Cluster, error) + ClusterNamespaceListerExpansion +} + +// clusterNamespaceLister implements the ClusterNamespaceLister +// interface. +type clusterNamespaceLister struct { + indexer cache.Indexer + namespace string +} + +// List lists all Clusters in the indexer for a given namespace. +func (s clusterNamespaceLister) List(selector labels.Selector) (ret []*v1alpha1.Cluster, err error) { + err = cache.ListAllByNamespace(s.indexer, s.namespace, selector, func(m interface{}) { + ret = append(ret, m.(*v1alpha1.Cluster)) + }) + return ret, err +} + +// Get retrieves the Cluster from the indexer for a given namespace and name. +func (s clusterNamespaceLister) Get(name string) (*v1alpha1.Cluster, error) { + obj, exists, err := s.indexer.GetByKey(s.namespace + "/" + name) + if err != nil { + return nil, err + } + if !exists { + return nil, errors.NewNotFound(v1alpha1.Resource("cluster"), name) + } + return obj.(*v1alpha1.Cluster), nil +} diff --git a/pkg/client/listers/ceph.rook.io/v1alpha1/expansion_generated.go b/pkg/client/listers/ceph.rook.io/v1alpha1/expansion_generated.go new file mode 100644 index 000000000..0d90018fe --- /dev/null +++ b/pkg/client/listers/ceph.rook.io/v1alpha1/expansion_generated.go @@ -0,0 +1,51 @@ +/* +Copyright The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by lister-gen. DO NOT EDIT. + +package v1alpha1 + +// ClusterListerExpansion allows custom methods to be added to +// ClusterLister. +type ClusterListerExpansion interface{} + +// ClusterNamespaceListerExpansion allows custom methods to be added to +// ClusterNamespaceLister. +type ClusterNamespaceListerExpansion interface{} + +// FilesystemListerExpansion allows custom methods to be added to +// FilesystemLister. +type FilesystemListerExpansion interface{} + +// FilesystemNamespaceListerExpansion allows custom methods to be added to +// FilesystemNamespaceLister. +type FilesystemNamespaceListerExpansion interface{} + +// ObjectStoreListerExpansion allows custom methods to be added to +// ObjectStoreLister. +type ObjectStoreListerExpansion interface{} + +// ObjectStoreNamespaceListerExpansion allows custom methods to be added to +// ObjectStoreNamespaceLister. +type ObjectStoreNamespaceListerExpansion interface{} + +// PoolListerExpansion allows custom methods to be added to +// PoolLister. +type PoolListerExpansion interface{} + +// PoolNamespaceListerExpansion allows custom methods to be added to +// PoolNamespaceLister. +type PoolNamespaceListerExpansion interface{} diff --git a/pkg/client/listers/ceph.rook.io/v1alpha1/filesystem.go b/pkg/client/listers/ceph.rook.io/v1alpha1/filesystem.go new file mode 100644 index 000000000..77e1719d3 --- /dev/null +++ b/pkg/client/listers/ceph.rook.io/v1alpha1/filesystem.go @@ -0,0 +1,94 @@ +/* +Copyright The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by lister-gen. DO NOT EDIT. + +package v1alpha1 + +import ( + v1alpha1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1alpha1" + "k8s.io/apimachinery/pkg/api/errors" + "k8s.io/apimachinery/pkg/labels" + "k8s.io/client-go/tools/cache" +) + +// FilesystemLister helps list Filesystems. +type FilesystemLister interface { + // List lists all Filesystems in the indexer. + List(selector labels.Selector) (ret []*v1alpha1.Filesystem, err error) + // Filesystems returns an object that can list and get Filesystems. + Filesystems(namespace string) FilesystemNamespaceLister + FilesystemListerExpansion +} + +// filesystemLister implements the FilesystemLister interface. +type filesystemLister struct { + indexer cache.Indexer +} + +// NewFilesystemLister returns a new FilesystemLister. +func NewFilesystemLister(indexer cache.Indexer) FilesystemLister { + return &filesystemLister{indexer: indexer} +} + +// List lists all Filesystems in the indexer. +func (s *filesystemLister) List(selector labels.Selector) (ret []*v1alpha1.Filesystem, err error) { + err = cache.ListAll(s.indexer, selector, func(m interface{}) { + ret = append(ret, m.(*v1alpha1.Filesystem)) + }) + return ret, err +} + +// Filesystems returns an object that can list and get Filesystems. +func (s *filesystemLister) Filesystems(namespace string) FilesystemNamespaceLister { + return filesystemNamespaceLister{indexer: s.indexer, namespace: namespace} +} + +// FilesystemNamespaceLister helps list and get Filesystems. +type FilesystemNamespaceLister interface { + // List lists all Filesystems in the indexer for a given namespace. + List(selector labels.Selector) (ret []*v1alpha1.Filesystem, err error) + // Get retrieves the Filesystem from the indexer for a given namespace and name. + Get(name string) (*v1alpha1.Filesystem, error) + FilesystemNamespaceListerExpansion +} + +// filesystemNamespaceLister implements the FilesystemNamespaceLister +// interface. +type filesystemNamespaceLister struct { + indexer cache.Indexer + namespace string +} + +// List lists all Filesystems in the indexer for a given namespace. +func (s filesystemNamespaceLister) List(selector labels.Selector) (ret []*v1alpha1.Filesystem, err error) { + err = cache.ListAllByNamespace(s.indexer, s.namespace, selector, func(m interface{}) { + ret = append(ret, m.(*v1alpha1.Filesystem)) + }) + return ret, err +} + +// Get retrieves the Filesystem from the indexer for a given namespace and name. +func (s filesystemNamespaceLister) Get(name string) (*v1alpha1.Filesystem, error) { + obj, exists, err := s.indexer.GetByKey(s.namespace + "/" + name) + if err != nil { + return nil, err + } + if !exists { + return nil, errors.NewNotFound(v1alpha1.Resource("filesystem"), name) + } + return obj.(*v1alpha1.Filesystem), nil +} diff --git a/pkg/client/listers/ceph.rook.io/v1alpha1/objectstore.go b/pkg/client/listers/ceph.rook.io/v1alpha1/objectstore.go new file mode 100644 index 000000000..a1ced4451 --- /dev/null +++ b/pkg/client/listers/ceph.rook.io/v1alpha1/objectstore.go @@ -0,0 +1,94 @@ +/* +Copyright The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by lister-gen. DO NOT EDIT. + +package v1alpha1 + +import ( + v1alpha1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1alpha1" + "k8s.io/apimachinery/pkg/api/errors" + "k8s.io/apimachinery/pkg/labels" + "k8s.io/client-go/tools/cache" +) + +// ObjectStoreLister helps list ObjectStores. +type ObjectStoreLister interface { + // List lists all ObjectStores in the indexer. + List(selector labels.Selector) (ret []*v1alpha1.ObjectStore, err error) + // ObjectStores returns an object that can list and get ObjectStores. + ObjectStores(namespace string) ObjectStoreNamespaceLister + ObjectStoreListerExpansion +} + +// objectStoreLister implements the ObjectStoreLister interface. +type objectStoreLister struct { + indexer cache.Indexer +} + +// NewObjectStoreLister returns a new ObjectStoreLister. +func NewObjectStoreLister(indexer cache.Indexer) ObjectStoreLister { + return &objectStoreLister{indexer: indexer} +} + +// List lists all ObjectStores in the indexer. +func (s *objectStoreLister) List(selector labels.Selector) (ret []*v1alpha1.ObjectStore, err error) { + err = cache.ListAll(s.indexer, selector, func(m interface{}) { + ret = append(ret, m.(*v1alpha1.ObjectStore)) + }) + return ret, err +} + +// ObjectStores returns an object that can list and get ObjectStores. +func (s *objectStoreLister) ObjectStores(namespace string) ObjectStoreNamespaceLister { + return objectStoreNamespaceLister{indexer: s.indexer, namespace: namespace} +} + +// ObjectStoreNamespaceLister helps list and get ObjectStores. +type ObjectStoreNamespaceLister interface { + // List lists all ObjectStores in the indexer for a given namespace. + List(selector labels.Selector) (ret []*v1alpha1.ObjectStore, err error) + // Get retrieves the ObjectStore from the indexer for a given namespace and name. + Get(name string) (*v1alpha1.ObjectStore, error) + ObjectStoreNamespaceListerExpansion +} + +// objectStoreNamespaceLister implements the ObjectStoreNamespaceLister +// interface. +type objectStoreNamespaceLister struct { + indexer cache.Indexer + namespace string +} + +// List lists all ObjectStores in the indexer for a given namespace. +func (s objectStoreNamespaceLister) List(selector labels.Selector) (ret []*v1alpha1.ObjectStore, err error) { + err = cache.ListAllByNamespace(s.indexer, s.namespace, selector, func(m interface{}) { + ret = append(ret, m.(*v1alpha1.ObjectStore)) + }) + return ret, err +} + +// Get retrieves the ObjectStore from the indexer for a given namespace and name. +func (s objectStoreNamespaceLister) Get(name string) (*v1alpha1.ObjectStore, error) { + obj, exists, err := s.indexer.GetByKey(s.namespace + "/" + name) + if err != nil { + return nil, err + } + if !exists { + return nil, errors.NewNotFound(v1alpha1.Resource("objectstore"), name) + } + return obj.(*v1alpha1.ObjectStore), nil +} diff --git a/pkg/client/listers/ceph.rook.io/v1alpha1/pool.go b/pkg/client/listers/ceph.rook.io/v1alpha1/pool.go new file mode 100644 index 000000000..09d6e4ca5 --- /dev/null +++ b/pkg/client/listers/ceph.rook.io/v1alpha1/pool.go @@ -0,0 +1,94 @@ +/* +Copyright The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by lister-gen. DO NOT EDIT. + +package v1alpha1 + +import ( + v1alpha1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1alpha1" + "k8s.io/apimachinery/pkg/api/errors" + "k8s.io/apimachinery/pkg/labels" + "k8s.io/client-go/tools/cache" +) + +// PoolLister helps list Pools. +type PoolLister interface { + // List lists all Pools in the indexer. + List(selector labels.Selector) (ret []*v1alpha1.Pool, err error) + // Pools returns an object that can list and get Pools. + Pools(namespace string) PoolNamespaceLister + PoolListerExpansion +} + +// poolLister implements the PoolLister interface. +type poolLister struct { + indexer cache.Indexer +} + +// NewPoolLister returns a new PoolLister. +func NewPoolLister(indexer cache.Indexer) PoolLister { + return &poolLister{indexer: indexer} +} + +// List lists all Pools in the indexer. +func (s *poolLister) List(selector labels.Selector) (ret []*v1alpha1.Pool, err error) { + err = cache.ListAll(s.indexer, selector, func(m interface{}) { + ret = append(ret, m.(*v1alpha1.Pool)) + }) + return ret, err +} + +// Pools returns an object that can list and get Pools. +func (s *poolLister) Pools(namespace string) PoolNamespaceLister { + return poolNamespaceLister{indexer: s.indexer, namespace: namespace} +} + +// PoolNamespaceLister helps list and get Pools. +type PoolNamespaceLister interface { + // List lists all Pools in the indexer for a given namespace. + List(selector labels.Selector) (ret []*v1alpha1.Pool, err error) + // Get retrieves the Pool from the indexer for a given namespace and name. + Get(name string) (*v1alpha1.Pool, error) + PoolNamespaceListerExpansion +} + +// poolNamespaceLister implements the PoolNamespaceLister +// interface. +type poolNamespaceLister struct { + indexer cache.Indexer + namespace string +} + +// List lists all Pools in the indexer for a given namespace. +func (s poolNamespaceLister) List(selector labels.Selector) (ret []*v1alpha1.Pool, err error) { + err = cache.ListAllByNamespace(s.indexer, s.namespace, selector, func(m interface{}) { + ret = append(ret, m.(*v1alpha1.Pool)) + }) + return ret, err +} + +// Get retrieves the Pool from the indexer for a given namespace and name. +func (s poolNamespaceLister) Get(name string) (*v1alpha1.Pool, error) { + obj, exists, err := s.indexer.GetByKey(s.namespace + "/" + name) + if err != nil { + return nil, err + } + if !exists { + return nil, errors.NewNotFound(v1alpha1.Resource("pool"), name) + } + return obj.(*v1alpha1.Pool), nil +} diff --git a/pkg/client/listers/ceph.rook.io/v1beta1/cluster.go b/pkg/client/listers/ceph.rook.io/v1beta1/cluster.go new file mode 100644 index 000000000..bc4b3cafb --- /dev/null +++ b/pkg/client/listers/ceph.rook.io/v1beta1/cluster.go @@ -0,0 +1,94 @@ +/* +Copyright The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by lister-gen. DO NOT EDIT. + +package v1beta1 + +import ( + v1beta1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1beta1" + "k8s.io/apimachinery/pkg/api/errors" + "k8s.io/apimachinery/pkg/labels" + "k8s.io/client-go/tools/cache" +) + +// ClusterLister helps list Clusters. +type ClusterLister interface { + // List lists all Clusters in the indexer. + List(selector labels.Selector) (ret []*v1beta1.Cluster, err error) + // Clusters returns an object that can list and get Clusters. + Clusters(namespace string) ClusterNamespaceLister + ClusterListerExpansion +} + +// clusterLister implements the ClusterLister interface. +type clusterLister struct { + indexer cache.Indexer +} + +// NewClusterLister returns a new ClusterLister. +func NewClusterLister(indexer cache.Indexer) ClusterLister { + return &clusterLister{indexer: indexer} +} + +// List lists all Clusters in the indexer. +func (s *clusterLister) List(selector labels.Selector) (ret []*v1beta1.Cluster, err error) { + err = cache.ListAll(s.indexer, selector, func(m interface{}) { + ret = append(ret, m.(*v1beta1.Cluster)) + }) + return ret, err +} + +// Clusters returns an object that can list and get Clusters. +func (s *clusterLister) Clusters(namespace string) ClusterNamespaceLister { + return clusterNamespaceLister{indexer: s.indexer, namespace: namespace} +} + +// ClusterNamespaceLister helps list and get Clusters. +type ClusterNamespaceLister interface { + // List lists all Clusters in the indexer for a given namespace. + List(selector labels.Selector) (ret []*v1beta1.Cluster, err error) + // Get retrieves the Cluster from the indexer for a given namespace and name. + Get(name string) (*v1beta1.Cluster, error) + ClusterNamespaceListerExpansion +} + +// clusterNamespaceLister implements the ClusterNamespaceLister +// interface. +type clusterNamespaceLister struct { + indexer cache.Indexer + namespace string +} + +// List lists all Clusters in the indexer for a given namespace. +func (s clusterNamespaceLister) List(selector labels.Selector) (ret []*v1beta1.Cluster, err error) { + err = cache.ListAllByNamespace(s.indexer, s.namespace, selector, func(m interface{}) { + ret = append(ret, m.(*v1beta1.Cluster)) + }) + return ret, err +} + +// Get retrieves the Cluster from the indexer for a given namespace and name. +func (s clusterNamespaceLister) Get(name string) (*v1beta1.Cluster, error) { + obj, exists, err := s.indexer.GetByKey(s.namespace + "/" + name) + if err != nil { + return nil, err + } + if !exists { + return nil, errors.NewNotFound(v1beta1.Resource("cluster"), name) + } + return obj.(*v1beta1.Cluster), nil +} diff --git a/pkg/client/listers/ceph.rook.io/v1beta1/expansion_generated.go b/pkg/client/listers/ceph.rook.io/v1beta1/expansion_generated.go new file mode 100644 index 000000000..8d6f4134d --- /dev/null +++ b/pkg/client/listers/ceph.rook.io/v1beta1/expansion_generated.go @@ -0,0 +1,51 @@ +/* +Copyright The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by lister-gen. DO NOT EDIT. + +package v1beta1 + +// ClusterListerExpansion allows custom methods to be added to +// ClusterLister. +type ClusterListerExpansion interface{} + +// ClusterNamespaceListerExpansion allows custom methods to be added to +// ClusterNamespaceLister. +type ClusterNamespaceListerExpansion interface{} + +// FilesystemListerExpansion allows custom methods to be added to +// FilesystemLister. +type FilesystemListerExpansion interface{} + +// FilesystemNamespaceListerExpansion allows custom methods to be added to +// FilesystemNamespaceLister. +type FilesystemNamespaceListerExpansion interface{} + +// ObjectStoreListerExpansion allows custom methods to be added to +// ObjectStoreLister. +type ObjectStoreListerExpansion interface{} + +// ObjectStoreNamespaceListerExpansion allows custom methods to be added to +// ObjectStoreNamespaceLister. +type ObjectStoreNamespaceListerExpansion interface{} + +// PoolListerExpansion allows custom methods to be added to +// PoolLister. +type PoolListerExpansion interface{} + +// PoolNamespaceListerExpansion allows custom methods to be added to +// PoolNamespaceLister. +type PoolNamespaceListerExpansion interface{} diff --git a/pkg/client/listers/ceph.rook.io/v1beta1/filesystem.go b/pkg/client/listers/ceph.rook.io/v1beta1/filesystem.go new file mode 100644 index 000000000..3e1272672 --- /dev/null +++ b/pkg/client/listers/ceph.rook.io/v1beta1/filesystem.go @@ -0,0 +1,94 @@ +/* +Copyright The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by lister-gen. DO NOT EDIT. + +package v1beta1 + +import ( + v1beta1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1beta1" + "k8s.io/apimachinery/pkg/api/errors" + "k8s.io/apimachinery/pkg/labels" + "k8s.io/client-go/tools/cache" +) + +// FilesystemLister helps list Filesystems. +type FilesystemLister interface { + // List lists all Filesystems in the indexer. + List(selector labels.Selector) (ret []*v1beta1.Filesystem, err error) + // Filesystems returns an object that can list and get Filesystems. + Filesystems(namespace string) FilesystemNamespaceLister + FilesystemListerExpansion +} + +// filesystemLister implements the FilesystemLister interface. +type filesystemLister struct { + indexer cache.Indexer +} + +// NewFilesystemLister returns a new FilesystemLister. +func NewFilesystemLister(indexer cache.Indexer) FilesystemLister { + return &filesystemLister{indexer: indexer} +} + +// List lists all Filesystems in the indexer. +func (s *filesystemLister) List(selector labels.Selector) (ret []*v1beta1.Filesystem, err error) { + err = cache.ListAll(s.indexer, selector, func(m interface{}) { + ret = append(ret, m.(*v1beta1.Filesystem)) + }) + return ret, err +} + +// Filesystems returns an object that can list and get Filesystems. +func (s *filesystemLister) Filesystems(namespace string) FilesystemNamespaceLister { + return filesystemNamespaceLister{indexer: s.indexer, namespace: namespace} +} + +// FilesystemNamespaceLister helps list and get Filesystems. +type FilesystemNamespaceLister interface { + // List lists all Filesystems in the indexer for a given namespace. + List(selector labels.Selector) (ret []*v1beta1.Filesystem, err error) + // Get retrieves the Filesystem from the indexer for a given namespace and name. + Get(name string) (*v1beta1.Filesystem, error) + FilesystemNamespaceListerExpansion +} + +// filesystemNamespaceLister implements the FilesystemNamespaceLister +// interface. +type filesystemNamespaceLister struct { + indexer cache.Indexer + namespace string +} + +// List lists all Filesystems in the indexer for a given namespace. +func (s filesystemNamespaceLister) List(selector labels.Selector) (ret []*v1beta1.Filesystem, err error) { + err = cache.ListAllByNamespace(s.indexer, s.namespace, selector, func(m interface{}) { + ret = append(ret, m.(*v1beta1.Filesystem)) + }) + return ret, err +} + +// Get retrieves the Filesystem from the indexer for a given namespace and name. +func (s filesystemNamespaceLister) Get(name string) (*v1beta1.Filesystem, error) { + obj, exists, err := s.indexer.GetByKey(s.namespace + "/" + name) + if err != nil { + return nil, err + } + if !exists { + return nil, errors.NewNotFound(v1beta1.Resource("filesystem"), name) + } + return obj.(*v1beta1.Filesystem), nil +} diff --git a/pkg/client/listers/ceph.rook.io/v1beta1/objectstore.go b/pkg/client/listers/ceph.rook.io/v1beta1/objectstore.go new file mode 100644 index 000000000..d9348947c --- /dev/null +++ b/pkg/client/listers/ceph.rook.io/v1beta1/objectstore.go @@ -0,0 +1,94 @@ +/* +Copyright The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by lister-gen. DO NOT EDIT. + +package v1beta1 + +import ( + v1beta1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1beta1" + "k8s.io/apimachinery/pkg/api/errors" + "k8s.io/apimachinery/pkg/labels" + "k8s.io/client-go/tools/cache" +) + +// ObjectStoreLister helps list ObjectStores. +type ObjectStoreLister interface { + // List lists all ObjectStores in the indexer. + List(selector labels.Selector) (ret []*v1beta1.ObjectStore, err error) + // ObjectStores returns an object that can list and get ObjectStores. + ObjectStores(namespace string) ObjectStoreNamespaceLister + ObjectStoreListerExpansion +} + +// objectStoreLister implements the ObjectStoreLister interface. +type objectStoreLister struct { + indexer cache.Indexer +} + +// NewObjectStoreLister returns a new ObjectStoreLister. +func NewObjectStoreLister(indexer cache.Indexer) ObjectStoreLister { + return &objectStoreLister{indexer: indexer} +} + +// List lists all ObjectStores in the indexer. +func (s *objectStoreLister) List(selector labels.Selector) (ret []*v1beta1.ObjectStore, err error) { + err = cache.ListAll(s.indexer, selector, func(m interface{}) { + ret = append(ret, m.(*v1beta1.ObjectStore)) + }) + return ret, err +} + +// ObjectStores returns an object that can list and get ObjectStores. +func (s *objectStoreLister) ObjectStores(namespace string) ObjectStoreNamespaceLister { + return objectStoreNamespaceLister{indexer: s.indexer, namespace: namespace} +} + +// ObjectStoreNamespaceLister helps list and get ObjectStores. +type ObjectStoreNamespaceLister interface { + // List lists all ObjectStores in the indexer for a given namespace. + List(selector labels.Selector) (ret []*v1beta1.ObjectStore, err error) + // Get retrieves the ObjectStore from the indexer for a given namespace and name. + Get(name string) (*v1beta1.ObjectStore, error) + ObjectStoreNamespaceListerExpansion +} + +// objectStoreNamespaceLister implements the ObjectStoreNamespaceLister +// interface. +type objectStoreNamespaceLister struct { + indexer cache.Indexer + namespace string +} + +// List lists all ObjectStores in the indexer for a given namespace. +func (s objectStoreNamespaceLister) List(selector labels.Selector) (ret []*v1beta1.ObjectStore, err error) { + err = cache.ListAllByNamespace(s.indexer, s.namespace, selector, func(m interface{}) { + ret = append(ret, m.(*v1beta1.ObjectStore)) + }) + return ret, err +} + +// Get retrieves the ObjectStore from the indexer for a given namespace and name. +func (s objectStoreNamespaceLister) Get(name string) (*v1beta1.ObjectStore, error) { + obj, exists, err := s.indexer.GetByKey(s.namespace + "/" + name) + if err != nil { + return nil, err + } + if !exists { + return nil, errors.NewNotFound(v1beta1.Resource("objectstore"), name) + } + return obj.(*v1beta1.ObjectStore), nil +} diff --git a/pkg/client/listers/ceph.rook.io/v1beta1/pool.go b/pkg/client/listers/ceph.rook.io/v1beta1/pool.go new file mode 100644 index 000000000..565fc82b1 --- /dev/null +++ b/pkg/client/listers/ceph.rook.io/v1beta1/pool.go @@ -0,0 +1,94 @@ +/* +Copyright The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by lister-gen. DO NOT EDIT. + +package v1beta1 + +import ( + v1beta1 "github.com/rook/rook/pkg/apis/ceph.rook.io/v1beta1" + "k8s.io/apimachinery/pkg/api/errors" + "k8s.io/apimachinery/pkg/labels" + "k8s.io/client-go/tools/cache" +) + +// PoolLister helps list Pools. +type PoolLister interface { + // List lists all Pools in the indexer. + List(selector labels.Selector) (ret []*v1beta1.Pool, err error) + // Pools returns an object that can list and get Pools. + Pools(namespace string) PoolNamespaceLister + PoolListerExpansion +} + +// poolLister implements the PoolLister interface. +type poolLister struct { + indexer cache.Indexer +} + +// NewPoolLister returns a new PoolLister. +func NewPoolLister(indexer cache.Indexer) PoolLister { + return &poolLister{indexer: indexer} +} + +// List lists all Pools in the indexer. +func (s *poolLister) List(selector labels.Selector) (ret []*v1beta1.Pool, err error) { + err = cache.ListAll(s.indexer, selector, func(m interface{}) { + ret = append(ret, m.(*v1beta1.Pool)) + }) + return ret, err +} + +// Pools returns an object that can list and get Pools. +func (s *poolLister) Pools(namespace string) PoolNamespaceLister { + return poolNamespaceLister{indexer: s.indexer, namespace: namespace} +} + +// PoolNamespaceLister helps list and get Pools. +type PoolNamespaceLister interface { + // List lists all Pools in the indexer for a given namespace. + List(selector labels.Selector) (ret []*v1beta1.Pool, err error) + // Get retrieves the Pool from the indexer for a given namespace and name. + Get(name string) (*v1beta1.Pool, error) + PoolNamespaceListerExpansion +} + +// poolNamespaceLister implements the PoolNamespaceLister +// interface. +type poolNamespaceLister struct { + indexer cache.Indexer + namespace string +} + +// List lists all Pools in the indexer for a given namespace. +func (s poolNamespaceLister) List(selector labels.Selector) (ret []*v1beta1.Pool, err error) { + err = cache.ListAllByNamespace(s.indexer, s.namespace, selector, func(m interface{}) { + ret = append(ret, m.(*v1beta1.Pool)) + }) + return ret, err +} + +// Get retrieves the Pool from the indexer for a given namespace and name. +func (s poolNamespaceLister) Get(name string) (*v1beta1.Pool, error) { + obj, exists, err := s.indexer.GetByKey(s.namespace + "/" + name) + if err != nil { + return nil, err + } + if !exists { + return nil, errors.NewNotFound(v1beta1.Resource("pool"), name) + } + return obj.(*v1beta1.Pool), nil +} diff --git a/pkg/client/listers/cockroachdb.rook.io/v1alpha1/cluster.go b/pkg/client/listers/cockroachdb.rook.io/v1alpha1/cluster.go new file mode 100644 index 000000000..fa42adccb --- /dev/null +++ b/pkg/client/listers/cockroachdb.rook.io/v1alpha1/cluster.go @@ -0,0 +1,94 @@ +/* +Copyright The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by lister-gen. DO NOT EDIT. + +package v1alpha1 + +import ( + v1alpha1 "github.com/rook/rook/pkg/apis/cockroachdb.rook.io/v1alpha1" + "k8s.io/apimachinery/pkg/api/errors" + "k8s.io/apimachinery/pkg/labels" + "k8s.io/client-go/tools/cache" +) + +// ClusterLister helps list Clusters. +type ClusterLister interface { + // List lists all Clusters in the indexer. + List(selector labels.Selector) (ret []*v1alpha1.Cluster, err error) + // Clusters returns an object that can list and get Clusters. + Clusters(namespace string) ClusterNamespaceLister + ClusterListerExpansion +} + +// clusterLister implements the ClusterLister interface. +type clusterLister struct { + indexer cache.Indexer +} + +// NewClusterLister returns a new ClusterLister. +func NewClusterLister(indexer cache.Indexer) ClusterLister { + return &clusterLister{indexer: indexer} +} + +// List lists all Clusters in the indexer. +func (s *clusterLister) List(selector labels.Selector) (ret []*v1alpha1.Cluster, err error) { + err = cache.ListAll(s.indexer, selector, func(m interface{}) { + ret = append(ret, m.(*v1alpha1.Cluster)) + }) + return ret, err +} + +// Clusters returns an object that can list and get Clusters. +func (s *clusterLister) Clusters(namespace string) ClusterNamespaceLister { + return clusterNamespaceLister{indexer: s.indexer, namespace: namespace} +} + +// ClusterNamespaceLister helps list and get Clusters. +type ClusterNamespaceLister interface { + // List lists all Clusters in the indexer for a given namespace. + List(selector labels.Selector) (ret []*v1alpha1.Cluster, err error) + // Get retrieves the Cluster from the indexer for a given namespace and name. + Get(name string) (*v1alpha1.Cluster, error) + ClusterNamespaceListerExpansion +} + +// clusterNamespaceLister implements the ClusterNamespaceLister +// interface. +type clusterNamespaceLister struct { + indexer cache.Indexer + namespace string +} + +// List lists all Clusters in the indexer for a given namespace. +func (s clusterNamespaceLister) List(selector labels.Selector) (ret []*v1alpha1.Cluster, err error) { + err = cache.ListAllByNamespace(s.indexer, s.namespace, selector, func(m interface{}) { + ret = append(ret, m.(*v1alpha1.Cluster)) + }) + return ret, err +} + +// Get retrieves the Cluster from the indexer for a given namespace and name. +func (s clusterNamespaceLister) Get(name string) (*v1alpha1.Cluster, error) { + obj, exists, err := s.indexer.GetByKey(s.namespace + "/" + name) + if err != nil { + return nil, err + } + if !exists { + return nil, errors.NewNotFound(v1alpha1.Resource("cluster"), name) + } + return obj.(*v1alpha1.Cluster), nil +} diff --git a/pkg/client/listers/cockroachdb.rook.io/v1alpha1/expansion_generated.go b/pkg/client/listers/cockroachdb.rook.io/v1alpha1/expansion_generated.go new file mode 100644 index 000000000..5bd821b43 --- /dev/null +++ b/pkg/client/listers/cockroachdb.rook.io/v1alpha1/expansion_generated.go @@ -0,0 +1,27 @@ +/* +Copyright The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by lister-gen. DO NOT EDIT. + +package v1alpha1 + +// ClusterListerExpansion allows custom methods to be added to +// ClusterLister. +type ClusterListerExpansion interface{} + +// ClusterNamespaceListerExpansion allows custom methods to be added to +// ClusterNamespaceLister. +type ClusterNamespaceListerExpansion interface{} diff --git a/pkg/client/listers/minio.rook.io/v1alpha1/expansion_generated.go b/pkg/client/listers/minio.rook.io/v1alpha1/expansion_generated.go new file mode 100644 index 000000000..10cf0e23c --- /dev/null +++ b/pkg/client/listers/minio.rook.io/v1alpha1/expansion_generated.go @@ -0,0 +1,27 @@ +/* +Copyright The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by lister-gen. DO NOT EDIT. + +package v1alpha1 + +// ObjectStoreListerExpansion allows custom methods to be added to +// ObjectStoreLister. +type ObjectStoreListerExpansion interface{} + +// ObjectStoreNamespaceListerExpansion allows custom methods to be added to +// ObjectStoreNamespaceLister. +type ObjectStoreNamespaceListerExpansion interface{} diff --git a/pkg/client/listers/minio.rook.io/v1alpha1/objectstore.go b/pkg/client/listers/minio.rook.io/v1alpha1/objectstore.go new file mode 100644 index 000000000..9ba599f41 --- /dev/null +++ b/pkg/client/listers/minio.rook.io/v1alpha1/objectstore.go @@ -0,0 +1,94 @@ +/* +Copyright The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by lister-gen. DO NOT EDIT. + +package v1alpha1 + +import ( + v1alpha1 "github.com/rook/rook/pkg/apis/minio.rook.io/v1alpha1" + "k8s.io/apimachinery/pkg/api/errors" + "k8s.io/apimachinery/pkg/labels" + "k8s.io/client-go/tools/cache" +) + +// ObjectStoreLister helps list ObjectStores. +type ObjectStoreLister interface { + // List lists all ObjectStores in the indexer. + List(selector labels.Selector) (ret []*v1alpha1.ObjectStore, err error) + // ObjectStores returns an object that can list and get ObjectStores. + ObjectStores(namespace string) ObjectStoreNamespaceLister + ObjectStoreListerExpansion +} + +// objectStoreLister implements the ObjectStoreLister interface. +type objectStoreLister struct { + indexer cache.Indexer +} + +// NewObjectStoreLister returns a new ObjectStoreLister. +func NewObjectStoreLister(indexer cache.Indexer) ObjectStoreLister { + return &objectStoreLister{indexer: indexer} +} + +// List lists all ObjectStores in the indexer. +func (s *objectStoreLister) List(selector labels.Selector) (ret []*v1alpha1.ObjectStore, err error) { + err = cache.ListAll(s.indexer, selector, func(m interface{}) { + ret = append(ret, m.(*v1alpha1.ObjectStore)) + }) + return ret, err +} + +// ObjectStores returns an object that can list and get ObjectStores. +func (s *objectStoreLister) ObjectStores(namespace string) ObjectStoreNamespaceLister { + return objectStoreNamespaceLister{indexer: s.indexer, namespace: namespace} +} + +// ObjectStoreNamespaceLister helps list and get ObjectStores. +type ObjectStoreNamespaceLister interface { + // List lists all ObjectStores in the indexer for a given namespace. + List(selector labels.Selector) (ret []*v1alpha1.ObjectStore, err error) + // Get retrieves the ObjectStore from the indexer for a given namespace and name. + Get(name string) (*v1alpha1.ObjectStore, error) + ObjectStoreNamespaceListerExpansion +} + +// objectStoreNamespaceLister implements the ObjectStoreNamespaceLister +// interface. +type objectStoreNamespaceLister struct { + indexer cache.Indexer + namespace string +} + +// List lists all ObjectStores in the indexer for a given namespace. +func (s objectStoreNamespaceLister) List(selector labels.Selector) (ret []*v1alpha1.ObjectStore, err error) { + err = cache.ListAllByNamespace(s.indexer, s.namespace, selector, func(m interface{}) { + ret = append(ret, m.(*v1alpha1.ObjectStore)) + }) + return ret, err +} + +// Get retrieves the ObjectStore from the indexer for a given namespace and name. +func (s objectStoreNamespaceLister) Get(name string) (*v1alpha1.ObjectStore, error) { + obj, exists, err := s.indexer.GetByKey(s.namespace + "/" + name) + if err != nil { + return nil, err + } + if !exists { + return nil, errors.NewNotFound(v1alpha1.Resource("objectstore"), name) + } + return obj.(*v1alpha1.ObjectStore), nil +} diff --git a/pkg/client/listers/nfs.rook.io/v1alpha1/expansion_generated.go b/pkg/client/listers/nfs.rook.io/v1alpha1/expansion_generated.go new file mode 100644 index 000000000..b89229e62 --- /dev/null +++ b/pkg/client/listers/nfs.rook.io/v1alpha1/expansion_generated.go @@ -0,0 +1,27 @@ +/* +Copyright The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by lister-gen. DO NOT EDIT. + +package v1alpha1 + +// NFSServerListerExpansion allows custom methods to be added to +// NFSServerLister. +type NFSServerListerExpansion interface{} + +// NFSServerNamespaceListerExpansion allows custom methods to be added to +// NFSServerNamespaceLister. +type NFSServerNamespaceListerExpansion interface{} diff --git a/pkg/client/listers/nfs.rook.io/v1alpha1/nfsserver.go b/pkg/client/listers/nfs.rook.io/v1alpha1/nfsserver.go new file mode 100644 index 000000000..96c116cc1 --- /dev/null +++ b/pkg/client/listers/nfs.rook.io/v1alpha1/nfsserver.go @@ -0,0 +1,94 @@ +/* +Copyright The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by lister-gen. DO NOT EDIT. + +package v1alpha1 + +import ( + v1alpha1 "github.com/rook/rook/pkg/apis/nfs.rook.io/v1alpha1" + "k8s.io/apimachinery/pkg/api/errors" + "k8s.io/apimachinery/pkg/labels" + "k8s.io/client-go/tools/cache" +) + +// NFSServerLister helps list NFSServers. +type NFSServerLister interface { + // List lists all NFSServers in the indexer. + List(selector labels.Selector) (ret []*v1alpha1.NFSServer, err error) + // NFSServers returns an object that can list and get NFSServers. + NFSServers(namespace string) NFSServerNamespaceLister + NFSServerListerExpansion +} + +// nFSServerLister implements the NFSServerLister interface. +type nFSServerLister struct { + indexer cache.Indexer +} + +// NewNFSServerLister returns a new NFSServerLister. +func NewNFSServerLister(indexer cache.Indexer) NFSServerLister { + return &nFSServerLister{indexer: indexer} +} + +// List lists all NFSServers in the indexer. +func (s *nFSServerLister) List(selector labels.Selector) (ret []*v1alpha1.NFSServer, err error) { + err = cache.ListAll(s.indexer, selector, func(m interface{}) { + ret = append(ret, m.(*v1alpha1.NFSServer)) + }) + return ret, err +} + +// NFSServers returns an object that can list and get NFSServers. +func (s *nFSServerLister) NFSServers(namespace string) NFSServerNamespaceLister { + return nFSServerNamespaceLister{indexer: s.indexer, namespace: namespace} +} + +// NFSServerNamespaceLister helps list and get NFSServers. +type NFSServerNamespaceLister interface { + // List lists all NFSServers in the indexer for a given namespace. + List(selector labels.Selector) (ret []*v1alpha1.NFSServer, err error) + // Get retrieves the NFSServer from the indexer for a given namespace and name. + Get(name string) (*v1alpha1.NFSServer, error) + NFSServerNamespaceListerExpansion +} + +// nFSServerNamespaceLister implements the NFSServerNamespaceLister +// interface. +type nFSServerNamespaceLister struct { + indexer cache.Indexer + namespace string +} + +// List lists all NFSServers in the indexer for a given namespace. +func (s nFSServerNamespaceLister) List(selector labels.Selector) (ret []*v1alpha1.NFSServer, err error) { + err = cache.ListAllByNamespace(s.indexer, s.namespace, selector, func(m interface{}) { + ret = append(ret, m.(*v1alpha1.NFSServer)) + }) + return ret, err +} + +// Get retrieves the NFSServer from the indexer for a given namespace and name. +func (s nFSServerNamespaceLister) Get(name string) (*v1alpha1.NFSServer, error) { + obj, exists, err := s.indexer.GetByKey(s.namespace + "/" + name) + if err != nil { + return nil, err + } + if !exists { + return nil, errors.NewNotFound(v1alpha1.Resource("nfsserver"), name) + } + return obj.(*v1alpha1.NFSServer), nil +} diff --git a/pkg/client/listers/rook.io/v1alpha1/cluster.go b/pkg/client/listers/rook.io/v1alpha1/cluster.go new file mode 100644 index 000000000..2438803d6 --- /dev/null +++ b/pkg/client/listers/rook.io/v1alpha1/cluster.go @@ -0,0 +1,94 @@ +/* +Copyright The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by lister-gen. DO NOT EDIT. + +package v1alpha1 + +import ( + v1alpha1 "github.com/rook/rook/pkg/apis/rook.io/v1alpha1" + "k8s.io/apimachinery/pkg/api/errors" + "k8s.io/apimachinery/pkg/labels" + "k8s.io/client-go/tools/cache" +) + +// ClusterLister helps list Clusters. +type ClusterLister interface { + // List lists all Clusters in the indexer. + List(selector labels.Selector) (ret []*v1alpha1.Cluster, err error) + // Clusters returns an object that can list and get Clusters. + Clusters(namespace string) ClusterNamespaceLister + ClusterListerExpansion +} + +// clusterLister implements the ClusterLister interface. +type clusterLister struct { + indexer cache.Indexer +} + +// NewClusterLister returns a new ClusterLister. +func NewClusterLister(indexer cache.Indexer) ClusterLister { + return &clusterLister{indexer: indexer} +} + +// List lists all Clusters in the indexer. +func (s *clusterLister) List(selector labels.Selector) (ret []*v1alpha1.Cluster, err error) { + err = cache.ListAll(s.indexer, selector, func(m interface{}) { + ret = append(ret, m.(*v1alpha1.Cluster)) + }) + return ret, err +} + +// Clusters returns an object that can list and get Clusters. +func (s *clusterLister) Clusters(namespace string) ClusterNamespaceLister { + return clusterNamespaceLister{indexer: s.indexer, namespace: namespace} +} + +// ClusterNamespaceLister helps list and get Clusters. +type ClusterNamespaceLister interface { + // List lists all Clusters in the indexer for a given namespace. + List(selector labels.Selector) (ret []*v1alpha1.Cluster, err error) + // Get retrieves the Cluster from the indexer for a given namespace and name. + Get(name string) (*v1alpha1.Cluster, error) + ClusterNamespaceListerExpansion +} + +// clusterNamespaceLister implements the ClusterNamespaceLister +// interface. +type clusterNamespaceLister struct { + indexer cache.Indexer + namespace string +} + +// List lists all Clusters in the indexer for a given namespace. +func (s clusterNamespaceLister) List(selector labels.Selector) (ret []*v1alpha1.Cluster, err error) { + err = cache.ListAllByNamespace(s.indexer, s.namespace, selector, func(m interface{}) { + ret = append(ret, m.(*v1alpha1.Cluster)) + }) + return ret, err +} + +// Get retrieves the Cluster from the indexer for a given namespace and name. +func (s clusterNamespaceLister) Get(name string) (*v1alpha1.Cluster, error) { + obj, exists, err := s.indexer.GetByKey(s.namespace + "/" + name) + if err != nil { + return nil, err + } + if !exists { + return nil, errors.NewNotFound(v1alpha1.Resource("cluster"), name) + } + return obj.(*v1alpha1.Cluster), nil +} diff --git a/pkg/client/listers/rook.io/v1alpha1/expansion_generated.go b/pkg/client/listers/rook.io/v1alpha1/expansion_generated.go new file mode 100644 index 000000000..48a9bda74 --- /dev/null +++ b/pkg/client/listers/rook.io/v1alpha1/expansion_generated.go @@ -0,0 +1,59 @@ +/* +Copyright The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by lister-gen. DO NOT EDIT. + +package v1alpha1 + +// ClusterListerExpansion allows custom methods to be added to +// ClusterLister. +type ClusterListerExpansion interface{} + +// ClusterNamespaceListerExpansion allows custom methods to be added to +// ClusterNamespaceLister. +type ClusterNamespaceListerExpansion interface{} + +// FilesystemListerExpansion allows custom methods to be added to +// FilesystemLister. +type FilesystemListerExpansion interface{} + +// FilesystemNamespaceListerExpansion allows custom methods to be added to +// FilesystemNamespaceLister. +type FilesystemNamespaceListerExpansion interface{} + +// ObjectStoreListerExpansion allows custom methods to be added to +// ObjectStoreLister. +type ObjectStoreListerExpansion interface{} + +// ObjectStoreNamespaceListerExpansion allows custom methods to be added to +// ObjectStoreNamespaceLister. +type ObjectStoreNamespaceListerExpansion interface{} + +// PoolListerExpansion allows custom methods to be added to +// PoolLister. +type PoolListerExpansion interface{} + +// PoolNamespaceListerExpansion allows custom methods to be added to +// PoolNamespaceLister. +type PoolNamespaceListerExpansion interface{} + +// VolumeAttachmentListerExpansion allows custom methods to be added to +// VolumeAttachmentLister. +type VolumeAttachmentListerExpansion interface{} + +// VolumeAttachmentNamespaceListerExpansion allows custom methods to be added to +// VolumeAttachmentNamespaceLister. +type VolumeAttachmentNamespaceListerExpansion interface{} diff --git a/pkg/client/listers/rook.io/v1alpha1/filesystem.go b/pkg/client/listers/rook.io/v1alpha1/filesystem.go new file mode 100644 index 000000000..1a63a006c --- /dev/null +++ b/pkg/client/listers/rook.io/v1alpha1/filesystem.go @@ -0,0 +1,94 @@ +/* +Copyright The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by lister-gen. DO NOT EDIT. + +package v1alpha1 + +import ( + v1alpha1 "github.com/rook/rook/pkg/apis/rook.io/v1alpha1" + "k8s.io/apimachinery/pkg/api/errors" + "k8s.io/apimachinery/pkg/labels" + "k8s.io/client-go/tools/cache" +) + +// FilesystemLister helps list Filesystems. +type FilesystemLister interface { + // List lists all Filesystems in the indexer. + List(selector labels.Selector) (ret []*v1alpha1.Filesystem, err error) + // Filesystems returns an object that can list and get Filesystems. + Filesystems(namespace string) FilesystemNamespaceLister + FilesystemListerExpansion +} + +// filesystemLister implements the FilesystemLister interface. +type filesystemLister struct { + indexer cache.Indexer +} + +// NewFilesystemLister returns a new FilesystemLister. +func NewFilesystemLister(indexer cache.Indexer) FilesystemLister { + return &filesystemLister{indexer: indexer} +} + +// List lists all Filesystems in the indexer. +func (s *filesystemLister) List(selector labels.Selector) (ret []*v1alpha1.Filesystem, err error) { + err = cache.ListAll(s.indexer, selector, func(m interface{}) { + ret = append(ret, m.(*v1alpha1.Filesystem)) + }) + return ret, err +} + +// Filesystems returns an object that can list and get Filesystems. +func (s *filesystemLister) Filesystems(namespace string) FilesystemNamespaceLister { + return filesystemNamespaceLister{indexer: s.indexer, namespace: namespace} +} + +// FilesystemNamespaceLister helps list and get Filesystems. +type FilesystemNamespaceLister interface { + // List lists all Filesystems in the indexer for a given namespace. + List(selector labels.Selector) (ret []*v1alpha1.Filesystem, err error) + // Get retrieves the Filesystem from the indexer for a given namespace and name. + Get(name string) (*v1alpha1.Filesystem, error) + FilesystemNamespaceListerExpansion +} + +// filesystemNamespaceLister implements the FilesystemNamespaceLister +// interface. +type filesystemNamespaceLister struct { + indexer cache.Indexer + namespace string +} + +// List lists all Filesystems in the indexer for a given namespace. +func (s filesystemNamespaceLister) List(selector labels.Selector) (ret []*v1alpha1.Filesystem, err error) { + err = cache.ListAllByNamespace(s.indexer, s.namespace, selector, func(m interface{}) { + ret = append(ret, m.(*v1alpha1.Filesystem)) + }) + return ret, err +} + +// Get retrieves the Filesystem from the indexer for a given namespace and name. +func (s filesystemNamespaceLister) Get(name string) (*v1alpha1.Filesystem, error) { + obj, exists, err := s.indexer.GetByKey(s.namespace + "/" + name) + if err != nil { + return nil, err + } + if !exists { + return nil, errors.NewNotFound(v1alpha1.Resource("filesystem"), name) + } + return obj.(*v1alpha1.Filesystem), nil +} diff --git a/pkg/client/listers/rook.io/v1alpha1/objectstore.go b/pkg/client/listers/rook.io/v1alpha1/objectstore.go new file mode 100644 index 000000000..ca1becbbc --- /dev/null +++ b/pkg/client/listers/rook.io/v1alpha1/objectstore.go @@ -0,0 +1,94 @@ +/* +Copyright The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by lister-gen. DO NOT EDIT. + +package v1alpha1 + +import ( + v1alpha1 "github.com/rook/rook/pkg/apis/rook.io/v1alpha1" + "k8s.io/apimachinery/pkg/api/errors" + "k8s.io/apimachinery/pkg/labels" + "k8s.io/client-go/tools/cache" +) + +// ObjectStoreLister helps list ObjectStores. +type ObjectStoreLister interface { + // List lists all ObjectStores in the indexer. + List(selector labels.Selector) (ret []*v1alpha1.ObjectStore, err error) + // ObjectStores returns an object that can list and get ObjectStores. + ObjectStores(namespace string) ObjectStoreNamespaceLister + ObjectStoreListerExpansion +} + +// objectStoreLister implements the ObjectStoreLister interface. +type objectStoreLister struct { + indexer cache.Indexer +} + +// NewObjectStoreLister returns a new ObjectStoreLister. +func NewObjectStoreLister(indexer cache.Indexer) ObjectStoreLister { + return &objectStoreLister{indexer: indexer} +} + +// List lists all ObjectStores in the indexer. +func (s *objectStoreLister) List(selector labels.Selector) (ret []*v1alpha1.ObjectStore, err error) { + err = cache.ListAll(s.indexer, selector, func(m interface{}) { + ret = append(ret, m.(*v1alpha1.ObjectStore)) + }) + return ret, err +} + +// ObjectStores returns an object that can list and get ObjectStores. +func (s *objectStoreLister) ObjectStores(namespace string) ObjectStoreNamespaceLister { + return objectStoreNamespaceLister{indexer: s.indexer, namespace: namespace} +} + +// ObjectStoreNamespaceLister helps list and get ObjectStores. +type ObjectStoreNamespaceLister interface { + // List lists all ObjectStores in the indexer for a given namespace. + List(selector labels.Selector) (ret []*v1alpha1.ObjectStore, err error) + // Get retrieves the ObjectStore from the indexer for a given namespace and name. + Get(name string) (*v1alpha1.ObjectStore, error) + ObjectStoreNamespaceListerExpansion +} + +// objectStoreNamespaceLister implements the ObjectStoreNamespaceLister +// interface. +type objectStoreNamespaceLister struct { + indexer cache.Indexer + namespace string +} + +// List lists all ObjectStores in the indexer for a given namespace. +func (s objectStoreNamespaceLister) List(selector labels.Selector) (ret []*v1alpha1.ObjectStore, err error) { + err = cache.ListAllByNamespace(s.indexer, s.namespace, selector, func(m interface{}) { + ret = append(ret, m.(*v1alpha1.ObjectStore)) + }) + return ret, err +} + +// Get retrieves the ObjectStore from the indexer for a given namespace and name. +func (s objectStoreNamespaceLister) Get(name string) (*v1alpha1.ObjectStore, error) { + obj, exists, err := s.indexer.GetByKey(s.namespace + "/" + name) + if err != nil { + return nil, err + } + if !exists { + return nil, errors.NewNotFound(v1alpha1.Resource("objectstore"), name) + } + return obj.(*v1alpha1.ObjectStore), nil +} diff --git a/pkg/client/listers/rook.io/v1alpha1/pool.go b/pkg/client/listers/rook.io/v1alpha1/pool.go new file mode 100644 index 000000000..fb948706c --- /dev/null +++ b/pkg/client/listers/rook.io/v1alpha1/pool.go @@ -0,0 +1,94 @@ +/* +Copyright The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by lister-gen. DO NOT EDIT. + +package v1alpha1 + +import ( + v1alpha1 "github.com/rook/rook/pkg/apis/rook.io/v1alpha1" + "k8s.io/apimachinery/pkg/api/errors" + "k8s.io/apimachinery/pkg/labels" + "k8s.io/client-go/tools/cache" +) + +// PoolLister helps list Pools. +type PoolLister interface { + // List lists all Pools in the indexer. + List(selector labels.Selector) (ret []*v1alpha1.Pool, err error) + // Pools returns an object that can list and get Pools. + Pools(namespace string) PoolNamespaceLister + PoolListerExpansion +} + +// poolLister implements the PoolLister interface. +type poolLister struct { + indexer cache.Indexer +} + +// NewPoolLister returns a new PoolLister. +func NewPoolLister(indexer cache.Indexer) PoolLister { + return &poolLister{indexer: indexer} +} + +// List lists all Pools in the indexer. +func (s *poolLister) List(selector labels.Selector) (ret []*v1alpha1.Pool, err error) { + err = cache.ListAll(s.indexer, selector, func(m interface{}) { + ret = append(ret, m.(*v1alpha1.Pool)) + }) + return ret, err +} + +// Pools returns an object that can list and get Pools. +func (s *poolLister) Pools(namespace string) PoolNamespaceLister { + return poolNamespaceLister{indexer: s.indexer, namespace: namespace} +} + +// PoolNamespaceLister helps list and get Pools. +type PoolNamespaceLister interface { + // List lists all Pools in the indexer for a given namespace. + List(selector labels.Selector) (ret []*v1alpha1.Pool, err error) + // Get retrieves the Pool from the indexer for a given namespace and name. + Get(name string) (*v1alpha1.Pool, error) + PoolNamespaceListerExpansion +} + +// poolNamespaceLister implements the PoolNamespaceLister +// interface. +type poolNamespaceLister struct { + indexer cache.Indexer + namespace string +} + +// List lists all Pools in the indexer for a given namespace. +func (s poolNamespaceLister) List(selector labels.Selector) (ret []*v1alpha1.Pool, err error) { + err = cache.ListAllByNamespace(s.indexer, s.namespace, selector, func(m interface{}) { + ret = append(ret, m.(*v1alpha1.Pool)) + }) + return ret, err +} + +// Get retrieves the Pool from the indexer for a given namespace and name. +func (s poolNamespaceLister) Get(name string) (*v1alpha1.Pool, error) { + obj, exists, err := s.indexer.GetByKey(s.namespace + "/" + name) + if err != nil { + return nil, err + } + if !exists { + return nil, errors.NewNotFound(v1alpha1.Resource("pool"), name) + } + return obj.(*v1alpha1.Pool), nil +} diff --git a/pkg/client/listers/rook.io/v1alpha1/volumeattachment.go b/pkg/client/listers/rook.io/v1alpha1/volumeattachment.go new file mode 100644 index 000000000..5921bb8ee --- /dev/null +++ b/pkg/client/listers/rook.io/v1alpha1/volumeattachment.go @@ -0,0 +1,94 @@ +/* +Copyright The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by lister-gen. DO NOT EDIT. + +package v1alpha1 + +import ( + v1alpha1 "github.com/rook/rook/pkg/apis/rook.io/v1alpha1" + "k8s.io/apimachinery/pkg/api/errors" + "k8s.io/apimachinery/pkg/labels" + "k8s.io/client-go/tools/cache" +) + +// VolumeAttachmentLister helps list VolumeAttachments. +type VolumeAttachmentLister interface { + // List lists all VolumeAttachments in the indexer. + List(selector labels.Selector) (ret []*v1alpha1.VolumeAttachment, err error) + // VolumeAttachments returns an object that can list and get VolumeAttachments. + VolumeAttachments(namespace string) VolumeAttachmentNamespaceLister + VolumeAttachmentListerExpansion +} + +// volumeAttachmentLister implements the VolumeAttachmentLister interface. +type volumeAttachmentLister struct { + indexer cache.Indexer +} + +// NewVolumeAttachmentLister returns a new VolumeAttachmentLister. +func NewVolumeAttachmentLister(indexer cache.Indexer) VolumeAttachmentLister { + return &volumeAttachmentLister{indexer: indexer} +} + +// List lists all VolumeAttachments in the indexer. +func (s *volumeAttachmentLister) List(selector labels.Selector) (ret []*v1alpha1.VolumeAttachment, err error) { + err = cache.ListAll(s.indexer, selector, func(m interface{}) { + ret = append(ret, m.(*v1alpha1.VolumeAttachment)) + }) + return ret, err +} + +// VolumeAttachments returns an object that can list and get VolumeAttachments. +func (s *volumeAttachmentLister) VolumeAttachments(namespace string) VolumeAttachmentNamespaceLister { + return volumeAttachmentNamespaceLister{indexer: s.indexer, namespace: namespace} +} + +// VolumeAttachmentNamespaceLister helps list and get VolumeAttachments. +type VolumeAttachmentNamespaceLister interface { + // List lists all VolumeAttachments in the indexer for a given namespace. + List(selector labels.Selector) (ret []*v1alpha1.VolumeAttachment, err error) + // Get retrieves the VolumeAttachment from the indexer for a given namespace and name. + Get(name string) (*v1alpha1.VolumeAttachment, error) + VolumeAttachmentNamespaceListerExpansion +} + +// volumeAttachmentNamespaceLister implements the VolumeAttachmentNamespaceLister +// interface. +type volumeAttachmentNamespaceLister struct { + indexer cache.Indexer + namespace string +} + +// List lists all VolumeAttachments in the indexer for a given namespace. +func (s volumeAttachmentNamespaceLister) List(selector labels.Selector) (ret []*v1alpha1.VolumeAttachment, err error) { + err = cache.ListAllByNamespace(s.indexer, s.namespace, selector, func(m interface{}) { + ret = append(ret, m.(*v1alpha1.VolumeAttachment)) + }) + return ret, err +} + +// Get retrieves the VolumeAttachment from the indexer for a given namespace and name. +func (s volumeAttachmentNamespaceLister) Get(name string) (*v1alpha1.VolumeAttachment, error) { + obj, exists, err := s.indexer.GetByKey(s.namespace + "/" + name) + if err != nil { + return nil, err + } + if !exists { + return nil, errors.NewNotFound(v1alpha1.Resource("volumeattachment"), name) + } + return obj.(*v1alpha1.VolumeAttachment), nil +} diff --git a/pkg/client/listers/rook.io/v1alpha2/expansion_generated.go b/pkg/client/listers/rook.io/v1alpha2/expansion_generated.go new file mode 100644 index 000000000..0ecd640dd --- /dev/null +++ b/pkg/client/listers/rook.io/v1alpha2/expansion_generated.go @@ -0,0 +1,27 @@ +/* +Copyright The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by lister-gen. DO NOT EDIT. + +package v1alpha2 + +// VolumeListerExpansion allows custom methods to be added to +// VolumeLister. +type VolumeListerExpansion interface{} + +// VolumeNamespaceListerExpansion allows custom methods to be added to +// VolumeNamespaceLister. +type VolumeNamespaceListerExpansion interface{} diff --git a/pkg/client/listers/rook.io/v1alpha2/volume.go b/pkg/client/listers/rook.io/v1alpha2/volume.go new file mode 100644 index 000000000..167da2f1e --- /dev/null +++ b/pkg/client/listers/rook.io/v1alpha2/volume.go @@ -0,0 +1,94 @@ +/* +Copyright The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +// Code generated by lister-gen. DO NOT EDIT. + +package v1alpha2 + +import ( + v1alpha2 "github.com/rook/rook/pkg/apis/rook.io/v1alpha2" + "k8s.io/apimachinery/pkg/api/errors" + "k8s.io/apimachinery/pkg/labels" + "k8s.io/client-go/tools/cache" +) + +// VolumeLister helps list Volumes. +type VolumeLister interface { + // List lists all Volumes in the indexer. + List(selector labels.Selector) (ret []*v1alpha2.Volume, err error) + // Volumes returns an object that can list and get Volumes. + Volumes(namespace string) VolumeNamespaceLister + VolumeListerExpansion +} + +// volumeLister implements the VolumeLister interface. +type volumeLister struct { + indexer cache.Indexer +} + +// NewVolumeLister returns a new VolumeLister. +func NewVolumeLister(indexer cache.Indexer) VolumeLister { + return &volumeLister{indexer: indexer} +} + +// List lists all Volumes in the indexer. +func (s *volumeLister) List(selector labels.Selector) (ret []*v1alpha2.Volume, err error) { + err = cache.ListAll(s.indexer, selector, func(m interface{}) { + ret = append(ret, m.(*v1alpha2.Volume)) + }) + return ret, err +} + +// Volumes returns an object that can list and get Volumes. +func (s *volumeLister) Volumes(namespace string) VolumeNamespaceLister { + return volumeNamespaceLister{indexer: s.indexer, namespace: namespace} +} + +// VolumeNamespaceLister helps list and get Volumes. +type VolumeNamespaceLister interface { + // List lists all Volumes in the indexer for a given namespace. + List(selector labels.Selector) (ret []*v1alpha2.Volume, err error) + // Get retrieves the Volume from the indexer for a given namespace and name. + Get(name string) (*v1alpha2.Volume, error) + VolumeNamespaceListerExpansion +} + +// volumeNamespaceLister implements the VolumeNamespaceLister +// interface. +type volumeNamespaceLister struct { + indexer cache.Indexer + namespace string +} + +// List lists all Volumes in the indexer for a given namespace. +func (s volumeNamespaceLister) List(selector labels.Selector) (ret []*v1alpha2.Volume, err error) { + err = cache.ListAllByNamespace(s.indexer, s.namespace, selector, func(m interface{}) { + ret = append(ret, m.(*v1alpha2.Volume)) + }) + return ret, err +} + +// Get retrieves the Volume from the indexer for a given namespace and name. +func (s volumeNamespaceLister) Get(name string) (*v1alpha2.Volume, error) { + obj, exists, err := s.indexer.GetByKey(s.namespace + "/" + name) + if err != nil { + return nil, err + } + if !exists { + return nil, errors.NewNotFound(v1alpha2.Resource("volume"), name) + } + return obj.(*v1alpha2.Volume), nil +}