@@ -24,8 +24,6 @@ import (
24
24
gatewayapiv1 "sigs.k8s.io/gateway-api/apis/v1"
25
25
gatewayapiv1alpha2 "sigs.k8s.io/gateway-api/apis/v1alpha2"
26
26
27
- kuadrantdnsv1alpha1 "github.com/kuadrant/dns-operator/api/v1alpha1"
28
-
29
27
"github.com/kuadrant/kuadrant-operator/pkg/library/kuadrant"
30
28
)
31
29
@@ -215,14 +213,14 @@ type DNSPolicyList struct {
215
213
// By default, this health check will be applied to each unique DNS A Record for
216
214
// the listeners assigned to the target gateway
217
215
type HealthCheckSpec struct {
218
- Endpoint string `json:"endpoint,omitempty"`
219
- Port * int `json:"port,omitempty"`
220
- Protocol * kuadrantdnsv1alpha1. HealthProtocol `json:"protocol,omitempty"`
221
- FailureThreshold * int `json:"failureThreshold,omitempty"`
222
- AdditionalHeadersRef * kuadrantdnsv1alpha1. AdditionalHeadersRef `json:"additionalHeadersRef,omitempty"`
223
- ExpectedResponses []int `json:"expectedResponses,omitempty"`
224
- AllowInsecureCertificates bool `json:"allowInsecureCertificates,omitempty"`
225
- Interval * metav1.Duration `json:"interval,omitempty"`
216
+ Endpoint string `json:"endpoint,omitempty"`
217
+ Port * int `json:"port,omitempty"`
218
+ Protocol * string `json:"protocol,omitempty"`
219
+ FailureThreshold * int `json:"failureThreshold,omitempty"`
220
+ AdditionalHeadersRef * string `json:"additionalHeadersRef,omitempty"`
221
+ ExpectedResponses []int `json:"expectedResponses,omitempty"`
222
+ AllowInsecureCertificates bool `json:"allowInsecureCertificates,omitempty"`
223
+ Interval * metav1.Duration `json:"interval,omitempty"`
226
224
}
227
225
228
226
func (s * HealthCheckSpec ) Validate () error {
@@ -243,7 +241,7 @@ func (s *HealthCheckSpec) Default() {
243
241
}
244
242
245
243
if s .Protocol == nil {
246
- protocol := kuadrantdnsv1alpha1 . HttpsProtocol
244
+ protocol := "HTTPS"
247
245
s .Protocol = & protocol
248
246
}
249
247
}
@@ -311,7 +309,7 @@ func (p *DNSPolicy) WithTargetGateway(gwName string) *DNSPolicy {
311
309
312
310
//HealthCheck
313
311
314
- func (p * DNSPolicy ) WithHealthCheckFor (endpoint string , port * int , protocol kuadrantdnsv1alpha1. HealthProtocol , failureThreshold * int ) * DNSPolicy {
312
+ func (p * DNSPolicy ) WithHealthCheckFor (endpoint string , port * int , protocol string , failureThreshold * int ) * DNSPolicy {
315
313
return p .WithHealthCheck (HealthCheckSpec {
316
314
Endpoint : endpoint ,
317
315
Port : port ,
0 commit comments