Skip to content

Commit

Permalink
Add all CRDs to the k-orc category
Browse files Browse the repository at this point in the history
This allows the user to do 'kubectl get k-orc' to list all ORC resources
of every type.
  • Loading branch information
mdbooth committed Dec 23, 2024
1 parent e6eefd8 commit 5dfccc5
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=k-orc
// +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:
- k-orc
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:
- k-orc
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:
- k-orc
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:
- k-orc
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:
- k-orc
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:
- k-orc
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:
- k-orc
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:
- k-orc
kind: Subnet
listKind: SubnetList
plural: subnets
Expand Down

0 comments on commit 5dfccc5

Please sign in to comment.