diff --git a/api/v1alpha1/zz_generated.flavor-resource.go b/api/v1alpha1/zz_generated.flavor-resource.go index 2171e855..3820e354 100644 --- a/api/v1alpha1/zz_generated.flavor-resource.go +++ b/api/v1alpha1/zz_generated.flavor-resource.go @@ -118,6 +118,7 @@ func (i *Flavor) GetConditions() []metav1.Condition { // +genclient // +kubebuilder:object:root=true +// +kubebuilder:resource:categories=openstack // +kubebuilder:subresource:status // +kubebuilder:printcolumn:name="ID",type="string",JSONPath=".status.id",description="Resource ID" // +kubebuilder:printcolumn:name="Available",type="string",JSONPath=".status.conditions[?(@.type=='Available')].status",description="Availability status of resource" diff --git a/api/v1alpha1/zz_generated.image-resource.go b/api/v1alpha1/zz_generated.image-resource.go index 87089b93..031bb1ab 100644 --- a/api/v1alpha1/zz_generated.image-resource.go +++ b/api/v1alpha1/zz_generated.image-resource.go @@ -121,6 +121,7 @@ func (i *Image) GetConditions() []metav1.Condition { // +genclient // +kubebuilder:object:root=true +// +kubebuilder:resource:categories=openstack // +kubebuilder:subresource:status // +kubebuilder:printcolumn:name="ID",type="string",JSONPath=".status.id",description="Resource ID" // +kubebuilder:printcolumn:name="Available",type="string",JSONPath=".status.conditions[?(@.type=='Available')].status",description="Availability status of resource" diff --git a/api/v1alpha1/zz_generated.network-resource.go b/api/v1alpha1/zz_generated.network-resource.go index 922527f5..3f05cccf 100644 --- a/api/v1alpha1/zz_generated.network-resource.go +++ b/api/v1alpha1/zz_generated.network-resource.go @@ -118,6 +118,7 @@ func (i *Network) GetConditions() []metav1.Condition { // +genclient // +kubebuilder:object:root=true +// +kubebuilder:resource:categories=openstack // +kubebuilder:subresource:status // +kubebuilder:printcolumn:name="ID",type="string",JSONPath=".status.id",description="Resource ID" // +kubebuilder:printcolumn:name="Available",type="string",JSONPath=".status.conditions[?(@.type=='Available')].status",description="Availability status of resource" diff --git a/api/v1alpha1/zz_generated.port-resource.go b/api/v1alpha1/zz_generated.port-resource.go index bdcf76d6..2a7a9608 100644 --- a/api/v1alpha1/zz_generated.port-resource.go +++ b/api/v1alpha1/zz_generated.port-resource.go @@ -120,6 +120,7 @@ func (i *Port) GetConditions() []metav1.Condition { // +genclient // +kubebuilder:object:root=true +// +kubebuilder:resource:categories=openstack // +kubebuilder:subresource:status // +kubebuilder:printcolumn:name="ID",type="string",JSONPath=".status.id",description="Resource ID" // +kubebuilder:printcolumn:name="Available",type="string",JSONPath=".status.conditions[?(@.type=='Available')].status",description="Availability status of resource" diff --git a/api/v1alpha1/zz_generated.router-resource.go b/api/v1alpha1/zz_generated.router-resource.go index 9eb87208..ecd6f86d 100644 --- a/api/v1alpha1/zz_generated.router-resource.go +++ b/api/v1alpha1/zz_generated.router-resource.go @@ -118,6 +118,7 @@ func (i *Router) GetConditions() []metav1.Condition { // +genclient // +kubebuilder:object:root=true +// +kubebuilder:resource:categories=openstack // +kubebuilder:subresource:status // +kubebuilder:printcolumn:name="ID",type="string",JSONPath=".status.id",description="Resource ID" // +kubebuilder:printcolumn:name="Available",type="string",JSONPath=".status.conditions[?(@.type=='Available')].status",description="Availability status of resource" diff --git a/api/v1alpha1/zz_generated.securitygroup-resource.go b/api/v1alpha1/zz_generated.securitygroup-resource.go index f4ac3a19..3c4a8eea 100644 --- a/api/v1alpha1/zz_generated.securitygroup-resource.go +++ b/api/v1alpha1/zz_generated.securitygroup-resource.go @@ -118,6 +118,7 @@ func (i *SecurityGroup) GetConditions() []metav1.Condition { // +genclient // +kubebuilder:object:root=true +// +kubebuilder:resource:categories=openstack // +kubebuilder:subresource:status // +kubebuilder:printcolumn:name="ID",type="string",JSONPath=".status.id",description="Resource ID" // +kubebuilder:printcolumn:name="Available",type="string",JSONPath=".status.conditions[?(@.type=='Available')].status",description="Availability status of resource" diff --git a/api/v1alpha1/zz_generated.server-resource.go b/api/v1alpha1/zz_generated.server-resource.go index 69c3a4a2..b98e861a 100644 --- a/api/v1alpha1/zz_generated.server-resource.go +++ b/api/v1alpha1/zz_generated.server-resource.go @@ -118,6 +118,7 @@ func (i *Server) GetConditions() []metav1.Condition { // +genclient // +kubebuilder:object:root=true +// +kubebuilder:resource:categories=openstack // +kubebuilder:subresource:status // +kubebuilder:printcolumn:name="ID",type="string",JSONPath=".status.id",description="Resource ID" // +kubebuilder:printcolumn:name="Available",type="string",JSONPath=".status.conditions[?(@.type=='Available')].status",description="Availability status of resource" diff --git a/api/v1alpha1/zz_generated.subnet-resource.go b/api/v1alpha1/zz_generated.subnet-resource.go index 49ee8527..3ce133a0 100644 --- a/api/v1alpha1/zz_generated.subnet-resource.go +++ b/api/v1alpha1/zz_generated.subnet-resource.go @@ -120,6 +120,7 @@ func (i *Subnet) GetConditions() []metav1.Condition { // +genclient // +kubebuilder:object:root=true +// +kubebuilder:resource:categories=openstack // +kubebuilder:subresource:status // +kubebuilder:printcolumn:name="ID",type="string",JSONPath=".status.id",description="Resource ID" // +kubebuilder:printcolumn:name="Available",type="string",JSONPath=".status.conditions[?(@.type=='Available')].status",description="Availability status of resource" diff --git a/cmd/resource-generator/data/api.template b/cmd/resource-generator/data/api.template index 90be945d..e6ae5033 100644 --- a/cmd/resource-generator/data/api.template +++ b/cmd/resource-generator/data/api.template @@ -127,6 +127,7 @@ func (i *{{ .Name }}) GetConditions() []metav1.Condition { // +genclient // +kubebuilder:object:root=true +// +kubebuilder:resource:categories=openstack // +kubebuilder:subresource:status // +kubebuilder:printcolumn:name="ID",type="string",JSONPath=".status.id",description="Resource ID" // +kubebuilder:printcolumn:name="Available",type="string",JSONPath=".status.conditions[?(@.type=='Available')].status",description="Availability status of resource" diff --git a/config/crd/bases/openstack.k-orc.cloud_flavors.yaml b/config/crd/bases/openstack.k-orc.cloud_flavors.yaml index 1f92cf74..ba566951 100644 --- a/config/crd/bases/openstack.k-orc.cloud_flavors.yaml +++ b/config/crd/bases/openstack.k-orc.cloud_flavors.yaml @@ -8,6 +8,8 @@ metadata: spec: group: openstack.k-orc.cloud names: + categories: + - openstack kind: Flavor listKind: FlavorList plural: flavors diff --git a/config/crd/bases/openstack.k-orc.cloud_images.yaml b/config/crd/bases/openstack.k-orc.cloud_images.yaml index 113cf391..15435859 100644 --- a/config/crd/bases/openstack.k-orc.cloud_images.yaml +++ b/config/crd/bases/openstack.k-orc.cloud_images.yaml @@ -8,6 +8,8 @@ metadata: spec: group: openstack.k-orc.cloud names: + categories: + - openstack kind: Image listKind: ImageList plural: images diff --git a/config/crd/bases/openstack.k-orc.cloud_networks.yaml b/config/crd/bases/openstack.k-orc.cloud_networks.yaml index 42669dcf..0b182961 100644 --- a/config/crd/bases/openstack.k-orc.cloud_networks.yaml +++ b/config/crd/bases/openstack.k-orc.cloud_networks.yaml @@ -8,6 +8,8 @@ metadata: spec: group: openstack.k-orc.cloud names: + categories: + - openstack kind: Network listKind: NetworkList plural: networks diff --git a/config/crd/bases/openstack.k-orc.cloud_ports.yaml b/config/crd/bases/openstack.k-orc.cloud_ports.yaml index 9f952625..cf2bda17 100644 --- a/config/crd/bases/openstack.k-orc.cloud_ports.yaml +++ b/config/crd/bases/openstack.k-orc.cloud_ports.yaml @@ -8,6 +8,8 @@ metadata: spec: group: openstack.k-orc.cloud names: + categories: + - openstack kind: Port listKind: PortList plural: ports diff --git a/config/crd/bases/openstack.k-orc.cloud_routers.yaml b/config/crd/bases/openstack.k-orc.cloud_routers.yaml index 393928d7..915aea0d 100644 --- a/config/crd/bases/openstack.k-orc.cloud_routers.yaml +++ b/config/crd/bases/openstack.k-orc.cloud_routers.yaml @@ -8,6 +8,8 @@ metadata: spec: group: openstack.k-orc.cloud names: + categories: + - openstack kind: Router listKind: RouterList plural: routers diff --git a/config/crd/bases/openstack.k-orc.cloud_securitygroups.yaml b/config/crd/bases/openstack.k-orc.cloud_securitygroups.yaml index 1ea033b3..75995620 100644 --- a/config/crd/bases/openstack.k-orc.cloud_securitygroups.yaml +++ b/config/crd/bases/openstack.k-orc.cloud_securitygroups.yaml @@ -8,6 +8,8 @@ metadata: spec: group: openstack.k-orc.cloud names: + categories: + - openstack kind: SecurityGroup listKind: SecurityGroupList plural: securitygroups diff --git a/config/crd/bases/openstack.k-orc.cloud_servers.yaml b/config/crd/bases/openstack.k-orc.cloud_servers.yaml index 2ed54f13..98c23c72 100644 --- a/config/crd/bases/openstack.k-orc.cloud_servers.yaml +++ b/config/crd/bases/openstack.k-orc.cloud_servers.yaml @@ -8,6 +8,8 @@ metadata: spec: group: openstack.k-orc.cloud names: + categories: + - openstack kind: Server listKind: ServerList plural: servers diff --git a/config/crd/bases/openstack.k-orc.cloud_subnets.yaml b/config/crd/bases/openstack.k-orc.cloud_subnets.yaml index 78f6aba5..c8eea392 100644 --- a/config/crd/bases/openstack.k-orc.cloud_subnets.yaml +++ b/config/crd/bases/openstack.k-orc.cloud_subnets.yaml @@ -8,6 +8,8 @@ metadata: spec: group: openstack.k-orc.cloud names: + categories: + - openstack kind: Subnet listKind: SubnetList plural: subnets