Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
marcmognol committed Apr 23, 2024
1 parent bcbf041 commit 06b92e7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/provider/kubernetes/crd/kubernetes_http.go
Original file line number Diff line number Diff line change
Expand Up @@ -394,8 +394,7 @@ func (c configBuilder) loadServers(parentNamespace string, svc traefikv1alpha1.L

var servers []dynamic.Server
if service.Spec.Type != corev1.ServiceTypeExternalName && svc.HealthCheck != nil {
return nil, fmt.Errorf("HealthCheck allowed only for ExternalName services: %s/%s", namespace, sanitizedName)
}
return nil, fmt.Errorf("HealthCheck allowed only for ExternalName services: %s/%s", namespace, sanitizedName)
}

if service.Spec.Type == corev1.ServiceTypeExternalName {
Expand Down

0 comments on commit 06b92e7

Please sign in to comment.