Skip to content

Commit acd9e7f

Browse files
committed
include key conditions in kubectl print for AppWrappers
1 parent ec48421 commit acd9e7f

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

api/v1beta2/appwrapper_types.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,9 @@ const (
110110
//+kubebuilder:object:root=true
111111
//+kubebuilder:subresource:status
112112
//+kubebuilder:printcolumn:name="Status",type="string",JSONPath=`.status.phase`
113-
//+kubebuilder:resource:shortName={appwrapper,appwrappers}
113+
//+kubebuilder:printcolumn:name="Quota Reserved",type="string",JSONPath=".status.conditions[?(@.type==\"QuotaReserved\")].status"
114+
//+kubebuilder:printcolumn:name="Resources Deployed",type="string",JSONPath=".status.conditions[?(@.type==\"ResourcesDeployed\")].status"
115+
//+kubebuilder:printcolumn:name="Unhealthy",type="string",JSONPath=".status.conditions[?(@.type==\"Unhealthy\")].status"
114116

115117
// AppWrapper is the Schema for the appwrappers API
116118
type AppWrapper struct {

config/crd/bases/workload.codeflare.dev_appwrappers.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,15 @@ spec:
1818
- jsonPath: .status.phase
1919
name: Status
2020
type: string
21+
- jsonPath: .status.conditions[?(@.type=="QuotaReserved")].status
22+
name: Quota Reserved
23+
type: string
24+
- jsonPath: .status.conditions[?(@.type=="ResourcesDeployed")].status
25+
name: Resources Deployed
26+
type: string
27+
- jsonPath: .status.conditions[?(@.type=="Unhealthy")].status
28+
name: Unhealthy
29+
type: string
2130
name: v1beta2
2231
schema:
2332
openAPIV3Schema:

0 commit comments

Comments
 (0)