mirror of
https://github.com/TECHNOFAB11/zfs-localpv.git
synced 2025-12-12 06:20:11 +01:00
fix(cas): add cas-type key for zfs under volume attributes (#338)
Signed-off-by: Abhinandan-Purkait <abhinandan.purkait@mayadata.io>
This commit is contained in:
parent
3eb2c9e894
commit
83f24628ab
2 changed files with 5 additions and 1 deletions
|
|
@ -472,7 +472,7 @@ func (cs *controller) CreateVolume(
|
||||||
}
|
}
|
||||||
|
|
||||||
topology := map[string]string{zfs.ZFSTopologyKey: nodeid}
|
topology := map[string]string{zfs.ZFSTopologyKey: nodeid}
|
||||||
cntx := map[string]string{zfs.PoolNameKey: pool}
|
cntx := map[string]string{zfs.PoolNameKey: pool, zfs.OpenEBSCasTypeKey: zfs.ZFSCasTypeName}
|
||||||
|
|
||||||
return csipayload.NewCreateVolumeResponseBuilder().
|
return csipayload.NewCreateVolumeResponseBuilder().
|
||||||
WithName(volName).
|
WithName(volName).
|
||||||
|
|
|
||||||
|
|
@ -58,6 +58,10 @@ const (
|
||||||
ZFSStatusFailed string = "Failed"
|
ZFSStatusFailed string = "Failed"
|
||||||
// ZFSStatusReady shows object has been processed
|
// ZFSStatusReady shows object has been processed
|
||||||
ZFSStatusReady string = "Ready"
|
ZFSStatusReady string = "Ready"
|
||||||
|
// OpenEBSCasTypeKey for the cas-type label
|
||||||
|
OpenEBSCasTypeKey string = "openebs.io/cas-type"
|
||||||
|
// ZFSCasTypeName for the name of the cas-type
|
||||||
|
ZFSCasTypeName string = "localpv-zfs"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue