From a2fda441106b2b500656eaf0b11be3125d65eb71 Mon Sep 17 00:00:00 2001 From: Dario Tranchitella Date: Thu, 12 Aug 2021 17:01:54 +0200 Subject: [PATCH] fix: NewIngressHostnameCollision is returning pointer for error parsing --- pkg/webhook/ingress/errors.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/webhook/ingress/errors.go b/pkg/webhook/ingress/errors.go index ba6c37f3..6c6b18ca 100644 --- a/pkg/webhook/ingress/errors.go +++ b/pkg/webhook/ingress/errors.go @@ -41,7 +41,7 @@ func (i ingressHostnameCollision) Error() string { } func NewIngressHostnameCollision(hostname string) error { - return ingressHostnameCollision{hostname: hostname} + return &ingressHostnameCollision{hostname: hostname} } func NewIngressHostnamesNotValid(invalidHostnames []string, notMatchingHostnames []string, spec capsulev1beta1.AllowedListSpec) error {