1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2025-03-05 16:27:05 +00:00

Merge pull request #682 from marquiz/fixes/kconfig-length

source/kernel: drop length check of kconfig values
This commit is contained in:
Kubernetes Prow Robot 2021-12-01 10:03:16 -08:00 committed by GitHub
commit 5de3cefa56
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -25,9 +25,6 @@ import (
"path/filepath"
"strings"
"k8s.io/apimachinery/pkg/util/validation"
"k8s.io/klog/v2"
"sigs.k8s.io/node-feature-discovery/source"
)
@ -113,10 +110,6 @@ func parseKconfig(configPath string) (map[string]string, error) {
kconfig[name] = "true"
} else {
value := strings.Trim(split[1], `"`)
if len(value) > validation.LabelValueMaxLength {
klog.Warningf("ignoring kconfig option '%s': value exceeds max length of %d characters", name, validation.LabelValueMaxLength)
continue
}
kconfig[name] = value
}
}