Skip to content

Commit

Permalink
extend health check spec
Browse files Browse the repository at this point in the history
Signed-off-by: Maskym Vavilov <[email protected]>
  • Loading branch information
maksymvavilov committed Oct 15, 2024
1 parent 2ece035 commit 39a4b4c
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,

Check warning on line 145 in controllers/dnspolicy_dnsrecords.go

View check run for this annotation

Codecov / codecov/patch

controllers/dnspolicy_dnsrecords.go#L140-L145

Added lines #L140 - L145 were not covered by tests
}
}
dnsRecord := &kuadrantdnsv1alpha1.DNSRecord{
Expand Down

0 comments on commit 39a4b4c

Please sign in to comment.