mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-03 02:07:38 +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:
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user