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:
Abhinandan Purkait 2021-06-04 07:32:24 +05:30 committed by GitHub
parent 3eb2c9e894
commit 83f24628ab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View file

@ -472,7 +472,7 @@ func (cs *controller) CreateVolume(
}
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().
WithName(volName).

View file

@ -58,6 +58,10 @@ const (
ZFSStatusFailed string = "Failed"
// ZFSStatusReady shows object has been processed
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 (