Skip to content

Commit 1538d18

Browse files
Merge pull request #223 from smallc2009/feature/display-READY-column
Display READY column
2 parents ec1cde6 + 8e697c2 commit 1538d18

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

api/v1/onepassworditem_types.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ type OnePasswordItemStatus struct {
6969

7070
// +kubebuilder:object:root=true
7171
// +kubebuilder:subresource:status
72+
// +kubebuilder:printcolumn:name="Age",type=date,JSONPath=`.metadata.creationTimestamp`
73+
// +kubebuilder:printcolumn:name="Ready",type=string,JSONPath=`.status.conditions[?(@.type=="Ready")].status`
7274

7375
// OnePasswordItem is the Schema for the onepassworditems API
7476
type OnePasswordItem struct {

config/crd/bases/onepassword.com_onepassworditems.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,14 @@ spec:
1414
singular: onepassworditem
1515
scope: Namespaced
1616
versions:
17-
- name: v1
17+
- additionalPrinterColumns:
18+
- jsonPath: .metadata.creationTimestamp
19+
name: Age
20+
type: date
21+
- jsonPath: .status.conditions[?(@.type=="Ready")].status
22+
name: Ready
23+
type: string
24+
name: v1
1825
schema:
1926
openAPIV3Schema:
2027
description: OnePasswordItem is the Schema for the onepassworditems API

0 commit comments

Comments
 (0)