Skip to content

Commit 74abb47

Browse files
philbrookesmaleck13
authored andcommitted
remove dns healthcheck probes
update manifests and bundle upgrade controller-gen to 0.14.0 (#460) dns: Bump DNS Operator version propagate health check to DNS Records
1 parent c849153 commit 74abb47

30 files changed

+745
-1429
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ endif
136136
LIMITADOR_OPERATOR_BUNDLE_IMG ?= quay.io/kuadrant/limitador-operator-bundle:$(LIMITADOR_OPERATOR_BUNDLE_IMG_TAG)
137137

138138
## dns
139-
DNS_OPERATOR_VERSION ?= 0.1.0
139+
DNS_OPERATOR_VERSION ?= latest
140140

141141
kuadrantdns_bundle_is_semantic := $(call is_semantic_version,$(DNS_OPERATOR_VERSION))
142142
ifeq (latest,$(DNS_OPERATOR_VERSION))

api/v1alpha1/dnspolicy_types.go

+10-12
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ import (
2424
gatewayapiv1 "sigs.k8s.io/gateway-api/apis/v1"
2525
gatewayapiv1alpha2 "sigs.k8s.io/gateway-api/apis/v1alpha2"
2626

27-
kuadrantdnsv1alpha1 "github.com/kuadrant/dns-operator/api/v1alpha1"
28-
2927
"github.com/kuadrant/kuadrant-operator/pkg/library/kuadrant"
3028
)
3129

@@ -215,14 +213,14 @@ type DNSPolicyList struct {
215213
// By default, this health check will be applied to each unique DNS A Record for
216214
// the listeners assigned to the target gateway
217215
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"`
226224
}
227225

228226
func (s *HealthCheckSpec) Validate() error {
@@ -243,7 +241,7 @@ func (s *HealthCheckSpec) Default() {
243241
}
244242

245243
if s.Protocol == nil {
246-
protocol := kuadrantdnsv1alpha1.HttpsProtocol
244+
protocol := "HTTPS"
247245
s.Protocol = &protocol
248246
}
249247
}
@@ -311,7 +309,7 @@ func (p *DNSPolicy) WithTargetGateway(gwName string) *DNSPolicy {
311309

312310
//HealthCheck
313311

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 {
315313
return p.WithHealthCheck(HealthCheckSpec{
316314
Endpoint: endpoint,
317315
Port: port,

api/v1alpha1/zz_generated.deepcopy.go

+2-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bundle/manifests/kuadrant-operator.clusterserviceversion.yaml

+8-18
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,14 @@ spec:
262262
- patch
263263
- update
264264
- watch
265+
- apiGroups:
266+
- ""
267+
resources:
268+
- namespaces
269+
verbs:
270+
- get
271+
- list
272+
- watch
265273
- apiGroups:
266274
- extensions.istio.io
267275
resources:
@@ -347,24 +355,6 @@ spec:
347355
- get
348356
- patch
349357
- update
350-
- apiGroups:
351-
- kuadrant.io
352-
resources:
353-
- dnshealthcheckprobes
354-
verbs:
355-
- create
356-
- delete
357-
- get
358-
- list
359-
- patch
360-
- update
361-
- watch
362-
- apiGroups:
363-
- kuadrant.io
364-
resources:
365-
- dnshealthcheckprobes/status
366-
verbs:
367-
- get
368358
- apiGroups:
369359
- kuadrant.io
370360
resources:

bundle/manifests/kuadrant.io_dnspolicies.yaml

+1-8
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,7 @@ spec:
6868
the listeners assigned to the target gateway
6969
properties:
7070
additionalHeadersRef:
71-
properties:
72-
name:
73-
type: string
74-
required:
75-
- name
76-
type: object
71+
type: string
7772
allowInsecureCertificates:
7873
type: boolean
7974
endpoint:
@@ -89,8 +84,6 @@ spec:
8984
port:
9085
type: integer
9186
protocol:
92-
description: HealthProtocol represents the protocol to use when
93-
making a health check request
9487
type: string
9588
type: object
9689
loadBalancing:

bundle/metadata/dependencies.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ dependencies:
1010
- type: olm.package
1111
value:
1212
packageName: dns-operator
13-
version: "0.1.0"
13+
version: "0.0.0"
1414
- type: olm.package
1515
value:
1616
packageName: cert-manager

config/crd/bases/kuadrant.io_dnspolicies.yaml

+1-8
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,7 @@ spec:
6767
the listeners assigned to the target gateway
6868
properties:
6969
additionalHeadersRef:
70-
properties:
71-
name:
72-
type: string
73-
required:
74-
- name
75-
type: object
70+
type: string
7671
allowInsecureCertificates:
7772
type: boolean
7873
endpoint:
@@ -88,8 +83,6 @@ spec:
8883
port:
8984
type: integer
9085
protocol:
91-
description: HealthProtocol represents the protocol to use when
92-
making a health check request
9386
type: string
9487
type: object
9588
loadBalancing:

config/dependencies/dns/kustomization.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
resources:
2-
- github.com/kuadrant/dns-operator/config/default?ref=v0.1.0
2+
- github.com/kuadrant/dns-operator/config/default?ref=main
33

44
patches:
55
- path: deployment_patch.yaml

config/rbac/role.yaml

+8-18
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,14 @@ rules:
110110
- patch
111111
- update
112112
- watch
113+
- apiGroups:
114+
- ""
115+
resources:
116+
- namespaces
117+
verbs:
118+
- get
119+
- list
120+
- watch
113121
- apiGroups:
114122
- extensions.istio.io
115123
resources:
@@ -195,24 +203,6 @@ rules:
195203
- get
196204
- patch
197205
- update
198-
- apiGroups:
199-
- kuadrant.io
200-
resources:
201-
- dnshealthcheckprobes
202-
verbs:
203-
- create
204-
- delete
205-
- get
206-
- list
207-
- patch
208-
- update
209-
- watch
210-
- apiGroups:
211-
- kuadrant.io
212-
resources:
213-
- dnshealthcheckprobes/status
214-
verbs:
215-
- get
216206
- apiGroups:
217207
- kuadrant.io
218208
resources:

0 commit comments

Comments
 (0)