From e9b6d9f5e070706a60fa4a6cf03e021331b1f2c0 Mon Sep 17 00:00:00 2001 From: Paul Wells Date: Wed, 24 Sep 2025 15:16:18 -0700 Subject: [PATCH] handle boolean pointers in config linter --- pkg/config/configtest/checkyamltag.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkg/config/configtest/checkyamltag.go b/pkg/config/configtest/checkyamltag.go index 2458a5b9e..139dd69c3 100644 --- a/pkg/config/configtest/checkyamltag.go +++ b/pkg/config/configtest/checkyamltag.go @@ -36,7 +36,11 @@ func checkYAMLTags(t reflect.Type, seen map[reflect.Type]struct{}) error { continue } - if field.Type.Kind() == reflect.Bool { + typ := field.Type + if field.Type.Kind() == reflect.Pointer { + typ = field.Type.Elem() + } + if typ.Kind() == reflect.Bool { // ignore boolean fields continue }