From ab08b3e9ec2c84a0f1ed8c4d08790c988438d066 Mon Sep 17 00:00:00 2001 From: Maksym Vavilov <37799801+maksymvavilov@users.noreply.github.com> Date: Wed, 16 Oct 2024 07:40:06 +0100 Subject: [PATCH] extend health check spec (#936) Signed-off-by: Maskym Vavilov --- controllers/dnspolicy_dnsrecords.go | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/controllers/dnspolicy_dnsrecords.go b/controllers/dnspolicy_dnsrecords.go index 6d38fedfe..6c542505a 100644 --- a/controllers/dnspolicy_dnsrecords.go +++ b/controllers/dnspolicy_dnsrecords.go @@ -137,11 +137,12 @@ func (r *DNSPolicyReconciler) desiredDNSRecord(gateway *gatewayapiv1.Gateway, cl if dnsPolicy.Spec.HealthCheck != nil { healthCheckSpec = &kuadrantdnsv1alpha1.HealthCheckSpec{ - Path: dnsPolicy.Spec.HealthCheck.Path, - Port: dnsPolicy.Spec.HealthCheck.Port, - Protocol: dnsPolicy.Spec.HealthCheck.Protocol, - FailureThreshold: dnsPolicy.Spec.HealthCheck.FailureThreshold, - Interval: dnsPolicy.Spec.HealthCheck.Interval, + Path: dnsPolicy.Spec.HealthCheck.Path, + Port: dnsPolicy.Spec.HealthCheck.Port, + Protocol: dnsPolicy.Spec.HealthCheck.Protocol, + FailureThreshold: dnsPolicy.Spec.HealthCheck.FailureThreshold, + Interval: dnsPolicy.Spec.HealthCheck.Interval, + AdditionalHeadersRef: dnsPolicy.Spec.HealthCheck.AdditionalHeadersRef, } } dnsRecord := &kuadrantdnsv1alpha1.DNSRecord{