always return a capacity
This commit is contained in:
parent
f255bc7498
commit
a1c045ee7b
|
|
@ -708,9 +708,10 @@ class ControllerZfsSshBaseDriver extends CsiBaseDriver {
|
||||||
const res = {
|
const res = {
|
||||||
volume: {
|
volume: {
|
||||||
volume_id: name,
|
volume_id: name,
|
||||||
capacity_bytes: this.options.zfs.datasetEnableQuotas
|
capacity_bytes: capacity_bytes, // kubernetes currently pukes if capacity is returned as 0
|
||||||
? capacity_bytes
|
//capacity_bytes: this.options.zfs.datasetEnableQuotas
|
||||||
: 0,
|
// ? capacity_bytes
|
||||||
|
// : 0,
|
||||||
content_source: volume_content_source,
|
content_source: volume_content_source,
|
||||||
volume_context
|
volume_context
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue