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 {