Skip to content

Commit

Permalink
extend health check spec (#936)
Browse files Browse the repository at this point in the history
Signed-off-by: Maskym Vavilov <[email protected]>
  • Loading branch information
maksymvavilov authored Oct 16, 2024
1 parent 45efe5d commit ab08b3e
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions controllers/dnspolicy_dnsrecords.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down

0 comments on commit ab08b3e

Please sign in to comment.