mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-10 00:10:20 +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
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// runVolumeHealer heal the volumes attached on a node.
|
// RunVolumeHealer heal the volumes attached on a node.
|
||||||
func runVolumeHealer(ns *NodeServer, conf *util.Config) error {
|
func RunVolumeHealer(ns *NodeServer, conf *util.Config) error {
|
||||||
c, err := kubeclient.NewK8sClient()
|
c, err := kubeclient.NewK8sClient()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.ErrorLogMsg("failed to connect to Kubernetes: %v", err)
|
log.ErrorLogMsg("failed to connect to Kubernetes: %v", err)
|
||||||
|
Loading…
Reference in New Issue
Block a user