Skip to content

Commit 3160e54

Browse files
committed
fix(plz): return age to printer columns
1 parent ad1d0c6 commit 3160e54

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

api/v1alpha1/privateloadzone_types.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ type PrivateLoadZoneStatus struct {
4949

5050
//+kubebuilder:object:root=true
5151
//+kubebuilder:subresource:status
52+
//+kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"
5253
//+kubebuilder:printcolumn:name="Registered",type="string",JSONPath=".status.conditions[0].status",description="The status of registration"
5354

5455
// PrivateLoadZone is the Schema for the privateloadzones API

charts/k6-operator/templates/crds/plz.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ spec:
2020
scope: Namespaced
2121
versions:
2222
- additionalPrinterColumns:
23+
- jsonPath: .metadata.creationTimestamp
24+
name: Age
25+
type: date
2326
- description: The status of registration
2427
jsonPath: .status.conditions[0].status
2528
name: Registered

config/crd/bases/k6.io_privateloadzones.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ spec:
1515
scope: Namespaced
1616
versions:
1717
- additionalPrinterColumns:
18+
- jsonPath: .metadata.creationTimestamp
19+
name: Age
20+
type: date
1821
- description: The status of registration
1922
jsonPath: .status.conditions[0].status
2023
name: Registered

0 commit comments

Comments
 (0)