mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-18 04:10:22 +00:00
rbd: export RunVolumeHealer() so that rbd/driver can start it
The rbd-driver calls rbd.runVolumeHealer() which is not available outside the rbd package. By moving the rbd-driver into its own package, RunVolumeHealer() needs to be exported. Signed-off-by: Niels de Vos <ndevos@redhat.com>
This commit is contained in:
parent
5baf9811f9
commit
3eeac3d36c
@ -127,8 +127,8 @@ func callNodeStageVolume(ns *NodeServer, c *k8s.Clientset, pv *v1.PersistentVolu
|
||||
return nil
|
||||
}
|
||||
|
||||
// runVolumeHealer heal the volumes attached on a node.
|
||||
func runVolumeHealer(ns *NodeServer, conf *util.Config) error {
|
||||
// RunVolumeHealer heal the volumes attached on a node.
|
||||
func RunVolumeHealer(ns *NodeServer, conf *util.Config) error {
|
||||
c, err := kubeclient.NewK8sClient()
|
||||
if err != nil {
|
||||
log.ErrorLogMsg("failed to connect to Kubernetes: %v", err)
|
||||
|
Loading…
Reference in New Issue
Block a user