Skip to content

Commit

Permalink
fix(token-url): remove double https scheme
Browse files Browse the repository at this point in the history
Signed-off-by: Jeremie Monsinjon <jeremie.monsinjon@corp.ovh.com>
  • Loading branch information
Jeremie Monsinjon committed Jan 15, 2020
1 parent b698685 commit 0cf31d2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions controllers/harbor/components/registry/deployments.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,10 +185,10 @@ func (r *Registry) GetDeployments(ctx context.Context) []*appsv1.Deployment { //
Value: "",
}, {
Name: "REGISTRY_HTTP_HOST",
Value: fmt.Sprintf("https://%s", r.harbor.Spec.PublicURL),
Value: r.harbor.Spec.PublicURL,
}, {
Name: "REGISTRY_AUTH_TOKEN_REALM",
Value: fmt.Sprintf("https://%s/service/token", r.harbor.Spec.PublicURL),
Value: fmt.Sprintf("%s/service/token", r.harbor.Spec.PublicURL),
}, {
Name: "REGISTRY_NOTIFICATION_ENDPOINTS_0_URL",
Value: r.harbor.NormalizeComponentName(containerregistryv1alpha1.CoreName),
Expand Down Expand Up @@ -246,10 +246,10 @@ func (r *Registry) GetDeployments(ctx context.Context) []*appsv1.Deployment { //
Env: []corev1.EnvVar{
{
Name: "REGISTRY_HTTP_HOST",
Value: fmt.Sprintf("https://%s", r.harbor.Spec.PublicURL),
Value: r.harbor.Spec.PublicURL,
}, {
Name: "REGISTRY_AUTH_TOKEN_REALM",
Value: fmt.Sprintf("https://%s/service/token", r.harbor.Spec.PublicURL),
Value: fmt.Sprintf("%s/service/token", r.harbor.Spec.PublicURL),
}, {
Name: "REGISTRY_NOTIFICATION_ENDPOINTS_0_URL",
Value: r.harbor.NormalizeComponentName(containerregistryv1alpha1.CoreName),
Expand Down

0 comments on commit 0cf31d2

Please sign in to comment.