Skip to content
This repository was archived by the owner on Jul 13, 2026. It is now read-only.

Commit 8423d1e

Browse files
committed
Add printeColumns to OpenStackLightspeed CRD
Add status and message printColumns to the OpenStackLightspeed CRD to display condition status in oc get openstacklightspeed output.
1 parent d8cd584 commit 8423d1e

2 files changed

Lines changed: 12 additions & 1 deletion

File tree

api/v1beta1/openstacklightspeed_types.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@ type OpenStackLightspeedStatus struct {
9090

9191
// +kubebuilder:object:root=true
9292
// +kubebuilder:subresource:status
93+
// +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.conditions[0].status",description="Status"
94+
// +kubebuilder:printcolumn:name="Message",type="string",JSONPath=".status.conditions[0].message",description="Message"
9395

9496
// OpenStackLightspeed is the Schema for the openstacklightspeeds API
9597
type OpenStackLightspeed struct {

config/crd/bases/lightspeed.openstack.org_openstacklightspeeds.yaml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,16 @@ spec:
1414
singular: openstacklightspeed
1515
scope: Namespaced
1616
versions:
17-
- name: v1beta1
17+
- additionalPrinterColumns:
18+
- description: Status
19+
jsonPath: .status.conditions[0].status
20+
name: Status
21+
type: string
22+
- description: Message
23+
jsonPath: .status.conditions[0].message
24+
name: Message
25+
type: string
26+
name: v1beta1
1827
schema:
1928
openAPIV3Schema:
2029
description: OpenStackLightspeed is the Schema for the openstacklightspeeds

0 commit comments

Comments
 (0)