config: use ErrInvalidName

SA1019: types.RegexError is deprecated: use [ErrInvalidName] instead.

Making linter happy.

Signed-off-by: flouthoc <flouthoc.git@gmail.com>
This commit is contained in:
flouthoc
2025-04-01 10:14:48 -07:00
parent 51bb71d1b3
commit 74356e1b5a

View File

@ -18,7 +18,7 @@ var (
// constant, but Go won't let us do that. // constant, but Go won't let us do that.
NameRegex = types.NameRegex NameRegex = types.NameRegex
// RegexError is thrown in presence of an invalid container/pod name. // RegexError is thrown in presence of an invalid container/pod name.
RegexError = types.RegexError RegexError = types.ErrInvalidName
) )
const ( const (