From 3453612dc698d2948fade145025912408cfd427f Mon Sep 17 00:00:00 2001 From: Eike David Lenz Date: Tue, 11 Aug 2020 10:55:41 +0200 Subject: [PATCH] update goharbor-client and BuildClient() func --- go.mod | 2 +- go.sum | 2 ++ pkg/controller/internal/api_client.go | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/go.mod b/go.mod index dd34890..4f81711 100644 --- a/go.mod +++ b/go.mod @@ -14,7 +14,7 @@ require ( github.com/json-iterator/go v1.1.8 // indirect github.com/mattn/go-colorable v0.1.6 // indirect github.com/mittwald/go-helm-client v0.2.0 - github.com/mittwald/goharbor-client v1.0.1 + github.com/mittwald/goharbor-client v1.0.3 github.com/operator-framework/operator-sdk v0.16.0 github.com/spf13/pflag v1.0.5 github.com/spf13/viper v1.4.0 diff --git a/go.sum b/go.sum index 858b59b..2417465 100644 --- a/go.sum +++ b/go.sum @@ -660,6 +660,8 @@ github.com/mittwald/go-helm-client v0.2.0 h1:SncUYLC+g2aTho6IPPMT0ICSXsi1sSUC4rz github.com/mittwald/go-helm-client v0.2.0/go.mod h1:I7ckTZWf4GSsaz399Hku6iG6wA9TdTvQM40T8TnlN28= github.com/mittwald/goharbor-client v1.0.1 h1:kVfppDh/R7PrfFRyR4A/BoGE8uaY7zmMKNKjUxmG154= github.com/mittwald/goharbor-client v1.0.1/go.mod h1:vsyXzu5KJYUCzey+G75KtRdDGVjSbCXu/9tTKC85BJQ= +github.com/mittwald/goharbor-client v1.0.3 h1:Rcpv8skea7/LngU9crogpFYlhqdIn+Zj10rNDje2o84= +github.com/mittwald/goharbor-client v1.0.3/go.mod h1:vsyXzu5KJYUCzey+G75KtRdDGVjSbCXu/9tTKC85BJQ= github.com/moby/moby v0.7.3-0.20190826074503-38ab9da00309 h1:cvy4lBOYN3gKfKj8Lzz5Q9TfviP+L7koMHY7SvkyTKs= github.com/moby/moby v0.7.3-0.20190826074503-38ab9da00309/go.mod h1:fDXVQ6+S340veQPv35CzDahGBmHsiclFwfEygB/TWMc= github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= diff --git a/pkg/controller/internal/api_client.go b/pkg/controller/internal/api_client.go index dedf2f3..a7c6646 100644 --- a/pkg/controller/internal/api_client.go +++ b/pkg/controller/internal/api_client.go @@ -30,5 +30,5 @@ func BuildClient(ctx context.Context, client client.Client, return nil, err } - return h.NewRESTClientForHost(harbor.Spec.InstanceURL, "/api", "admin", corePassword), nil + return h.NewRESTClientForHost(harbor.Spec.InstanceURL+"/api", "admin", corePassword) }