mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-19 09:52:49 +00:00
Don't bump nr. of admitted volumes on retry
AddPodToVolume is called periodically, it does not make sense to bump volume_manager_selinux_volumes_admitted_total on each call.
This commit is contained in:
parent
48ea6a3f3a
commit
05cd2ba863
@ -357,10 +357,6 @@ func (dsw *desiredStateOfWorld) AddPodToVolume(
|
||||
if err := handleSELinuxMetricError(fullErr, supported, seLinuxVolumeContextMismatchWarnings, seLinuxVolumeContextMismatchErrors); err != nil {
|
||||
return "", err
|
||||
}
|
||||
} else {
|
||||
if seLinuxFileLabel != "" {
|
||||
seLinuxVolumesAdmitted.Add(1.0)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user