mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2025-03-05 08:17:04 +00:00
source/kernel: don't advertise selinux.enabled=false
Commit 0945019161
changed the behavior so
that NFD started to advertise also "false" status of selinux.enabled
label. This patch reverts this behavior (i.e. we only have
selinux.enabled=true). The rationale behind is avoiding any excess
labels - selinux.enabled=false label would be pointless noise in most
deployments.
This commit is contained in:
parent
c4af8a1229
commit
d60fcb98e4
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…
Add table
Reference in a new issue