Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Replacement for kubernetes-sigs#2410
  • Loading branch information
stensonb authored Dec 18, 2021
1 parent d1a22e0 commit 06dd0fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/ingress/cert_discovery.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,10 @@ func (d *acmCertDiscovery) Discover(ctx context.Context, tlsHosts []string) ([]s
}

if len(certARNsForHost) > 1 {
return nil, errors.Errorf("multiple certificate found for host: %s, certARNs: %v", host, certARNsForHost)
return nil, errors.Errorf("multiple certificates found for host: %s, certARNs: %v", host, certARNsForHost)
}
if len(certARNsForHost) == 0 {
return nil, errors.Errorf("none certificate found for host: %s", host)
return nil, errors.Errorf("no certificate found for host: %s", host)
}
certARNs.Insert(certARNsForHost...)
}
Expand Down

0 comments on commit 06dd0fd

Please sign in to comment.