Skip to content

Commit

Permalink
Add all CRDs to the 'openstack' category
Browse files Browse the repository at this point in the history
This allows the user to do 'kubectl get openstack' to list all ORC
OpenStack resources of every type.
  • Loading branch information
mdbooth committed Jan 3, 2025
1 parent 0047c7e commit a9cf717
Show file tree
Hide file tree
Showing 17 changed files with 25 additions and 0 deletions.
1 change: 1 addition & 0 deletions api/v1alpha1/zz_generated.flavor-resource.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions api/v1alpha1/zz_generated.image-resource.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions api/v1alpha1/zz_generated.network-resource.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions api/v1alpha1/zz_generated.port-resource.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions api/v1alpha1/zz_generated.router-resource.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions api/v1alpha1/zz_generated.securitygroup-resource.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions api/v1alpha1/zz_generated.server-resource.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions api/v1alpha1/zz_generated.subnet-resource.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions cmd/resource-generator/data/api.template
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 2 additions & 0 deletions config/crd/bases/openstack.k-orc.cloud_flavors.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ metadata:
spec:
group: openstack.k-orc.cloud
names:
categories:
- openstack
kind: Flavor
listKind: FlavorList
plural: flavors
Expand Down
2 changes: 2 additions & 0 deletions config/crd/bases/openstack.k-orc.cloud_images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ metadata:
spec:
group: openstack.k-orc.cloud
names:
categories:
- openstack
kind: Image
listKind: ImageList
plural: images
Expand Down
2 changes: 2 additions & 0 deletions config/crd/bases/openstack.k-orc.cloud_networks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ metadata:
spec:
group: openstack.k-orc.cloud
names:
categories:
- openstack
kind: Network
listKind: NetworkList
plural: networks
Expand Down
2 changes: 2 additions & 0 deletions config/crd/bases/openstack.k-orc.cloud_ports.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ metadata:
spec:
group: openstack.k-orc.cloud
names:
categories:
- openstack
kind: Port
listKind: PortList
plural: ports
Expand Down
2 changes: 2 additions & 0 deletions config/crd/bases/openstack.k-orc.cloud_routers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ metadata:
spec:
group: openstack.k-orc.cloud
names:
categories:
- openstack
kind: Router
listKind: RouterList
plural: routers
Expand Down
2 changes: 2 additions & 0 deletions config/crd/bases/openstack.k-orc.cloud_securitygroups.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ metadata:
spec:
group: openstack.k-orc.cloud
names:
categories:
- openstack
kind: SecurityGroup
listKind: SecurityGroupList
plural: securitygroups
Expand Down
2 changes: 2 additions & 0 deletions config/crd/bases/openstack.k-orc.cloud_servers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ metadata:
spec:
group: openstack.k-orc.cloud
names:
categories:
- openstack
kind: Server
listKind: ServerList
plural: servers
Expand Down
2 changes: 2 additions & 0 deletions config/crd/bases/openstack.k-orc.cloud_subnets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ metadata:
spec:
group: openstack.k-orc.cloud
names:
categories:
- openstack
kind: Subnet
listKind: SubnetList
plural: subnets
Expand Down

0 comments on commit a9cf717

Please sign in to comment.