From 748cf9b9aa78d86982fc51d1972a0c277a396913 Mon Sep 17 00:00:00 2001 From: Maskym Vavilov Date: Mon, 9 Dec 2024 09:51:07 +0000 Subject: [PATCH] display healthy cond on get Signed-off-by: Maskym Vavilov --- api/v1/dnspolicy_types.go | 1 + .../manifests/kuadrant-operator.clusterserviceversion.yaml | 2 +- bundle/manifests/kuadrant.io_dnspolicies.yaml | 5 +++++ charts/kuadrant-operator/templates/manifests.yaml | 5 +++++ config/crd/bases/kuadrant.io_dnspolicies.yaml | 5 +++++ 5 files changed, 17 insertions(+), 1 deletion(-) diff --git a/api/v1/dnspolicy_types.go b/api/v1/dnspolicy_types.go index 4489807e7..7420d2c93 100644 --- a/api/v1/dnspolicy_types.go +++ b/api/v1/dnspolicy_types.go @@ -155,6 +155,7 @@ var _ kuadrant.Policy = &DNSPolicy{} // +kubebuilder:metadata:labels="gateway.networking.k8s.io/policy=direct" // +kubebuilder:printcolumn:name="Accepted",type=string,JSONPath=`.status.conditions[?(@.type=="Accepted")].status`,description="DNSPolicy Accepted",priority=2 // +kubebuilder:printcolumn:name="Enforced",type=string,JSONPath=`.status.conditions[?(@.type=="Enforced")].status`,description="DNSPolicy Enforced",priority=2 +// +kubebuilder:printcolumn:name="SubResourcesHealthy",type=string,JSONPath=`.status.conditions[?(@.type=="SubResourcesHealthy")].status`,description="DNSPolicy SubResourcesHealthy",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 diff --git a/bundle/manifests/kuadrant-operator.clusterserviceversion.yaml b/bundle/manifests/kuadrant-operator.clusterserviceversion.yaml index 904985f8c..ba3e1f2f2 100644 --- a/bundle/manifests/kuadrant-operator.clusterserviceversion.yaml +++ b/bundle/manifests/kuadrant-operator.clusterserviceversion.yaml @@ -109,7 +109,7 @@ metadata: capabilities: Basic Install categories: Integration & Delivery containerImage: quay.io/kuadrant/kuadrant-operator:latest - createdAt: "2024-11-26T15:09:44Z" + createdAt: "2024-12-09T09:56:27Z" description: A Kubernetes Operator to manage the lifecycle of the Kuadrant system operators.operatorframework.io/builder: operator-sdk-v1.32.0 operators.operatorframework.io/project_layout: go.kubebuilder.io/v3 diff --git a/bundle/manifests/kuadrant.io_dnspolicies.yaml b/bundle/manifests/kuadrant.io_dnspolicies.yaml index a99e51cf1..5ca87a64c 100644 --- a/bundle/manifests/kuadrant.io_dnspolicies.yaml +++ b/bundle/manifests/kuadrant.io_dnspolicies.yaml @@ -28,6 +28,11 @@ spec: name: Enforced priority: 2 type: string + - description: DNSPolicy SubResourcesHealthy + jsonPath: .status.conditions[?(@.type=="SubResourcesHealthy")].status + name: SubResourcesHealthy + priority: 2 + type: string - description: Type of the referenced Gateway API resource jsonPath: .spec.targetRef.kind name: TargetRefKind diff --git a/charts/kuadrant-operator/templates/manifests.yaml b/charts/kuadrant-operator/templates/manifests.yaml index 16041f119..2be365732 100644 --- a/charts/kuadrant-operator/templates/manifests.yaml +++ b/charts/kuadrant-operator/templates/manifests.yaml @@ -7024,6 +7024,11 @@ spec: name: Enforced priority: 2 type: string + - description: DNSPolicy SubResourcesHealthy + jsonPath: .status.conditions[?(@.type=="SubResourcesHealthy")].status + name: SubResourcesHealthy + priority: 2 + type: string - description: Type of the referenced Gateway API resource jsonPath: .spec.targetRef.kind name: TargetRefKind diff --git a/config/crd/bases/kuadrant.io_dnspolicies.yaml b/config/crd/bases/kuadrant.io_dnspolicies.yaml index 34a14a2ff..f4245471b 100644 --- a/config/crd/bases/kuadrant.io_dnspolicies.yaml +++ b/config/crd/bases/kuadrant.io_dnspolicies.yaml @@ -27,6 +27,11 @@ spec: name: Enforced priority: 2 type: string + - description: DNSPolicy SubResourcesHealthy + jsonPath: .status.conditions[?(@.type=="SubResourcesHealthy")].status + name: SubResourcesHealthy + priority: 2 + type: string - description: Type of the referenced Gateway API resource jsonPath: .spec.targetRef.kind name: TargetRefKind