From 1bf5835d1c48801f2215254837693867d89a9ab2 Mon Sep 17 00:00:00 2001 From: Roman Hros Date: Tue, 19 Dec 2023 11:51:39 +0100 Subject: [PATCH] OpenStack with pascal case (#15) It will be aligned with CAPO Signed-off-by: Roman Hros --- .github/ISSUE_TEMPLATE/proposal.md | 4 +- PROJECT | 6 +- .../openstackclusterstackrelease_types.go | 26 ++-- ...nstackclusterstackreleasetemplate_types.go | 32 ++--- .../openstacknodeimagerelease_types.go | 26 ++-- api/v1alpha1/zz_generated.deepcopy.go | 122 +++++++++--------- cmd/main.go | 12 +- ...-k8s.io_openstackclusterstackreleases.yaml | 16 +-- ...openstackclusterstackreleasetemplates.yaml | 24 ++-- ...k.x-k8s.io_openstacknodeimagereleases.yaml | 16 +-- ...openstackclusterstackrelease_controller.go | 14 +- ...kclusterstackreleasetemplate_controller.go | 14 +- .../openstacknodeimagerelease_controller.go | 14 +- 13 files changed, 163 insertions(+), 163 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/proposal.md b/.github/ISSUE_TEMPLATE/proposal.md index 0a4b324c..c33eec55 100644 --- a/.github/ISSUE_TEMPLATE/proposal.md +++ b/.github/ISSUE_TEMPLATE/proposal.md @@ -22,10 +22,10 @@ As a [developer/user/operator] I would like to [high level description] for [rea **Contract changes [optional]** -[Describe contract changes between SCS Cluster Stack Provider Openstack controllers, if applicable.] +[Describe contract changes between SCS Cluster Stack Provider OpenStack controllers, if applicable.] **Data model changes [optional]** -[Describe contract changes between SCS Cluster Stack Provider Openstack controllers, if applicable.] +[Describe contract changes between SCS Cluster Stack Provider OpenStack controllers, if applicable.] /kind proposal diff --git a/PROJECT b/PROJECT index ee028d85..b7b64d5f 100644 --- a/PROJECT +++ b/PROJECT @@ -14,7 +14,7 @@ resources: controller: true domain: clusterstack.x-k8s.io group: infrastructure.clusterstack.x-k8s.io - kind: OpenstackClusterStackRelease + kind: OpenStackClusterStackRelease path: github.com/sovereignCloudStack/cluster-stack-provider-openstack/api/v1alpha1 version: v1alpha1 - api: @@ -23,7 +23,7 @@ resources: controller: true domain: clusterstack.x-k8s.io group: infrastructure.clusterstack.x-k8s.io - kind: OpenstackClusterStackReleaseTemplate + kind: OpenStackClusterStackReleaseTemplate path: github.com/sovereignCloudStack/cluster-stack-provider-openstack/api/v1alpha1 version: v1alpha1 - api: @@ -32,7 +32,7 @@ resources: controller: true domain: clusterstack.x-k8s.io group: infrastructure.clusterstack.x-k8s.io - kind: OpenstackNodeImageRelease + kind: OpenStackNodeImageRelease path: github.com/sovereignCloudStack/cluster-stack-provider-openstack/api/v1alpha1 version: v1alpha1 version: "3" diff --git a/api/v1alpha1/openstackclusterstackrelease_types.go b/api/v1alpha1/openstackclusterstackrelease_types.go index 758dd94e..9f514a3f 100644 --- a/api/v1alpha1/openstackclusterstackrelease_types.go +++ b/api/v1alpha1/openstackclusterstackrelease_types.go @@ -23,17 +23,17 @@ import ( // EDIT THIS FILE! THIS IS SCAFFOLDING FOR YOU TO OWN! // NOTE: json tags are required. Any new fields you add must have json tags for the fields to be serialized. -// OpenstackClusterStackReleaseSpec defines the desired state of OpenstackClusterStackRelease. -type OpenstackClusterStackReleaseSpec struct { +// OpenStackClusterStackReleaseSpec defines the desired state of OpenStackClusterStackRelease. +type OpenStackClusterStackReleaseSpec struct { // INSERT ADDITIONAL SPEC FIELDS - desired state of cluster // Important: Run "make" to regenerate code after modifying this file - // Foo is an example field of OpenstackClusterStackRelease. Edit openstackclusterstackrelease_types.go to remove/update + // Foo is an example field of OpenStackClusterStackRelease. Edit openstackclusterstackrelease_types.go to remove/update Foo string `json:"foo,omitempty"` } -// OpenstackClusterStackReleaseStatus defines the observed state of OpenstackClusterStackRelease. -type OpenstackClusterStackReleaseStatus struct { +// OpenStackClusterStackReleaseStatus defines the observed state of OpenStackClusterStackRelease. +type OpenStackClusterStackReleaseStatus struct { // +optional // +kubebuilder:default:=false Ready bool `json:"ready,omitempty"` @@ -43,24 +43,24 @@ type OpenstackClusterStackReleaseStatus struct { //+kubebuilder:subresource:status //+kubebuilder:printcolumn:name="Ready",type="boolean",JSONPath=".status.ready" -// OpenstackClusterStackRelease is the Schema for the openstackclusterstackreleases API. -type OpenstackClusterStackRelease struct { +// OpenStackClusterStackRelease is the Schema for the openstackclusterstackreleases API. +type OpenStackClusterStackRelease struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` - Spec OpenstackClusterStackReleaseSpec `json:"spec,omitempty"` - Status OpenstackClusterStackReleaseStatus `json:"status,omitempty"` + Spec OpenStackClusterStackReleaseSpec `json:"spec,omitempty"` + Status OpenStackClusterStackReleaseStatus `json:"status,omitempty"` } //+kubebuilder:object:root=true -// OpenstackClusterStackReleaseList contains a list of OpenstackClusterStackRelease. -type OpenstackClusterStackReleaseList struct { +// OpenStackClusterStackReleaseList contains a list of OpenStackClusterStackRelease. +type OpenStackClusterStackReleaseList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []OpenstackClusterStackRelease `json:"items"` + Items []OpenStackClusterStackRelease `json:"items"` } func init() { - SchemeBuilder.Register(&OpenstackClusterStackRelease{}, &OpenstackClusterStackReleaseList{}) + SchemeBuilder.Register(&OpenStackClusterStackRelease{}, &OpenStackClusterStackReleaseList{}) } diff --git a/api/v1alpha1/openstackclusterstackreleasetemplate_types.go b/api/v1alpha1/openstackclusterstackreleasetemplate_types.go index 2a225645..49936bdc 100644 --- a/api/v1alpha1/openstackclusterstackreleasetemplate_types.go +++ b/api/v1alpha1/openstackclusterstackreleasetemplate_types.go @@ -23,18 +23,18 @@ import ( // EDIT THIS FILE! THIS IS SCAFFOLDING FOR YOU TO OWN! // NOTE: json tags are required. Any new fields you add must have json tags for the fields to be serialized. -// OpenstackClusterStackReleaseTemplateSpec defines the desired state of OpenstackClusterStackReleaseTemplate. -type OpenstackClusterStackReleaseTemplateSpec struct { - Template OpenstackClusterStackReleaseTemplateResource `json:"template"` +// OpenStackClusterStackReleaseTemplateSpec defines the desired state of OpenStackClusterStackReleaseTemplate. +type OpenStackClusterStackReleaseTemplateSpec struct { + Template OpenStackClusterStackReleaseTemplateResource `json:"template"` } -// OpenstackClusterStackReleaseTemplateResource describes the data needed to create a OpenstackClusterStackRelease from a template. -type OpenstackClusterStackReleaseTemplateResource struct { - Spec OpenstackClusterStackReleaseSpec `json:"spec"` +// OpenStackClusterStackReleaseTemplateResource describes the data needed to create a OpenStackClusterStackRelease from a template. +type OpenStackClusterStackReleaseTemplateResource struct { + Spec OpenStackClusterStackReleaseSpec `json:"spec"` } -// OpenstackClusterStackReleaseTemplateStatus defines the observed state of OpenstackClusterStackReleaseTemplate. -type OpenstackClusterStackReleaseTemplateStatus struct { +// OpenStackClusterStackReleaseTemplateStatus defines the observed state of OpenStackClusterStackReleaseTemplate. +type OpenStackClusterStackReleaseTemplateStatus struct { // INSERT ADDITIONAL STATUS FIELD - define observed state of cluster // Important: Run "make" to regenerate code after modifying this file } @@ -42,24 +42,24 @@ type OpenstackClusterStackReleaseTemplateStatus struct { //+kubebuilder:object:root=true //+kubebuilder:subresource:status -// OpenstackClusterStackReleaseTemplate is the Schema for the openstackclusterstackreleasetemplates API. -type OpenstackClusterStackReleaseTemplate struct { +// OpenStackClusterStackReleaseTemplate is the Schema for the openstackclusterstackreleasetemplates API. +type OpenStackClusterStackReleaseTemplate struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` - Spec OpenstackClusterStackReleaseTemplateSpec `json:"spec,omitempty"` - Status OpenstackClusterStackReleaseTemplateStatus `json:"status,omitempty"` + Spec OpenStackClusterStackReleaseTemplateSpec `json:"spec,omitempty"` + Status OpenStackClusterStackReleaseTemplateStatus `json:"status,omitempty"` } //+kubebuilder:object:root=true -// OpenstackClusterStackReleaseTemplateList contains a list of OpenstackClusterStackReleaseTemplate. -type OpenstackClusterStackReleaseTemplateList struct { +// OpenStackClusterStackReleaseTemplateList contains a list of OpenStackClusterStackReleaseTemplate. +type OpenStackClusterStackReleaseTemplateList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []OpenstackClusterStackReleaseTemplate `json:"items"` + Items []OpenStackClusterStackReleaseTemplate `json:"items"` } func init() { - SchemeBuilder.Register(&OpenstackClusterStackReleaseTemplate{}, &OpenstackClusterStackReleaseTemplateList{}) + SchemeBuilder.Register(&OpenStackClusterStackReleaseTemplate{}, &OpenStackClusterStackReleaseTemplateList{}) } diff --git a/api/v1alpha1/openstacknodeimagerelease_types.go b/api/v1alpha1/openstacknodeimagerelease_types.go index 07675a33..58272ffd 100644 --- a/api/v1alpha1/openstacknodeimagerelease_types.go +++ b/api/v1alpha1/openstacknodeimagerelease_types.go @@ -23,17 +23,17 @@ import ( // EDIT THIS FILE! THIS IS SCAFFOLDING FOR YOU TO OWN! // NOTE: json tags are required. Any new fields you add must have json tags for the fields to be serialized. -// OpenstackNodeImageReleaseSpec defines the desired state of OpenstackNodeImageRelease. -type OpenstackNodeImageReleaseSpec struct { +// OpenStackNodeImageReleaseSpec defines the desired state of OpenStackNodeImageRelease. +type OpenStackNodeImageReleaseSpec struct { // INSERT ADDITIONAL SPEC FIELDS - desired state of cluster // Important: Run "make" to regenerate code after modifying this file - // Foo is an example field of OpenstackNodeImageRelease. Edit openstacknodeimagerelease_types.go to remove/update + // Foo is an example field of OpenStackNodeImageRelease. Edit openstacknodeimagerelease_types.go to remove/update Foo string `json:"foo,omitempty"` } -// OpenstackNodeImageReleaseStatus defines the observed state of OpenstackNodeImageRelease. -type OpenstackNodeImageReleaseStatus struct { +// OpenStackNodeImageReleaseStatus defines the observed state of OpenStackNodeImageRelease. +type OpenStackNodeImageReleaseStatus struct { // INSERT ADDITIONAL STATUS FIELD - define observed state of cluster // Important: Run "make" to regenerate code after modifying this file } @@ -41,24 +41,24 @@ type OpenstackNodeImageReleaseStatus struct { //+kubebuilder:object:root=true //+kubebuilder:subresource:status -// OpenstackNodeImageRelease is the Schema for the openstacknodeimagereleases API. -type OpenstackNodeImageRelease struct { +// OpenStackNodeImageRelease is the Schema for the openstacknodeimagereleases API. +type OpenStackNodeImageRelease struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` - Spec OpenstackNodeImageReleaseSpec `json:"spec,omitempty"` - Status OpenstackNodeImageReleaseStatus `json:"status,omitempty"` + Spec OpenStackNodeImageReleaseSpec `json:"spec,omitempty"` + Status OpenStackNodeImageReleaseStatus `json:"status,omitempty"` } //+kubebuilder:object:root=true -// OpenstackNodeImageReleaseList contains a list of OpenstackNodeImageRelease. -type OpenstackNodeImageReleaseList struct { +// OpenStackNodeImageReleaseList contains a list of OpenStackNodeImageRelease. +type OpenStackNodeImageReleaseList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` - Items []OpenstackNodeImageRelease `json:"items"` + Items []OpenStackNodeImageRelease `json:"items"` } func init() { - SchemeBuilder.Register(&OpenstackNodeImageRelease{}, &OpenstackNodeImageReleaseList{}) + SchemeBuilder.Register(&OpenStackNodeImageRelease{}, &OpenStackNodeImageReleaseList{}) } diff --git a/api/v1alpha1/zz_generated.deepcopy.go b/api/v1alpha1/zz_generated.deepcopy.go index 1dbcf1b2..904b458a 100644 --- a/api/v1alpha1/zz_generated.deepcopy.go +++ b/api/v1alpha1/zz_generated.deepcopy.go @@ -25,7 +25,7 @@ import ( ) // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *OpenstackClusterStackRelease) DeepCopyInto(out *OpenstackClusterStackRelease) { +func (in *OpenStackClusterStackRelease) DeepCopyInto(out *OpenStackClusterStackRelease) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) @@ -33,18 +33,18 @@ func (in *OpenstackClusterStackRelease) DeepCopyInto(out *OpenstackClusterStackR out.Status = in.Status } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OpenstackClusterStackRelease. -func (in *OpenstackClusterStackRelease) DeepCopy() *OpenstackClusterStackRelease { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OpenStackClusterStackRelease. +func (in *OpenStackClusterStackRelease) DeepCopy() *OpenStackClusterStackRelease { if in == nil { return nil } - out := new(OpenstackClusterStackRelease) + out := new(OpenStackClusterStackRelease) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *OpenstackClusterStackRelease) DeepCopyObject() runtime.Object { +func (in *OpenStackClusterStackRelease) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -52,31 +52,31 @@ func (in *OpenstackClusterStackRelease) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *OpenstackClusterStackReleaseList) DeepCopyInto(out *OpenstackClusterStackReleaseList) { +func (in *OpenStackClusterStackReleaseList) DeepCopyInto(out *OpenStackClusterStackReleaseList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]OpenstackClusterStackRelease, len(*in)) + *out = make([]OpenStackClusterStackRelease, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OpenstackClusterStackReleaseList. -func (in *OpenstackClusterStackReleaseList) DeepCopy() *OpenstackClusterStackReleaseList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OpenStackClusterStackReleaseList. +func (in *OpenStackClusterStackReleaseList) DeepCopy() *OpenStackClusterStackReleaseList { if in == nil { return nil } - out := new(OpenstackClusterStackReleaseList) + out := new(OpenStackClusterStackReleaseList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *OpenstackClusterStackReleaseList) DeepCopyObject() runtime.Object { +func (in *OpenStackClusterStackReleaseList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -84,37 +84,37 @@ func (in *OpenstackClusterStackReleaseList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *OpenstackClusterStackReleaseSpec) DeepCopyInto(out *OpenstackClusterStackReleaseSpec) { +func (in *OpenStackClusterStackReleaseSpec) DeepCopyInto(out *OpenStackClusterStackReleaseSpec) { *out = *in } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OpenstackClusterStackReleaseSpec. -func (in *OpenstackClusterStackReleaseSpec) DeepCopy() *OpenstackClusterStackReleaseSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OpenStackClusterStackReleaseSpec. +func (in *OpenStackClusterStackReleaseSpec) DeepCopy() *OpenStackClusterStackReleaseSpec { if in == nil { return nil } - out := new(OpenstackClusterStackReleaseSpec) + out := new(OpenStackClusterStackReleaseSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *OpenstackClusterStackReleaseStatus) DeepCopyInto(out *OpenstackClusterStackReleaseStatus) { +func (in *OpenStackClusterStackReleaseStatus) DeepCopyInto(out *OpenStackClusterStackReleaseStatus) { *out = *in } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OpenstackClusterStackReleaseStatus. -func (in *OpenstackClusterStackReleaseStatus) DeepCopy() *OpenstackClusterStackReleaseStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OpenStackClusterStackReleaseStatus. +func (in *OpenStackClusterStackReleaseStatus) DeepCopy() *OpenStackClusterStackReleaseStatus { if in == nil { return nil } - out := new(OpenstackClusterStackReleaseStatus) + out := new(OpenStackClusterStackReleaseStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *OpenstackClusterStackReleaseTemplate) DeepCopyInto(out *OpenstackClusterStackReleaseTemplate) { +func (in *OpenStackClusterStackReleaseTemplate) DeepCopyInto(out *OpenStackClusterStackReleaseTemplate) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) @@ -122,18 +122,18 @@ func (in *OpenstackClusterStackReleaseTemplate) DeepCopyInto(out *OpenstackClust out.Status = in.Status } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OpenstackClusterStackReleaseTemplate. -func (in *OpenstackClusterStackReleaseTemplate) DeepCopy() *OpenstackClusterStackReleaseTemplate { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OpenStackClusterStackReleaseTemplate. +func (in *OpenStackClusterStackReleaseTemplate) DeepCopy() *OpenStackClusterStackReleaseTemplate { if in == nil { return nil } - out := new(OpenstackClusterStackReleaseTemplate) + out := new(OpenStackClusterStackReleaseTemplate) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *OpenstackClusterStackReleaseTemplate) DeepCopyObject() runtime.Object { +func (in *OpenStackClusterStackReleaseTemplate) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -141,31 +141,31 @@ func (in *OpenstackClusterStackReleaseTemplate) DeepCopyObject() runtime.Object } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *OpenstackClusterStackReleaseTemplateList) DeepCopyInto(out *OpenstackClusterStackReleaseTemplateList) { +func (in *OpenStackClusterStackReleaseTemplateList) DeepCopyInto(out *OpenStackClusterStackReleaseTemplateList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]OpenstackClusterStackReleaseTemplate, len(*in)) + *out = make([]OpenStackClusterStackReleaseTemplate, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OpenstackClusterStackReleaseTemplateList. -func (in *OpenstackClusterStackReleaseTemplateList) DeepCopy() *OpenstackClusterStackReleaseTemplateList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OpenStackClusterStackReleaseTemplateList. +func (in *OpenStackClusterStackReleaseTemplateList) DeepCopy() *OpenStackClusterStackReleaseTemplateList { if in == nil { return nil } - out := new(OpenstackClusterStackReleaseTemplateList) + out := new(OpenStackClusterStackReleaseTemplateList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *OpenstackClusterStackReleaseTemplateList) DeepCopyObject() runtime.Object { +func (in *OpenStackClusterStackReleaseTemplateList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -173,54 +173,54 @@ func (in *OpenstackClusterStackReleaseTemplateList) DeepCopyObject() runtime.Obj } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *OpenstackClusterStackReleaseTemplateResource) DeepCopyInto(out *OpenstackClusterStackReleaseTemplateResource) { +func (in *OpenStackClusterStackReleaseTemplateResource) DeepCopyInto(out *OpenStackClusterStackReleaseTemplateResource) { *out = *in out.Spec = in.Spec } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OpenstackClusterStackReleaseTemplateResource. -func (in *OpenstackClusterStackReleaseTemplateResource) DeepCopy() *OpenstackClusterStackReleaseTemplateResource { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OpenStackClusterStackReleaseTemplateResource. +func (in *OpenStackClusterStackReleaseTemplateResource) DeepCopy() *OpenStackClusterStackReleaseTemplateResource { if in == nil { return nil } - out := new(OpenstackClusterStackReleaseTemplateResource) + out := new(OpenStackClusterStackReleaseTemplateResource) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *OpenstackClusterStackReleaseTemplateSpec) DeepCopyInto(out *OpenstackClusterStackReleaseTemplateSpec) { +func (in *OpenStackClusterStackReleaseTemplateSpec) DeepCopyInto(out *OpenStackClusterStackReleaseTemplateSpec) { *out = *in out.Template = in.Template } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OpenstackClusterStackReleaseTemplateSpec. -func (in *OpenstackClusterStackReleaseTemplateSpec) DeepCopy() *OpenstackClusterStackReleaseTemplateSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OpenStackClusterStackReleaseTemplateSpec. +func (in *OpenStackClusterStackReleaseTemplateSpec) DeepCopy() *OpenStackClusterStackReleaseTemplateSpec { if in == nil { return nil } - out := new(OpenstackClusterStackReleaseTemplateSpec) + out := new(OpenStackClusterStackReleaseTemplateSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *OpenstackClusterStackReleaseTemplateStatus) DeepCopyInto(out *OpenstackClusterStackReleaseTemplateStatus) { +func (in *OpenStackClusterStackReleaseTemplateStatus) DeepCopyInto(out *OpenStackClusterStackReleaseTemplateStatus) { *out = *in } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OpenstackClusterStackReleaseTemplateStatus. -func (in *OpenstackClusterStackReleaseTemplateStatus) DeepCopy() *OpenstackClusterStackReleaseTemplateStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OpenStackClusterStackReleaseTemplateStatus. +func (in *OpenStackClusterStackReleaseTemplateStatus) DeepCopy() *OpenStackClusterStackReleaseTemplateStatus { if in == nil { return nil } - out := new(OpenstackClusterStackReleaseTemplateStatus) + out := new(OpenStackClusterStackReleaseTemplateStatus) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *OpenstackNodeImageRelease) DeepCopyInto(out *OpenstackNodeImageRelease) { +func (in *OpenStackNodeImageRelease) DeepCopyInto(out *OpenStackNodeImageRelease) { *out = *in out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) @@ -228,18 +228,18 @@ func (in *OpenstackNodeImageRelease) DeepCopyInto(out *OpenstackNodeImageRelease out.Status = in.Status } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OpenstackNodeImageRelease. -func (in *OpenstackNodeImageRelease) DeepCopy() *OpenstackNodeImageRelease { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OpenStackNodeImageRelease. +func (in *OpenStackNodeImageRelease) DeepCopy() *OpenStackNodeImageRelease { if in == nil { return nil } - out := new(OpenstackNodeImageRelease) + out := new(OpenStackNodeImageRelease) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *OpenstackNodeImageRelease) DeepCopyObject() runtime.Object { +func (in *OpenStackNodeImageRelease) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -247,31 +247,31 @@ func (in *OpenstackNodeImageRelease) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *OpenstackNodeImageReleaseList) DeepCopyInto(out *OpenstackNodeImageReleaseList) { +func (in *OpenStackNodeImageReleaseList) DeepCopyInto(out *OpenStackNodeImageReleaseList) { *out = *in out.TypeMeta = in.TypeMeta in.ListMeta.DeepCopyInto(&out.ListMeta) if in.Items != nil { in, out := &in.Items, &out.Items - *out = make([]OpenstackNodeImageRelease, len(*in)) + *out = make([]OpenStackNodeImageRelease, len(*in)) for i := range *in { (*in)[i].DeepCopyInto(&(*out)[i]) } } } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OpenstackNodeImageReleaseList. -func (in *OpenstackNodeImageReleaseList) DeepCopy() *OpenstackNodeImageReleaseList { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OpenStackNodeImageReleaseList. +func (in *OpenStackNodeImageReleaseList) DeepCopy() *OpenStackNodeImageReleaseList { if in == nil { return nil } - out := new(OpenstackNodeImageReleaseList) + out := new(OpenStackNodeImageReleaseList) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *OpenstackNodeImageReleaseList) DeepCopyObject() runtime.Object { +func (in *OpenStackNodeImageReleaseList) DeepCopyObject() runtime.Object { if c := in.DeepCopy(); c != nil { return c } @@ -279,31 +279,31 @@ func (in *OpenstackNodeImageReleaseList) DeepCopyObject() runtime.Object { } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *OpenstackNodeImageReleaseSpec) DeepCopyInto(out *OpenstackNodeImageReleaseSpec) { +func (in *OpenStackNodeImageReleaseSpec) DeepCopyInto(out *OpenStackNodeImageReleaseSpec) { *out = *in } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OpenstackNodeImageReleaseSpec. -func (in *OpenstackNodeImageReleaseSpec) DeepCopy() *OpenstackNodeImageReleaseSpec { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OpenStackNodeImageReleaseSpec. +func (in *OpenStackNodeImageReleaseSpec) DeepCopy() *OpenStackNodeImageReleaseSpec { if in == nil { return nil } - out := new(OpenstackNodeImageReleaseSpec) + out := new(OpenStackNodeImageReleaseSpec) in.DeepCopyInto(out) return out } // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *OpenstackNodeImageReleaseStatus) DeepCopyInto(out *OpenstackNodeImageReleaseStatus) { +func (in *OpenStackNodeImageReleaseStatus) DeepCopyInto(out *OpenStackNodeImageReleaseStatus) { *out = *in } -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OpenstackNodeImageReleaseStatus. -func (in *OpenstackNodeImageReleaseStatus) DeepCopy() *OpenstackNodeImageReleaseStatus { +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OpenStackNodeImageReleaseStatus. +func (in *OpenStackNodeImageReleaseStatus) DeepCopy() *OpenStackNodeImageReleaseStatus { if in == nil { return nil } - out := new(OpenstackNodeImageReleaseStatus) + out := new(OpenStackNodeImageReleaseStatus) in.DeepCopyInto(out) return out } diff --git a/cmd/main.go b/cmd/main.go index b4ef321e..d7d1ed54 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -87,25 +87,25 @@ func main() { os.Exit(1) } - if err = (&controller.OpenstackClusterStackReleaseReconciler{ + if err = (&controller.OpenStackClusterStackReleaseReconciler{ Client: mgr.GetClient(), Scheme: mgr.GetScheme(), }).SetupWithManager(mgr); err != nil { - setupLog.Error(err, "unable to create controller", "controller", "OpenstackClusterStackRelease") + setupLog.Error(err, "unable to create controller", "controller", "OpenStackClusterStackRelease") os.Exit(1) } - if err = (&controller.OpenstackClusterStackReleaseTemplateReconciler{ + if err = (&controller.OpenStackClusterStackReleaseTemplateReconciler{ Client: mgr.GetClient(), Scheme: mgr.GetScheme(), }).SetupWithManager(mgr); err != nil { - setupLog.Error(err, "unable to create controller", "controller", "OpenstackClusterStackReleaseTemplate") + setupLog.Error(err, "unable to create controller", "controller", "OpenStackClusterStackReleaseTemplate") os.Exit(1) } - if err = (&controller.OpenstackNodeImageReleaseReconciler{ + if err = (&controller.OpenStackNodeImageReleaseReconciler{ Client: mgr.GetClient(), Scheme: mgr.GetScheme(), }).SetupWithManager(mgr); err != nil { - setupLog.Error(err, "unable to create controller", "controller", "OpenstackNodeImageRelease") + setupLog.Error(err, "unable to create controller", "controller", "OpenStackNodeImageRelease") os.Exit(1) } //+kubebuilder:scaffold:builder diff --git a/config/crd/bases/infrastructure.clusterstack.x-k8s.io_openstackclusterstackreleases.yaml b/config/crd/bases/infrastructure.clusterstack.x-k8s.io_openstackclusterstackreleases.yaml index 1c81a35e..e5c81f85 100644 --- a/config/crd/bases/infrastructure.clusterstack.x-k8s.io_openstackclusterstackreleases.yaml +++ b/config/crd/bases/infrastructure.clusterstack.x-k8s.io_openstackclusterstackreleases.yaml @@ -8,8 +8,8 @@ metadata: spec: group: infrastructure.clusterstack.x-k8s.io names: - kind: OpenstackClusterStackRelease - listKind: OpenstackClusterStackReleaseList + kind: OpenStackClusterStackRelease + listKind: OpenStackClusterStackReleaseList plural: openstackclusterstackreleases singular: openstackclusterstackrelease scope: Namespaced @@ -21,7 +21,7 @@ spec: name: v1alpha1 schema: openAPIV3Schema: - description: OpenstackClusterStackRelease is the Schema for the openstackclusterstackreleases + description: OpenStackClusterStackRelease is the Schema for the openstackclusterstackreleases API. properties: apiVersion: @@ -37,17 +37,17 @@ spec: metadata: type: object spec: - description: OpenstackClusterStackReleaseSpec defines the desired state - of OpenstackClusterStackRelease. + description: OpenStackClusterStackReleaseSpec defines the desired state + of OpenStackClusterStackRelease. properties: foo: - description: Foo is an example field of OpenstackClusterStackRelease. + description: Foo is an example field of OpenStackClusterStackRelease. Edit openstackclusterstackrelease_types.go to remove/update type: string type: object status: - description: OpenstackClusterStackReleaseStatus defines the observed state - of OpenstackClusterStackRelease. + description: OpenStackClusterStackReleaseStatus defines the observed state + of OpenStackClusterStackRelease. properties: ready: default: false diff --git a/config/crd/bases/infrastructure.clusterstack.x-k8s.io_openstackclusterstackreleasetemplates.yaml b/config/crd/bases/infrastructure.clusterstack.x-k8s.io_openstackclusterstackreleasetemplates.yaml index 32e4dc72..08c88397 100644 --- a/config/crd/bases/infrastructure.clusterstack.x-k8s.io_openstackclusterstackreleasetemplates.yaml +++ b/config/crd/bases/infrastructure.clusterstack.x-k8s.io_openstackclusterstackreleasetemplates.yaml @@ -8,8 +8,8 @@ metadata: spec: group: infrastructure.clusterstack.x-k8s.io names: - kind: OpenstackClusterStackReleaseTemplate - listKind: OpenstackClusterStackReleaseTemplateList + kind: OpenStackClusterStackReleaseTemplate + listKind: OpenStackClusterStackReleaseTemplateList plural: openstackclusterstackreleasetemplates singular: openstackclusterstackreleasetemplate scope: Namespaced @@ -17,7 +17,7 @@ spec: - name: v1alpha1 schema: openAPIV3Schema: - description: OpenstackClusterStackReleaseTemplate is the Schema for the openstackclusterstackreleasetemplates + description: OpenStackClusterStackReleaseTemplate is the Schema for the openstackclusterstackreleasetemplates API. properties: apiVersion: @@ -33,20 +33,20 @@ spec: metadata: type: object spec: - description: OpenstackClusterStackReleaseTemplateSpec defines the desired - state of OpenstackClusterStackReleaseTemplate. + description: OpenStackClusterStackReleaseTemplateSpec defines the desired + state of OpenStackClusterStackReleaseTemplate. properties: template: - description: OpenstackClusterStackReleaseTemplateResource describes - the data needed to create a OpenstackClusterStackRelease from a + description: OpenStackClusterStackReleaseTemplateResource describes + the data needed to create a OpenStackClusterStackRelease from a template. properties: spec: - description: OpenstackClusterStackReleaseSpec defines the desired - state of OpenstackClusterStackRelease. + description: OpenStackClusterStackReleaseSpec defines the desired + state of OpenStackClusterStackRelease. properties: foo: - description: Foo is an example field of OpenstackClusterStackRelease. + description: Foo is an example field of OpenStackClusterStackRelease. Edit openstackclusterstackrelease_types.go to remove/update type: string type: object @@ -57,8 +57,8 @@ spec: - template type: object status: - description: OpenstackClusterStackReleaseTemplateStatus defines the observed - state of OpenstackClusterStackReleaseTemplate. + description: OpenStackClusterStackReleaseTemplateStatus defines the observed + state of OpenStackClusterStackReleaseTemplate. type: object type: object served: true diff --git a/config/crd/bases/infrastructure.clusterstack.x-k8s.io_openstacknodeimagereleases.yaml b/config/crd/bases/infrastructure.clusterstack.x-k8s.io_openstacknodeimagereleases.yaml index 51ccf4f6..40c7394b 100644 --- a/config/crd/bases/infrastructure.clusterstack.x-k8s.io_openstacknodeimagereleases.yaml +++ b/config/crd/bases/infrastructure.clusterstack.x-k8s.io_openstacknodeimagereleases.yaml @@ -8,8 +8,8 @@ metadata: spec: group: infrastructure.clusterstack.x-k8s.io names: - kind: OpenstackNodeImageRelease - listKind: OpenstackNodeImageReleaseList + kind: OpenStackNodeImageRelease + listKind: OpenStackNodeImageReleaseList plural: openstacknodeimagereleases singular: openstacknodeimagerelease scope: Namespaced @@ -17,7 +17,7 @@ spec: - name: v1alpha1 schema: openAPIV3Schema: - description: OpenstackNodeImageRelease is the Schema for the openstacknodeimagereleases + description: OpenStackNodeImageRelease is the Schema for the openstacknodeimagereleases API. properties: apiVersion: @@ -33,17 +33,17 @@ spec: metadata: type: object spec: - description: OpenstackNodeImageReleaseSpec defines the desired state of - OpenstackNodeImageRelease. + description: OpenStackNodeImageReleaseSpec defines the desired state of + OpenStackNodeImageRelease. properties: foo: - description: Foo is an example field of OpenstackNodeImageRelease. + description: Foo is an example field of OpenStackNodeImageRelease. Edit openstacknodeimagerelease_types.go to remove/update type: string type: object status: - description: OpenstackNodeImageReleaseStatus defines the observed state - of OpenstackNodeImageRelease. + description: OpenStackNodeImageReleaseStatus defines the observed state + of OpenStackNodeImageRelease. type: object type: object served: true diff --git a/internal/controller/openstackclusterstackrelease_controller.go b/internal/controller/openstackclusterstackrelease_controller.go index 08a5b489..03d8cad3 100644 --- a/internal/controller/openstackclusterstackrelease_controller.go +++ b/internal/controller/openstackclusterstackrelease_controller.go @@ -26,8 +26,8 @@ import ( "sigs.k8s.io/controller-runtime/pkg/log" ) -// OpenstackClusterStackReleaseReconciler reconciles a OpenstackClusterStackRelease object. -type OpenstackClusterStackReleaseReconciler struct { +// OpenStackClusterStackReleaseReconciler reconciles a OpenStackClusterStackRelease object. +type OpenStackClusterStackReleaseReconciler struct { client.Client Scheme *runtime.Scheme } @@ -39,16 +39,16 @@ type OpenstackClusterStackReleaseReconciler struct { // Reconcile is part of the main kubernetes reconciliation loop which aims to // move the current state of the cluster closer to the desired state. // TODO(user): Modify the Reconcile function to compare the state specified by -// the OpenstackClusterStackRelease object against the actual cluster state, and then +// the OpenStackClusterStackRelease object against the actual cluster state, and then // perform operations to make the cluster state reflect the state specified by // the user. // // For more details, check Reconcile and its Result here: // - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.16.3/pkg/reconcile -func (r *OpenstackClusterStackReleaseReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error) { +func (r *OpenStackClusterStackReleaseReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error) { _ = log.FromContext(ctx) - openstackclusterstackrelease := &infrav1alpha1.OpenstackClusterStackRelease{} + openstackclusterstackrelease := &infrav1alpha1.OpenStackClusterStackRelease{} _ = r.Client.Get(ctx, req.NamespacedName, openstackclusterstackrelease) // TODO(user): your logic here @@ -57,8 +57,8 @@ func (r *OpenstackClusterStackReleaseReconciler) Reconcile(ctx context.Context, } // SetupWithManager sets up the controller with the Manager. -func (r *OpenstackClusterStackReleaseReconciler) SetupWithManager(mgr ctrl.Manager) error { +func (r *OpenStackClusterStackReleaseReconciler) SetupWithManager(mgr ctrl.Manager) error { return ctrl.NewControllerManagedBy(mgr). - For(&infrav1alpha1.OpenstackClusterStackRelease{}). + For(&infrav1alpha1.OpenStackClusterStackRelease{}). Complete(r) } diff --git a/internal/controller/openstackclusterstackreleasetemplate_controller.go b/internal/controller/openstackclusterstackreleasetemplate_controller.go index fbb5a910..24b24780 100644 --- a/internal/controller/openstackclusterstackreleasetemplate_controller.go +++ b/internal/controller/openstackclusterstackreleasetemplate_controller.go @@ -26,8 +26,8 @@ import ( "sigs.k8s.io/controller-runtime/pkg/log" ) -// OpenstackClusterStackReleaseTemplateReconciler reconciles a OpenstackClusterStackReleaseTemplate object. -type OpenstackClusterStackReleaseTemplateReconciler struct { +// OpenStackClusterStackReleaseTemplateReconciler reconciles a OpenStackClusterStackReleaseTemplate object. +type OpenStackClusterStackReleaseTemplateReconciler struct { client.Client Scheme *runtime.Scheme } @@ -39,24 +39,24 @@ type OpenstackClusterStackReleaseTemplateReconciler struct { // Reconcile is part of the main kubernetes reconciliation loop which aims to // move the current state of the cluster closer to the desired state. // TODO(user): Modify the Reconcile function to compare the state specified by -// the OpenstackClusterStackReleaseTemplate object against the actual cluster state, and then +// the OpenStackClusterStackReleaseTemplate object against the actual cluster state, and then // perform operations to make the cluster state reflect the state specified by // the user. // // For more details, check Reconcile and its Result here: // - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.16.3/pkg/reconcile -func (r *OpenstackClusterStackReleaseTemplateReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error) { +func (r *OpenStackClusterStackReleaseTemplateReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error) { _ = log.FromContext(ctx) - openstackclusterstackreleasetemplate := &infrav1alpha1.OpenstackClusterStackReleaseTemplate{} + openstackclusterstackreleasetemplate := &infrav1alpha1.OpenStackClusterStackReleaseTemplate{} _ = r.Client.Get(ctx, req.NamespacedName, openstackclusterstackreleasetemplate) return ctrl.Result{}, nil } // SetupWithManager sets up the controller with the Manager. -func (r *OpenstackClusterStackReleaseTemplateReconciler) SetupWithManager(mgr ctrl.Manager) error { +func (r *OpenStackClusterStackReleaseTemplateReconciler) SetupWithManager(mgr ctrl.Manager) error { return ctrl.NewControllerManagedBy(mgr). - For(&infrav1alpha1.OpenstackClusterStackReleaseTemplate{}). + For(&infrav1alpha1.OpenStackClusterStackReleaseTemplate{}). Complete(r) } diff --git a/internal/controller/openstacknodeimagerelease_controller.go b/internal/controller/openstacknodeimagerelease_controller.go index f9a88ef4..f7c4b48d 100644 --- a/internal/controller/openstacknodeimagerelease_controller.go +++ b/internal/controller/openstacknodeimagerelease_controller.go @@ -27,8 +27,8 @@ import ( "sigs.k8s.io/controller-runtime/pkg/log" ) -// OpenstackNodeImageReleaseReconciler reconciles a OpenstackNodeImageRelease object. -type OpenstackNodeImageReleaseReconciler struct { +// OpenStackNodeImageReleaseReconciler reconciles a OpenStackNodeImageRelease object. +type OpenStackNodeImageReleaseReconciler struct { client.Client Scheme *runtime.Scheme } @@ -40,24 +40,24 @@ type OpenstackNodeImageReleaseReconciler struct { // Reconcile is part of the main kubernetes reconciliation loop which aims to // move the current state of the cluster closer to the desired state. // TODO(user): Modify the Reconcile function to compare the state specified by -// the OpenstackNodeImageRelease object against the actual cluster state, and then +// the OpenStackNodeImageRelease object against the actual cluster state, and then // perform operations to make the cluster state reflect the state specified by // the user. // // For more details, check Reconcile and its Result here: // - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.16.3/pkg/reconcile -func (r *OpenstackNodeImageReleaseReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error) { +func (r *OpenStackNodeImageReleaseReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error) { _ = log.FromContext(ctx) - openstacknodeimagerelease := infrav1alpha1.OpenstackNodeImageRelease{} + openstacknodeimagerelease := infrav1alpha1.OpenStackNodeImageRelease{} _ = r.Client.Get(ctx, req.NamespacedName, &openstacknodeimagerelease) return ctrl.Result{}, nil } // SetupWithManager sets up the controller with the Manager. -func (r *OpenstackNodeImageReleaseReconciler) SetupWithManager(mgr ctrl.Manager) error { +func (r *OpenStackNodeImageReleaseReconciler) SetupWithManager(mgr ctrl.Manager) error { return ctrl.NewControllerManagedBy(mgr). - For(&infrav1alpha1.OpenstackNodeImageRelease{}). + For(&infrav1alpha1.OpenStackNodeImageRelease{}). Complete(r) }