mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2024-12-14 11:57:51 +00:00
Merge pull request #665 from marquiz/fixes/selinux
source/kernel: don't advertise selinux.enabled=false
This commit is contained in:
commit
7e4dd6c8d2
1 changed files with 2 additions and 2 deletions
|
@ -105,8 +105,8 @@ func (s *kernelSource) GetLabels() (source.FeatureLabels, error) {
|
|||
}
|
||||
}
|
||||
|
||||
for k, v := range features.Values[SelinuxFeature].Elements {
|
||||
labels[SelinuxFeature+"."+k] = v
|
||||
if enabled, ok := features.Values[SelinuxFeature].Elements["enabled"]; ok && enabled == "true" {
|
||||
labels["selinux.enabled"] = "true"
|
||||
}
|
||||
|
||||
return labels, nil
|
||||
|
|
Loading…
Reference in a new issue