diff --git a/api/v1/dnspolicy_types.go b/api/v1/dnspolicy_types.go index 41fa901e7..4489807e7 100644 --- a/api/v1/dnspolicy_types.go +++ b/api/v1/dnspolicy_types.go @@ -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 diff --git a/api/v1/tlspolicy_types.go b/api/v1/tlspolicy_types.go index b0c57c0f7..67dd504c8 100644 --- a/api/v1/tlspolicy_types.go +++ b/api/v1/tlspolicy_types.go @@ -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 diff --git a/bundle/manifests/kuadrant.io_dnspolicies.yaml b/bundle/manifests/kuadrant.io_dnspolicies.yaml index 3f689c1e4..93510711f 100644 --- a/bundle/manifests/kuadrant.io_dnspolicies.yaml +++ b/bundle/manifests/kuadrant.io_dnspolicies.yaml @@ -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 diff --git a/bundle/manifests/kuadrant.io_tlspolicies.yaml b/bundle/manifests/kuadrant.io_tlspolicies.yaml index b4074954e..bb01931ee 100644 --- a/bundle/manifests/kuadrant.io_tlspolicies.yaml +++ b/bundle/manifests/kuadrant.io_tlspolicies.yaml @@ -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 diff --git a/charts/kuadrant-operator/templates/manifests.yaml b/charts/kuadrant-operator/templates/manifests.yaml index b48cfd387..106ad6b73 100644 --- a/charts/kuadrant-operator/templates/manifests.yaml +++ b/charts/kuadrant-operator/templates/manifests.yaml @@ -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 @@ -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 diff --git a/config/crd/bases/kuadrant.io_dnspolicies.yaml b/config/crd/bases/kuadrant.io_dnspolicies.yaml index 2daf8d317..fc6e628e3 100644 --- a/config/crd/bases/kuadrant.io_dnspolicies.yaml +++ b/config/crd/bases/kuadrant.io_dnspolicies.yaml @@ -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 diff --git a/config/crd/bases/kuadrant.io_tlspolicies.yaml b/config/crd/bases/kuadrant.io_tlspolicies.yaml index 946d0c1f4..ec3bdc26f 100644 --- a/config/crd/bases/kuadrant.io_tlspolicies.yaml +++ b/config/crd/bases/kuadrant.io_tlspolicies.yaml @@ -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