From 426409ab2e70cead29bf8c9d921ac7570b988a0f Mon Sep 17 00:00:00 2001 From: jacob Date: Sun, 15 Aug 2021 18:37:05 -0700 Subject: [PATCH] address PR f'back --- pkg/apis/provisioning/v1alpha3/provisioner_validation.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/apis/provisioning/v1alpha3/provisioner_validation.go b/pkg/apis/provisioning/v1alpha3/provisioner_validation.go index bacc6f8b4c7f..155392a41930 100644 --- a/pkg/apis/provisioning/v1alpha3/provisioner_validation.go +++ b/pkg/apis/provisioning/v1alpha3/provisioner_validation.go @@ -107,7 +107,7 @@ func (c *Cluster) validate() (errs *apis.FieldError) { // url.Parse() will accept a lot of input without error; make // sure it's a real URL if err != nil || !endpoint.IsAbs() || endpoint.Hostname() == "" { - errs = errs.Also(apis.ErrInvalidValue(c.Endpoint, "endpoint")) + errs = errs.Also(apis.ErrInvalidValue(fmt.Sprintf("%s not a valid URL", c.Endpoint), "endpoint")) } } return errs