Skip to content

Commit

Permalink
cert-manager: use strings.SplitN to detect issuerName
Browse files Browse the repository at this point in the history
  • Loading branch information
wpjunior committed Oct 16, 2024
1 parent 9f7a13d commit 0f3be9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kubernetes/ingress.go
Original file line number Diff line number Diff line change
Expand Up @@ -836,7 +836,7 @@ func (s *IngressService) validateCustomIssuer(ctx context.Context, resource Cert
func (s *IngressService) getCertManagerIssuerData(ctx context.Context, issuerName, namespace string) (CertManagerIssuerData, error) {
if strings.Contains(issuerName, ".") {
// Treat as external issuer since it's more general
parts := strings.Split(issuerName, ".")
parts := strings.SplitN(issuerName, ".", 3)
if len(parts) != 3 {
return CertManagerIssuerData{}, fmt.Errorf(errExternalIssuerInvalid, issuerName)
}
Expand Down

0 comments on commit 0f3be9c

Please sign in to comment.