Skip to content

Commit 79fe772

Browse files
authored
feat: Expose imageID on nodeclaim wide printer output (#1887)
Signed-off-by: Cameron McAvoy <[email protected]>
1 parent 83332db commit 79fe772

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

kwok/charts/crds/karpenter.sh_nodeclaims.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ spec:
3535
- jsonPath: .metadata.creationTimestamp
3636
name: Age
3737
type: date
38+
- jsonPath: .status.imageID
39+
name: ImageID
40+
priority: 1
41+
type: string
3842
- jsonPath: .status.providerID
3943
name: ID
4044
priority: 1

pkg/apis/crds/karpenter.sh_nodeclaims.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ spec:
3535
- jsonPath: .metadata.creationTimestamp
3636
name: Age
3737
type: date
38+
- jsonPath: .status.imageID
39+
name: ImageID
40+
priority: 1
41+
type: string
3842
- jsonPath: .status.providerID
3943
name: ID
4044
priority: 1

pkg/apis/v1/nodeclaim.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ type Provider = runtime.RawExtension
133133
// +kubebuilder:printcolumn:name="Node",type="string",JSONPath=".status.nodeName",description=""
134134
// +kubebuilder:printcolumn:name="Ready",type="string",JSONPath=".status.conditions[?(@.type==\"Ready\")].status",description=""
135135
// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp",description=""
136+
// +kubebuilder:printcolumn:name="ImageID",type="string",JSONPath=".status.imageID",priority=1,description=""
136137
// +kubebuilder:printcolumn:name="ID",type="string",JSONPath=".status.providerID",priority=1,description=""
137138
// +kubebuilder:printcolumn:name="NodePool",type="string",JSONPath=".metadata.labels.karpenter\\.sh/nodepool",priority=1,description=""
138139
// +kubebuilder:printcolumn:name="NodeClass",type="string",JSONPath=".spec.nodeClassRef.name",priority=1,description=""

0 commit comments

Comments
 (0)