@@ -24,8 +24,6 @@ import (
24
24
"strings"
25
25
26
26
log "github.com/sirupsen/logrus"
27
-
28
- metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
29
27
)
30
28
31
29
const (
@@ -337,48 +335,6 @@ func FilterEndpointsByOwnerID(ownerID string, eps []*Endpoint) []*Endpoint {
337
335
return filtered
338
336
}
339
337
340
- // DNSEndpointSpec defines the desired state of DNSEndpoint
341
- // +kubebuilder:object:generate=true
342
- type DNSEndpointSpec struct {
343
- Endpoints []* Endpoint `json:"endpoints,omitempty"`
344
- }
345
-
346
- // DNSEndpointStatus defines the observed state of DNSEndpoint
347
- type DNSEndpointStatus struct {
348
- // The generation observed by the external-dns controller.
349
- // +optional
350
- ObservedGeneration int64 `json:"observedGeneration,omitempty"`
351
- }
352
-
353
- // +genclient
354
- // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
355
-
356
- // DNSEndpoint is a contract that a user-specified CRD must implement to be used as a source for external-dns.
357
- // The user-specified CRD should also have the status sub-resource.
358
- // +k8s:openapi-gen=true
359
- // +groupName=externaldns.k8s.io
360
- // +kubebuilder:resource:path=dnsendpoints
361
- // +kubebuilder:object:root=true
362
- // +kubebuilder:subresource:status
363
- // +kubebuilder:metadata:annotations="api-approved.kubernetes.io=https://github.com/kubernetes-sigs/external-dns/pull/2007"
364
- // +versionName=v1alpha1
365
-
366
- type DNSEndpoint struct {
367
- metav1.TypeMeta `json:",inline"`
368
- metav1.ObjectMeta `json:"metadata,omitempty"`
369
-
370
- Spec DNSEndpointSpec `json:"spec,omitempty"`
371
- Status DNSEndpointStatus `json:"status,omitempty"`
372
- }
373
-
374
- // +kubebuilder:object:root=true
375
- // DNSEndpointList is a list of DNSEndpoint objects
376
- type DNSEndpointList struct {
377
- metav1.TypeMeta `json:",inline"`
378
- metav1.ListMeta `json:"metadata,omitempty"`
379
- Items []DNSEndpoint `json:"items"`
380
- }
381
-
382
338
// RemoveDuplicates returns a slice holding the unique endpoints.
383
339
// This function doesn't contemplate the Targets of an Endpoint
384
340
// as part of the primary Key
@@ -400,7 +356,7 @@ func RemoveDuplicates(endpoints []*Endpoint) []*Endpoint {
400
356
return result
401
357
}
402
358
403
- // Check endpoint if is it properly formatted according to RFC standards
359
+ // CheckEndpoint Check if endpoint is properly formatted according to RFC standards
404
360
func (e * Endpoint ) CheckEndpoint () bool {
405
361
switch recordType := e .RecordType ; recordType {
406
362
case RecordTypeMX :
0 commit comments