diff --git a/pkg/apis/aiven.io/v1alpha1/redis_types.go b/pkg/apis/aiven.io/v1alpha1/redis_types.go index 3b056e4..097cc09 100644 --- a/pkg/apis/aiven.io/v1alpha1/redis_types.go +++ b/pkg/apis/aiven.io/v1alpha1/redis_types.go @@ -6,7 +6,7 @@ import ( func init() { SchemeBuilder.Register( - &Redis{}, + &Redis{}, &RedisList{}, ) } @@ -27,3 +27,10 @@ type RedisSpec struct { type RedisStatus struct { } + +// +kubebuilder:object:root=true +type RedisList struct { + metav1.TypeMeta `json:",inline"` + metav1.ListMeta `json:"metadata,omitempty"` + Items []Redis `json:"items"` +} diff --git a/pkg/apis/aiven.io/v1alpha1/zz_generated.deepcopy.go b/pkg/apis/aiven.io/v1alpha1/zz_generated.deepcopy.go index fe0cf87..7cb308a 100644 --- a/pkg/apis/aiven.io/v1alpha1/zz_generated.deepcopy.go +++ b/pkg/apis/aiven.io/v1alpha1/zz_generated.deepcopy.go @@ -61,3 +61,35 @@ func (in *Redis) DeepCopyObject() runtime.Object { } return nil } + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *RedisList) DeepCopyInto(out *RedisList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]Redis, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedisList. +func (in *RedisList) DeepCopy() *RedisList { + if in == nil { + return nil + } + out := new(RedisList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *RedisList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +}