Skip to content

Commit 82ebfe5

Browse files
author
Arko Dasgupta
committed
crd printcolumn tags
Signed-off-by: Arko Dasgupta <arko@tetrate.io>
1 parent e5845d0 commit 82ebfe5

6 files changed

Lines changed: 25 additions & 4 deletions

api/v1alpha1/authenticationfilter_types.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ const (
1414
KindAuthenticationFilter = "AuthenticationFilter"
1515
)
1616

17-
//+kubebuilder:object:root=true
17+
// +kubebuilder:object:root=true
18+
// +kubebuilder:printcolumn:name="Age",type=date,JSONPath=`.metadata.creationTimestamp`
1819

1920
type AuthenticationFilter struct {
2021
metav1.TypeMeta `json:",inline"`

api/v1alpha1/envoypatchpolicy_types.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ const (
1818

1919
// +kubebuilder:object:root=true
2020
// +kubebuilder:subresource:status
21+
// +kubebuilder:printcolumn:name="Status",type=string,JSONPath=`.status.conditions[?(@.type=="Programmed")].reason`
22+
// +kubebuilder:printcolumn:name="Age",type=date,JSONPath=`.metadata.creationTimestamp`
2123

2224
// EnvoyPatchPolicy allows the user to modify the generated Envoy xDS
2325
// resources by Envoy Gateway using this patch API

api/v1alpha1/ratelimitfilter_types.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ const (
1515
)
1616

1717
// +kubebuilder:object:root=true
18+
// +kubebuilder:printcolumn:name="Age",type=date,JSONPath=`.metadata.creationTimestamp`
1819

1920
// RateLimitFilter allows the user to limit the number of incoming requests
2021
// to a predefined value based on attributes within the traffic flow.

charts/gateway-helm/crds/generated/gateway.envoyproxy.io_authenticationfilters.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@ spec:
1515
singular: authenticationfilter
1616
scope: Namespaced
1717
versions:
18-
- name: v1alpha1
18+
- additionalPrinterColumns:
19+
- jsonPath: .metadata.creationTimestamp
20+
name: Age
21+
type: date
22+
name: v1alpha1
1923
schema:
2024
openAPIV3Schema:
2125
properties:
@@ -125,3 +129,4 @@ spec:
125129
type: object
126130
served: true
127131
storage: true
132+
subresources: {}

charts/gateway-helm/crds/generated/gateway.envoyproxy.io_envoypatchpolicies.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,14 @@ spec:
1515
singular: envoypatchpolicy
1616
scope: Namespaced
1717
versions:
18-
- name: v1alpha1
18+
- additionalPrinterColumns:
19+
- jsonPath: .status.conditions[?(@.type=="Programmed")].reason
20+
name: Status
21+
type: string
22+
- jsonPath: .metadata.creationTimestamp
23+
name: Age
24+
type: date
25+
name: v1alpha1
1926
schema:
2027
openAPIV3Schema:
2128
description: EnvoyPatchPolicy allows the user to modify the generated Envoy

charts/gateway-helm/crds/generated/gateway.envoyproxy.io_ratelimitfilters.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@ spec:
1515
singular: ratelimitfilter
1616
scope: Namespaced
1717
versions:
18-
- name: v1alpha1
18+
- additionalPrinterColumns:
19+
- jsonPath: .metadata.creationTimestamp
20+
name: Age
21+
type: date
22+
name: v1alpha1
1923
schema:
2024
openAPIV3Schema:
2125
description: RateLimitFilter allows the user to limit the number of incoming
@@ -177,3 +181,4 @@ spec:
177181
type: object
178182
served: true
179183
storage: true
184+
subresources: {}

0 commit comments

Comments
 (0)