mirror of
https://github.com/TECHNOFAB11/zfs-localpv.git
synced 2026-02-02 15:45:13 +01:00
feat(scheduling): add zfs pool capacity tracking (#335)
Signed-off-by: shubham <shubham.bajpai@mayadata.io>
This commit is contained in:
parent
4fce22afb5
commit
3eb2c9e894
26 changed files with 2284 additions and 7 deletions
|
|
@ -30,6 +30,7 @@ import (
|
|||
"github.com/openebs/zfs-localpv/pkg/mgmt/restore"
|
||||
"github.com/openebs/zfs-localpv/pkg/mgmt/snapshot"
|
||||
"github.com/openebs/zfs-localpv/pkg/mgmt/volume"
|
||||
"github.com/openebs/zfs-localpv/pkg/mgmt/zfsnode"
|
||||
"github.com/openebs/zfs-localpv/pkg/zfs"
|
||||
"golang.org/x/net/context"
|
||||
"golang.org/x/sys/unix"
|
||||
|
|
@ -54,6 +55,14 @@ func NewNode(d *CSIDriver) csi.NodeServer {
|
|||
// set up signals so we handle the first shutdown signal gracefully
|
||||
stopCh := signals.SetupSignalHandler()
|
||||
|
||||
// start the zfsnode resource watcher
|
||||
go func() {
|
||||
err := zfsnode.Start(&ControllerMutex, stopCh)
|
||||
if err != nil {
|
||||
klog.Fatalf("Failed to start ZFS node controller: %s", err.Error())
|
||||
}
|
||||
}()
|
||||
|
||||
// start the zfsvolume watcher
|
||||
go func() {
|
||||
err := volume.Start(&ControllerMutex, stopCh)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue