Skip to content

Commit a2fda44

Browse files
committed
fix: NewIngressHostnameCollision is returning pointer for error parsing
1 parent 06330cf commit a2fda44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/webhook/ingress/errors.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ func (i ingressHostnameCollision) Error() string {
4141
}
4242

4343
func NewIngressHostnameCollision(hostname string) error {
44-
return ingressHostnameCollision{hostname: hostname}
44+
return &ingressHostnameCollision{hostname: hostname}
4545
}
4646

4747
func NewIngressHostnamesNotValid(invalidHostnames []string, notMatchingHostnames []string, spec capsulev1beta1.AllowedListSpec) error {

0 commit comments

Comments
 (0)