Skip to content

Commit

Permalink
fix(expose): fix go-lint
Browse files Browse the repository at this point in the history
Signed-off-by: wangcanfeng <wangcanfeng@corp.netease.com>
  • Loading branch information
wangcanfeng authored and bitsf committed Dec 7, 2021
1 parent be9c358 commit afac1ef
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion controllers/goharbor/harbor/ingresses.go
Expand Up @@ -32,7 +32,6 @@ func (r *Reconciler) AddCoreIngress(ctx context.Context, harbor *goharborv1.Harb
}

func (r *Reconciler) GetCoreIngress(ctx context.Context, harbor *goharborv1.Harbor) (*netv1.Ingress, error) {

var tls []netv1.IngressTLS

if harbor.Spec.Expose.Core.TLS.Enabled() {
Expand Down
2 changes: 1 addition & 1 deletion controllers/goharbor/harbor_test.go
Expand Up @@ -150,7 +150,7 @@ func setupValidHarbor(ctx context.Context, ns string) (Resource, client.ObjectKe
Expose: goharborv1.HarborExposeSpec{
Core: goharborv1.HarborExposeComponentSpec{
TLS: nil,
Ingress: &goharborv1.HarborExposeIngressSpec{
Ingress: goharborv1.HarborExposeIngressSpec{
Host: "core.goharbor.io",
},
},
Expand Down

0 comments on commit afac1ef

Please sign in to comment.