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 11, 2024
1 parent 2ece035 commit 337416f
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions controllers/dnspolicy_dnsrecords.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,11 +137,13 @@ 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,
AllowInsecureCertificate: dnsPolicy.Spec.HealthCheck.AllowInsecureCertificate,

Check warning on line 146 in controllers/dnspolicy_dnsrecords.go

View check run for this annotation

Codecov / codecov/patch

controllers/dnspolicy_dnsrecords.go#L140-L146

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

0 comments on commit 337416f

Please sign in to comment.