diff --git a/pkg/config/config.go b/pkg/config/config.go index 79447eb..a4a8913 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -59,7 +59,8 @@ func (kv *k8sVersionValue) UnmarshalText(v []byte) error { } func splitCSV(csvStr string) map[string]struct{} { - splitValues := strings.Split(csvStr, ",") + sanitizedValues := strings.ReplaceAll(csvStr, " ", "") + splitValues := strings.Split(sanitizedValues, ",") valuesMap := map[string]struct{}{} for _, kind := range splitValues {