Report a metric for time taken to perform recursive permission change

This commit is contained in:
jornshen
2020-10-26 15:11:31 +08:00
parent 16e18a590f
commit 4ed7709774
28 changed files with 48 additions and 33 deletions

View File

@@ -109,6 +109,11 @@ func OperationCompleteHook(plugin, operationName string) func(*error) {
return opComplete
}
// FSGroupCompleteHook returns a hook to call when volume recursive permission is changed
func FSGroupCompleteHook(pluginName string) func(*error) {
return OperationCompleteHook(pluginName, "volume_fsgroup_recursive_apply")
}
// GetFullQualifiedPluginNameForVolume returns full qualified plugin name for
// given volume. For CSI plugin, it appends plugin driver name at the end of
// plugin name, e.g. kubernetes.io/csi:csi-hostpath. It helps to distinguish