From 26e8fa4fd5e1dacef03e0886c948b63bd1c9c343 Mon Sep 17 00:00:00 2001 From: Yaroslav Volkov Date: Tue, 19 Dec 2023 17:42:35 +0200 Subject: [PATCH] refactor(refOrFieldError): Update error text --- pkg/webhook/validator.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/webhook/validator.go b/pkg/webhook/validator.go index 7f9879e06..28766e2c0 100644 --- a/pkg/webhook/validator.go +++ b/pkg/webhook/validator.go @@ -1216,7 +1216,7 @@ func refOrFieldError(image, field string, index int) *apis.FieldError { } if _, ok := ref.(name.Digest); !ok { return apis.ErrInvalidValue( - fmt.Sprintf("%s must be an image digest", image), + fmt.Sprintf("%s must be an image digest or image does not exist", image), "image", ).ViaFieldIndex(field, index) }