Skip to content

Commit

Permalink
fix core token when using "https://IP:port" as the external URL
Browse files Browse the repository at this point in the history
Signed-off-by: Ziming Zhang <zziming@vmware.com>
  • Loading branch information
bitsf committed Nov 8, 2021
1 parent c9d380d commit cbcfec0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/goharbor/harbor/core.go
Expand Up @@ -251,7 +251,7 @@ func (r *Reconciler) GetCoreTokenCertificate(ctx context.Context, harbor *goharb
Algorithm: certv1.RSAKeyAlgorithm,
Size: CoreTokenServiceDefaultKeySize,
},
DNSNames: []string{publicDNS.Host},
DNSNames: []string{publicDNS.Hostname()},
SecretName: secretName,
Usages: []certv1.KeyUsage{certv1.UsageSigning},
IssuerRef: harbor.Spec.Core.TokenIssuer,
Expand Down

0 comments on commit cbcfec0

Please sign in to comment.