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:
commit
5de3cefa56
1 changed files with 0 additions and 7 deletions
|
@ -25,9 +25,6 @@ import (
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"k8s.io/apimachinery/pkg/util/validation"
|
|
||||||
"k8s.io/klog/v2"
|
|
||||||
|
|
||||||
"sigs.k8s.io/node-feature-discovery/source"
|
"sigs.k8s.io/node-feature-discovery/source"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -113,10 +110,6 @@ func parseKconfig(configPath string) (map[string]string, error) {
|
||||||
kconfig[name] = "true"
|
kconfig[name] = "true"
|
||||||
} else {
|
} else {
|
||||||
value := strings.Trim(split[1], `"`)
|
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
|
kconfig[name] = value
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue