Skip to content

Commit

Permalink
alignment: TargetSection print column for DNS and TLS policy (#1015)
Browse files Browse the repository at this point in the history
* tls: section name print column

Signed-off-by: KevFan <[email protected]>

* tls: section name print column

Signed-off-by: KevFan <[email protected]>

* dns: section name print column

Signed-off-by: KevFan <[email protected]>

* manifests: generate crd changes

Signed-off-by: KevFan <[email protected]>

---------

Signed-off-by: KevFan <[email protected]>
  • Loading branch information
KevFan authored Nov 14, 2024
1 parent f71e211 commit 17b283c
Show file tree
Hide file tree
Showing 7 changed files with 38 additions and 0 deletions.
1 change: 1 addition & 0 deletions api/v1/dnspolicy_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ var _ kuadrant.Policy = &DNSPolicy{}
// +kubebuilder:printcolumn:name="Enforced",type=string,JSONPath=`.status.conditions[?(@.type=="Enforced")].status`,description="DNSPolicy Enforced",priority=2
// +kubebuilder:printcolumn:name="TargetRefKind",type="string",JSONPath=".spec.targetRef.kind",description="Type of the referenced Gateway API resource",priority=2
// +kubebuilder:printcolumn:name="TargetRefName",type="string",JSONPath=".spec.targetRef.name",description="Name of the referenced Gateway API resource",priority=2
// +kubebuilder:printcolumn:name="TargetSection",type="string",JSONPath=".spec.targetRef.sectionName",description="Name of the Listener section within the Gateway to which the policy applies ",priority=2
// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"

// DNSPolicy is the Schema for the dnspolicies API
Expand Down
1 change: 1 addition & 0 deletions api/v1/tlspolicy_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ var _ kuadrant.Policy = &TLSPolicy{}
// +kubebuilder:printcolumn:name="Enforced",type=string,JSONPath=`.status.conditions[?(@.type=="Enforced")].status`,description="TLSPolicy Enforced",priority=2
// +kubebuilder:printcolumn:name="TargetRefKind",type="string",JSONPath=".spec.targetRef.kind",description="Type of the referenced Gateway API resource",priority=2
// +kubebuilder:printcolumn:name="TargetRefName",type="string",JSONPath=".spec.targetRef.name",description="Name of the referenced Gateway API resource",priority=2
// +kubebuilder:printcolumn:name="TargetSection",type="string",JSONPath=".spec.targetRef.sectionName",description="Name of the Listener section within the Gateway to which the policy applies ",priority=2
// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"

// TLSPolicy is the Schema for the tlspolicies API
Expand Down
6 changes: 6 additions & 0 deletions bundle/manifests/kuadrant.io_dnspolicies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ spec:
name: TargetRefName
priority: 2
type: string
- description: 'Name of the Listener section within the Gateway to which the policy
applies '
jsonPath: .spec.targetRef.sectionName
name: TargetSection
priority: 2
type: string
- jsonPath: .metadata.creationTimestamp
name: Age
type: date
Expand Down
6 changes: 6 additions & 0 deletions bundle/manifests/kuadrant.io_tlspolicies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ spec:
name: TargetRefName
priority: 2
type: string
- description: 'Name of the Listener section within the Gateway to which the policy
applies '
jsonPath: .spec.targetRef.sectionName
name: TargetSection
priority: 2
type: string
- jsonPath: .metadata.creationTimestamp
name: Age
type: date
Expand Down
12 changes: 12 additions & 0 deletions charts/kuadrant-operator/templates/manifests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7016,6 +7016,12 @@ spec:
name: TargetRefName
priority: 2
type: string
- description: 'Name of the Listener section within the Gateway to which the policy
applies '
jsonPath: .spec.targetRef.sectionName
name: TargetSection
priority: 2
type: string
- jsonPath: .metadata.creationTimestamp
name: Age
type: date
Expand Down Expand Up @@ -8116,6 +8122,12 @@ spec:
name: TargetRefName
priority: 2
type: string
- description: 'Name of the Listener section within the Gateway to which the policy
applies '
jsonPath: .spec.targetRef.sectionName
name: TargetSection
priority: 2
type: string
- jsonPath: .metadata.creationTimestamp
name: Age
type: date
Expand Down
6 changes: 6 additions & 0 deletions config/crd/bases/kuadrant.io_dnspolicies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ spec:
name: TargetRefName
priority: 2
type: string
- description: 'Name of the Listener section within the Gateway to which the policy
applies '
jsonPath: .spec.targetRef.sectionName
name: TargetSection
priority: 2
type: string
- jsonPath: .metadata.creationTimestamp
name: Age
type: date
Expand Down
6 changes: 6 additions & 0 deletions config/crd/bases/kuadrant.io_tlspolicies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ spec:
name: TargetRefName
priority: 2
type: string
- description: 'Name of the Listener section within the Gateway to which the policy
applies '
jsonPath: .spec.targetRef.sectionName
name: TargetSection
priority: 2
type: string
- jsonPath: .metadata.creationTimestamp
name: Age
type: date
Expand Down

0 comments on commit 17b283c

Please sign in to comment.