From 48bd4004017fc20fa250da0083bb3bfa03e70b0f Mon Sep 17 00:00:00 2001 From: Phil Brookes Date: Tue, 10 Dec 2024 14:07:04 +0100 Subject: [PATCH] adding dnsprobe healthy status Signed-off-by: Phil Brookes --- config/kuadrant/clusterrole-patch.yaml | 1 + .../custom-resource-state-kuadrant.yaml | 19 +++++++++++++++++++ config/kuadrant/custom-resource-state.yaml | 19 +++++++++++++++++++ 3 files changed, 39 insertions(+) diff --git a/config/kuadrant/clusterrole-patch.yaml b/config/kuadrant/clusterrole-patch.yaml index 42f49d1..129ffb2 100644 --- a/config/kuadrant/clusterrole-patch.yaml +++ b/config/kuadrant/clusterrole-patch.yaml @@ -19,6 +19,7 @@ - ratelimitpolicies - authpolicies - dnsrecords + - dnshealthcheckprobes verbs: - list - watch diff --git a/config/kuadrant/custom-resource-state-kuadrant.yaml b/config/kuadrant/custom-resource-state-kuadrant.yaml index 815b8fa..df7bc63 100644 --- a/config/kuadrant/custom-resource-state-kuadrant.yaml +++ b/config/kuadrant/custom-resource-state-kuadrant.yaml @@ -249,3 +249,22 @@ labelsFromPath: type: ["type"] valueFrom: ["status"] + - groupVersionKind: + group: kuadrant.io + kind: "DNSHealthCheckProbe" + version: "v1alpha1" + metricNamePrefix: kuadrant_dnshealthcheckprobe + labelsFromPath: + name: + - metadata + - name + namespace: + - metadata + - namespace + metrics: + - name: "healthy_status" + help: "DNS Probe current status" + each: + type: Gauge + gauge: + path: [status, healthy] diff --git a/config/kuadrant/custom-resource-state.yaml b/config/kuadrant/custom-resource-state.yaml index 0b753f3..d250346 100644 --- a/config/kuadrant/custom-resource-state.yaml +++ b/config/kuadrant/custom-resource-state.yaml @@ -754,3 +754,22 @@ spec: labelsFromPath: type: ["type"] valueFrom: ["status"] + - groupVersionKind: + group: kuadrant.io + kind: "DNSHealthCheckProbe" + version: "v1alpha1" + metricNamePrefix: kuadrant_dnshealthcheckprobe + labelsFromPath: + name: + - metadata + - name + namespace: + - metadata + - namespace + metrics: + - name: "healthy_status" + help: "DNS Probe current status" + each: + type: Gauge + gauge: + path: [status, healthy]