From cf4011e514bf52e21605ef3861991d7329c76ebf Mon Sep 17 00:00:00 2001 From: Gabriel Saratura Date: Mon, 13 Jan 2025 17:57:22 +0100 Subject: [PATCH] Fix typo in stackgres resource --- apis/helm/release/v1alpha1/types.go | 2 +- apis/stackgres/v1/groupversion_info.go | 4 +- apis/stackgres/v1/sginstanceprofile.go | 2 +- apis/stackgres/v1/sgpostresconfig.go | 2 +- apis/stackgres/v1/zz_generated.deepcopy.go | 110 ++++++++++----------- 5 files changed, 60 insertions(+), 60 deletions(-) diff --git a/apis/helm/release/v1alpha1/types.go b/apis/helm/release/v1alpha1/types.go index 3b438d064c..bf684c9987 100644 --- a/apis/helm/release/v1alpha1/types.go +++ b/apis/helm/release/v1alpha1/types.go @@ -40,7 +40,7 @@ type NamespacedName struct { // DataKeySelector defines required spec to access a key of a configmap or secret type DataKeySelector struct { - NamespacedName `json:",inline,omitempty"` + NamespacedName `json:",inline"` Key string `json:"key,omitempty"` Optional bool `json:"optional,omitempty"` } diff --git a/apis/stackgres/v1/groupversion_info.go b/apis/stackgres/v1/groupversion_info.go index d3d1f992ab..cfd3203001 100644 --- a/apis/stackgres/v1/groupversion_info.go +++ b/apis/stackgres/v1/groupversion_info.go @@ -27,10 +27,10 @@ func init() { &SGCluster{}, &SGClusterList{}, &SGPostgresConfig{}, - &SGPostgesConfigList{}, + &SGPostgresConfigList{}, &SGPoolingConfigList{}, &SGPoolingConfig{}, &SGInstanceProfile{}, - &SGPInstanceProfileList{}, + &SGInstanceProfileList{}, ) } diff --git a/apis/stackgres/v1/sginstanceprofile.go b/apis/stackgres/v1/sginstanceprofile.go index 7774535728..39135fe0a3 100644 --- a/apis/stackgres/v1/sginstanceprofile.go +++ b/apis/stackgres/v1/sginstanceprofile.go @@ -17,7 +17,7 @@ type SGInstanceProfile struct { // +kubebuilder:object:root=true -type SGPInstanceProfileList struct { +type SGInstanceProfileList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` diff --git a/apis/stackgres/v1/sgpostresconfig.go b/apis/stackgres/v1/sgpostresconfig.go index 84ff767046..4b2cb1cd93 100644 --- a/apis/stackgres/v1/sgpostresconfig.go +++ b/apis/stackgres/v1/sgpostresconfig.go @@ -22,7 +22,7 @@ type SGPostgresConfig struct { // +kubebuilder:object:root=true -type SGPostgesConfigList struct { +type SGPostgresConfigList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` diff --git a/apis/stackgres/v1/zz_generated.deepcopy.go b/apis/stackgres/v1/zz_generated.deepcopy.go index be62fd31df..da94252106 100644 --- a/apis/stackgres/v1/zz_generated.deepcopy.go +++ b/apis/stackgres/v1/zz_generated.deepcopy.go @@ -9949,6 +9949,38 @@ func (in *SGInstanceProfileContainer) DeepCopy() *SGInstanceProfileContainer { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *SGInstanceProfileList) DeepCopyInto(out *SGInstanceProfileList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]SGInstanceProfile, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SGInstanceProfileList. +func (in *SGInstanceProfileList) DeepCopy() *SGInstanceProfileList { + if in == nil { + return nil + } + out := new(SGInstanceProfileList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *SGInstanceProfileList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *SGInstanceProfileSpec) DeepCopyInto(out *SGInstanceProfileSpec) { *out = *in @@ -10028,38 +10060,6 @@ func (in *SGInstanceProfileSpecRequests) DeepCopy() *SGInstanceProfileSpecReques return out } -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SGPInstanceProfileList) DeepCopyInto(out *SGPInstanceProfileList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]SGInstanceProfile, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SGPInstanceProfileList. -func (in *SGPInstanceProfileList) DeepCopy() *SGPInstanceProfileList { - if in == nil { - return nil - } - out := new(SGPInstanceProfileList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *SGPInstanceProfileList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *SGPoolingConfig) DeepCopyInto(out *SGPoolingConfig) { *out = *in @@ -10214,31 +10214,30 @@ func (in *SGPoolingConfigStatusPgBouncer) DeepCopy() *SGPoolingConfigStatusPgBou } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SGPostgesConfigList) DeepCopyInto(out *SGPostgesConfigList) { +func (in *SGPostgresConfig) DeepCopyInto(out *SGPostgresConfig) { *out = *in out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]SGPostgresConfig, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + if in.Status != nil { + in, out := &in.Status, &out.Status + *out = new(SGPostgresConfigStatus) + (*in).DeepCopyInto(*out) } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SGPostgesConfigList. -func (in *SGPostgesConfigList) DeepCopy() *SGPostgesConfigList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SGPostgresConfig. +func (in *SGPostgresConfig) DeepCopy() *SGPostgresConfig { if in == nil { return nil } - out := new(SGPostgesConfigList) + out := new(SGPostgresConfig) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *SGPostgesConfigList) DeepCopyObject() runtime.Object { +func (in *SGPostgresConfig) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -10246,30 +10245,31 @@ func (in *SGPostgesConfigList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SGPostgresConfig) DeepCopyInto(out *SGPostgresConfig) { +func (in *SGPostgresConfigList) DeepCopyInto(out *SGPostgresConfigList) { *out = *in out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - if in.Status != nil { - in, out := &in.Status, &out.Status - *out = new(SGPostgresConfigStatus) - (*in).DeepCopyInto(*out) + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]SGPostgresConfig, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SGPostgresConfig. -func (in *SGPostgresConfig) DeepCopy() *SGPostgresConfig { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SGPostgresConfigList. +func (in *SGPostgresConfigList) DeepCopy() *SGPostgresConfigList { if in == nil { return nil } - out := new(SGPostgresConfig) + out := new(SGPostgresConfigList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *SGPostgresConfig) DeepCopyObject() runtime.Object { +func (in *SGPostgresConfigList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c }