From dae56347454c6fde9fe35d5075cce68f3e990353 Mon Sep 17 00:00:00 2001 From: Maskym Vavilov Date: Mon, 9 Dec 2024 10:06:22 +0000 Subject: [PATCH] display healthy cond on get Signed-off-by: Maskym Vavilov --- api/v1alpha1/dnsrecord_types.go | 1 + bundle/manifests/dns-operator.clusterserviceversion.yaml | 2 +- bundle/manifests/kuadrant.io_dnsrecords.yaml | 4 ++++ charts/dns-operator/templates/manifests.yaml | 4 ++++ config/crd/bases/kuadrant.io_dnsrecords.yaml | 4 ++++ 5 files changed, 14 insertions(+), 1 deletion(-) diff --git a/api/v1alpha1/dnsrecord_types.go b/api/v1alpha1/dnsrecord_types.go index 0545489..705ba27 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." // 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 7cab15e..06dbf2c 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-15T11:06:08Z" + createdAt: "2024-12-09T10:06:03Z" 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..2c15b2d 100644 --- a/bundle/manifests/kuadrant.io_dnsrecords.yaml +++ b/bundle/manifests/kuadrant.io_dnsrecords.yaml @@ -19,6 +19,10 @@ spec: jsonPath: .status.conditions[?(@.type=="Ready")].status name: Ready type: string + - description: DNSRecord healthy. + jsonPath: .status.conditions[?(@.type=="Healthy")].status + name: Healthy + type: string name: v1alpha1 schema: openAPIV3Schema: diff --git a/charts/dns-operator/templates/manifests.yaml b/charts/dns-operator/templates/manifests.yaml index 2be476c..a7f91d4 100644 --- a/charts/dns-operator/templates/manifests.yaml +++ b/charts/dns-operator/templates/manifests.yaml @@ -146,6 +146,10 @@ spec: jsonPath: .status.conditions[?(@.type=="Ready")].status name: Ready type: string + - description: DNSRecord healthy. + jsonPath: .status.conditions[?(@.type=="Healthy")].status + name: Healthy + 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..f7d3122 100644 --- a/config/crd/bases/kuadrant.io_dnsrecords.yaml +++ b/config/crd/bases/kuadrant.io_dnsrecords.yaml @@ -19,6 +19,10 @@ spec: jsonPath: .status.conditions[?(@.type=="Ready")].status name: Ready type: string + - description: DNSRecord healthy. + jsonPath: .status.conditions[?(@.type=="Healthy")].status + name: Healthy + type: string name: v1alpha1 schema: openAPIV3Schema: