Skip to content

Commit

Permalink
OpenStack with pascal case (#15)
Browse files Browse the repository at this point in the history
It will be aligned with CAPO

Signed-off-by: Roman Hros <roman.hros@dnation.cloud>
  • Loading branch information
chess-knight authored Dec 19, 2023
1 parent fc32adf commit 1bf5835
Show file tree
Hide file tree
Showing 13 changed files with 163 additions and 163 deletions.
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/proposal.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 3 additions & 3 deletions PROJECT
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand All @@ -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"
26 changes: 13 additions & 13 deletions api/v1alpha1/openstackclusterstackrelease_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand All @@ -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{})
}
32 changes: 16 additions & 16 deletions api/v1alpha1/openstackclusterstackreleasetemplate_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,43 +23,43 @@ 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
}

//+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{})
}
26 changes: 13 additions & 13 deletions api/v1alpha1/openstacknodeimagerelease_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,42 +23,42 @@ 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
}

//+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{})
}
Loading

0 comments on commit 1bf5835

Please sign in to comment.