Skip to content

Commit 6a502f1

Browse files
committed
Add Age column for osc/osm
Add the age column to openstackcluster and openstackmachine. Signed-off-by: Mario Constanti <[email protected]>
1 parent 72e93bd commit 6a502f1

File tree

4 files changed

+10
-0
lines changed

4 files changed

+10
-0
lines changed

api/v1alpha6/openstackcluster_types.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,7 @@ type OpenStackClusterStatus struct {
215215
// +kubebuilder:printcolumn:name="Subnet",type="string",JSONPath=".status.network.subnet.id",description="Subnet the cluster is using"
216216
// +kubebuilder:printcolumn:name="Endpoint",type="string",JSONPath=".spec.controlPlaneEndpoint.host",description="API Endpoint",priority=1
217217
// +kubebuilder:printcolumn:name="Bastion IP",type="string",JSONPath=".status.bastion.floatingIP",description="Bastion address for breakglass access"
218+
// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp",description="Time duration since creation of OpenStackCluster"
218219

219220
// OpenStackCluster is the Schema for the openstackclusters API.
220221
type OpenStackCluster struct {

api/v1alpha6/openstackmachine_types.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ type OpenStackMachineStatus struct {
140140
// +kubebuilder:printcolumn:name="Ready",type="string",JSONPath=".status.ready",description="Machine ready status"
141141
// +kubebuilder:printcolumn:name="ProviderID",type="string",JSONPath=".spec.providerID",description="OpenStack instance ID"
142142
// +kubebuilder:printcolumn:name="Machine",type="string",JSONPath=".metadata.ownerReferences[?(@.kind==\"Machine\")].name",description="Machine object which owns with this OpenStackMachine"
143+
// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp",description="Time duration since creation of OpenStackMachine"
143144

144145
// OpenStackMachine is the Schema for the openstackmachines API.
145146
type OpenStackMachine struct {

config/crd/bases/infrastructure.cluster.x-k8s.io_openstackclusters.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4202,6 +4202,10 @@ spec:
42024202
jsonPath: .status.bastion.floatingIP
42034203
name: Bastion IP
42044204
type: string
4205+
- description: Time duration since creation of OpenStackCluster
4206+
jsonPath: .metadata.creationTimestamp
4207+
name: Age
4208+
type: date
42054209
name: v1alpha6
42064210
schema:
42074211
openAPIV3Schema:

config/crd/bases/infrastructure.cluster.x-k8s.io_openstackmachines.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1272,6 +1272,10 @@ spec:
12721272
jsonPath: .metadata.ownerReferences[?(@.kind=="Machine")].name
12731273
name: Machine
12741274
type: string
1275+
- description: Time duration since creation of OpenStackMachine
1276+
jsonPath: .metadata.creationTimestamp
1277+
name: Age
1278+
type: date
12751279
name: v1alpha6
12761280
schema:
12771281
openAPIV3Schema:

0 commit comments

Comments
 (0)