From 0b86180455f9437f55d96ac4d518f48883d3a062 Mon Sep 17 00:00:00 2001
From: Maskym Vavilov <mvavilov@redhat.com>
Date: Mon, 9 Dec 2024 10:06:22 +0000
Subject: [PATCH] display healthy cond on get

Signed-off-by: Maskym Vavilov <mvavilov@redhat.com>

# Conflicts:
#	bundle/manifests/dns-operator.clusterserviceversion.yaml
---
 api/v1alpha1/dnsrecord_types.go                          | 1 +
 bundle/manifests/dns-operator.clusterserviceversion.yaml | 2 +-
 bundle/manifests/kuadrant.io_dnsrecords.yaml             | 5 +++++
 charts/dns-operator/templates/manifests.yaml             | 5 +++++
 config/crd/bases/kuadrant.io_dnsrecords.yaml             | 5 +++++
 5 files changed, 17 insertions(+), 1 deletion(-)

diff --git a/api/v1alpha1/dnsrecord_types.go b/api/v1alpha1/dnsrecord_types.go
index 0545489..3f18ef1 100644
--- a/api/v1alpha1/dnsrecord_types.go
+++ b/api/v1alpha1/dnsrecord_types.go
@@ -162,6 +162,7 @@ type DNSRecordStatus struct {
 //+kubebuilder:object:root=true
 //+kubebuilder:subresource:status
 //+kubebuilder:printcolumn:name="Ready",type="string",JSONPath=".status.conditions[?(@.type==\"Ready\")].status",description="DNSRecord ready."
+//+kubebuilder:printcolumn:name="Healthy",type="string",JSONPath=".status.conditions[?(@.type==\"Healthy\")].status",description="DNSRecord healthy.",priority=2
 
 // DNSRecord is the Schema for the dnsrecords API
 type DNSRecord struct {
diff --git a/bundle/manifests/dns-operator.clusterserviceversion.yaml b/bundle/manifests/dns-operator.clusterserviceversion.yaml
index d522d78..ec05765 100644
--- a/bundle/manifests/dns-operator.clusterserviceversion.yaml
+++ b/bundle/manifests/dns-operator.clusterserviceversion.yaml
@@ -58,7 +58,7 @@ metadata:
     capabilities: Basic Install
     categories: Integration & Delivery
     containerImage: quay.io/kuadrant/dns-operator:latest
-    createdAt: "2024-11-26T11:14:48Z"
+    createdAt: "2024-12-11T10:05:36Z"
     description: A Kubernetes Operator to manage the lifecycle of DNS resources
     operators.operatorframework.io/builder: operator-sdk-v1.33.0
     operators.operatorframework.io/project_layout: go.kubebuilder.io/v4
diff --git a/bundle/manifests/kuadrant.io_dnsrecords.yaml b/bundle/manifests/kuadrant.io_dnsrecords.yaml
index eeec44e..88413a3 100644
--- a/bundle/manifests/kuadrant.io_dnsrecords.yaml
+++ b/bundle/manifests/kuadrant.io_dnsrecords.yaml
@@ -19,6 +19,11 @@ spec:
       jsonPath: .status.conditions[?(@.type=="Ready")].status
       name: Ready
       type: string
+    - description: DNSRecord healthy.
+      jsonPath: .status.conditions[?(@.type=="Healthy")].status
+      name: Healthy
+      priority: 2
+      type: string
     name: v1alpha1
     schema:
       openAPIV3Schema:
diff --git a/charts/dns-operator/templates/manifests.yaml b/charts/dns-operator/templates/manifests.yaml
index 250f620..60240ca 100644
--- a/charts/dns-operator/templates/manifests.yaml
+++ b/charts/dns-operator/templates/manifests.yaml
@@ -144,6 +144,11 @@ spec:
       jsonPath: .status.conditions[?(@.type=="Ready")].status
       name: Ready
       type: string
+    - description: DNSRecord healthy.
+      jsonPath: .status.conditions[?(@.type=="Healthy")].status
+      name: Healthy
+      priority: 2
+      type: string
     name: v1alpha1
     schema:
       openAPIV3Schema:
diff --git a/config/crd/bases/kuadrant.io_dnsrecords.yaml b/config/crd/bases/kuadrant.io_dnsrecords.yaml
index 59a5c6e..cf270af 100644
--- a/config/crd/bases/kuadrant.io_dnsrecords.yaml
+++ b/config/crd/bases/kuadrant.io_dnsrecords.yaml
@@ -19,6 +19,11 @@ spec:
       jsonPath: .status.conditions[?(@.type=="Ready")].status
       name: Ready
       type: string
+    - description: DNSRecord healthy.
+      jsonPath: .status.conditions[?(@.type=="Healthy")].status
+      name: Healthy
+      priority: 2
+      type: string
     name: v1alpha1
     schema:
       openAPIV3Schema: