Skip to content

Commit

Permalink
do not expect Endpoints for ExternalName Service type (#150)
Browse files Browse the repository at this point in the history
  • Loading branch information
wasaga committed Feb 22, 2022
1 parent 6551417 commit edf9269
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 51 deletions.
4 changes: 4 additions & 0 deletions controllers/fetch.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,10 @@ func (r *ingressController) fetchIngressService(
}
servicesDst[name] = service

if service.Spec.Type == corev1.ServiceTypeExternalName {
return nil
}

endpoint := new(corev1.Endpoints)
if err := r.Client.Get(ctx, name, endpoint); err != nil {
if apierrors.IsNotFound(err) {
Expand Down

0 comments on commit edf9269

Please sign in to comment.