Skip to content

Commit 00a5d65

Browse files
author
Jelle Dijkstra
committed
Added printer columns
1 parent 3103cd0 commit 00a5d65

File tree

4 files changed

+28
-2
lines changed

4 files changed

+28
-2
lines changed

api/v3/wfs_types.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ import (
4646
// versionName=v3
4747
// +kubebuilder:resource:path=wfs
4848
// +kubebuilder:resource:categories=pdok
49+
// +kubebuilder:printcolumn:name="ReadyPods",type=integer,JSONPath=`.status.podSummary[0].ready`
50+
// +kubebuilder:printcolumn:name="DesiredPods",type=integer,JSONPath=`.status.podSummary[0].total`
51+
// +kubebuilder:printcolumn:name="ReconcileStatus",type=string,JSONPath=`.status.conditions[?(@.type == "Reconciled")].reason`
4952

5053
// WFS is the Schema for the wfs API.
5154
type WFS struct {

api/v3/wms_types.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ const (
5555
// versionName=v3
5656
// +kubebuilder:resource:path=wms
5757
// +kubebuilder:resource:categories=pdok
58+
// +kubebuilder:printcolumn:name="ReadyPods",type=integer,JSONPath=`.status.podSummary[0].ready`
59+
// +kubebuilder:printcolumn:name="DesiredPods",type=integer,JSONPath=`.status.podSummary[0].total`
60+
// +kubebuilder:printcolumn:name="ReconcileStatus",type=string,JSONPath=`.status.conditions[?(@.type == "Reconciled")].reason`
5861

5962
// WMS is the Schema for the wms API.
6063
type WMS struct {

config/crd/bases/pdok.nl_wfs.yaml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,17 @@ spec:
1616
singular: wfs
1717
scope: Namespaced
1818
versions:
19-
- name: v3
19+
- additionalPrinterColumns:
20+
- jsonPath: .status.podSummary[0].ready
21+
name: ReadyPods
22+
type: integer
23+
- jsonPath: .status.podSummary[0].total
24+
name: DesiredPods
25+
type: integer
26+
- jsonPath: .status.conditions[?(@.type == "Reconciled")].reason
27+
name: ReconcileStatus
28+
type: string
29+
name: v3
2030
schema:
2131
openAPIV3Schema:
2232
description: WFS is the Schema for the wfs API.

config/crd/bases/pdok.nl_wms.yaml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,17 @@ spec:
1616
singular: wms
1717
scope: Namespaced
1818
versions:
19-
- name: v3
19+
- additionalPrinterColumns:
20+
- jsonPath: .status.podSummary[0].ready
21+
name: ReadyPods
22+
type: integer
23+
- jsonPath: .status.podSummary[0].total
24+
name: DesiredPods
25+
type: integer
26+
- jsonPath: .status.conditions[?(@.type == "Reconciled")].reason
27+
name: ReconcileStatus
28+
type: string
29+
name: v3
2030
schema:
2131
openAPIV3Schema:
2232
description: WMS is the Schema for the wms API.

0 commit comments

Comments
 (0)