feat(scheduling): add zfs pool capacity tracking (#335)

Signed-off-by: shubham <shubham.bajpai@mayadata.io>
This commit is contained in:
Shubham Bajpai 2021-05-31 18:59:59 +05:30 committed by GitHub
parent 4fce22afb5
commit 3eb2c9e894
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
26 changed files with 2284 additions and 7 deletions

View file

@ -26,6 +26,8 @@ import (
type Interface interface {
// ZFSBackups returns a ZFSBackupInformer.
ZFSBackups() ZFSBackupInformer
// ZFSNodes returns a ZFSNodeInformer.
ZFSNodes() ZFSNodeInformer
// ZFSRestores returns a ZFSRestoreInformer.
ZFSRestores() ZFSRestoreInformer
// ZFSSnapshots returns a ZFSSnapshotInformer.
@ -50,6 +52,11 @@ func (v *version) ZFSBackups() ZFSBackupInformer {
return &zFSBackupInformer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions}
}
// ZFSNodes returns a ZFSNodeInformer.
func (v *version) ZFSNodes() ZFSNodeInformer {
return &zFSNodeInformer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions}
}
// ZFSRestores returns a ZFSRestoreInformer.
func (v *version) ZFSRestores() ZFSRestoreInformer {
return &zFSRestoreInformer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions}