add optional callContext to all remaining driver calls
This commit is contained in:
parent
81be2d6f96
commit
f87fb5621a
|
|
@ -78,7 +78,7 @@ class ControllerLocalHostpathDriver extends ControllerClientCommonDriver {
|
|||
* @param {*} call
|
||||
* @returns
|
||||
*/
|
||||
async NodeGetInfo(call) {
|
||||
async NodeGetInfo(call, callContext) {
|
||||
const response = await super.NodeGetInfo(...arguments);
|
||||
response.accessible_topology = {
|
||||
segments: {
|
||||
|
|
|
|||
|
|
@ -270,7 +270,7 @@ class ControllerObjectiveFSDriver extends CsiBaseDriver {
|
|||
*
|
||||
* @param {*} call
|
||||
*/
|
||||
async Probe(call) {
|
||||
async Probe(call, callContext) {
|
||||
const driver = this;
|
||||
const pool = _.get(driver.options, "objectivefs.pool");
|
||||
const object_store = _.get(driver.options, "objectivefs.env.OBJECTSTORE");
|
||||
|
|
@ -301,7 +301,7 @@ class ControllerObjectiveFSDriver extends CsiBaseDriver {
|
|||
*
|
||||
* @param {*} call
|
||||
*/
|
||||
async CreateVolume(call) {
|
||||
async CreateVolume(call, callContext) {
|
||||
const driver = this;
|
||||
const ofsClient = await driver.getObjectiveFSClient();
|
||||
const pool = _.get(driver.options, "objectivefs.pool");
|
||||
|
|
@ -446,7 +446,7 @@ class ControllerObjectiveFSDriver extends CsiBaseDriver {
|
|||
*
|
||||
* @param {*} call
|
||||
*/
|
||||
async DeleteVolume(call) {
|
||||
async DeleteVolume(call, callContext) {
|
||||
const driver = this;
|
||||
const ofsClient = await driver.getObjectiveFSClient();
|
||||
const pool = _.get(driver.options, "objectivefs.pool");
|
||||
|
|
@ -481,7 +481,7 @@ class ControllerObjectiveFSDriver extends CsiBaseDriver {
|
|||
*
|
||||
* @param {*} call
|
||||
*/
|
||||
async ControllerExpandVolume(call) {
|
||||
async ControllerExpandVolume(call, callContext) {
|
||||
throw new GrpcError(
|
||||
grpc.status.UNIMPLEMENTED,
|
||||
`operation not supported by driver`
|
||||
|
|
@ -493,7 +493,7 @@ class ControllerObjectiveFSDriver extends CsiBaseDriver {
|
|||
*
|
||||
* @param {*} call
|
||||
*/
|
||||
async GetCapacity(call) {
|
||||
async GetCapacity(call, callContext) {
|
||||
throw new GrpcError(
|
||||
grpc.status.UNIMPLEMENTED,
|
||||
`operation not supported by driver`
|
||||
|
|
@ -506,7 +506,7 @@ class ControllerObjectiveFSDriver extends CsiBaseDriver {
|
|||
*
|
||||
* @param {*} call
|
||||
*/
|
||||
async ListVolumes(call) {
|
||||
async ListVolumes(call, callContext) {
|
||||
const driver = this;
|
||||
const ofsClient = await driver.getObjectiveFSClient();
|
||||
const pool = _.get(driver.options, "objectivefs.pool");
|
||||
|
|
@ -588,7 +588,7 @@ class ControllerObjectiveFSDriver extends CsiBaseDriver {
|
|||
*
|
||||
* @param {*} call
|
||||
*/
|
||||
async ListSnapshots(call) {
|
||||
async ListSnapshots(call, callContext) {
|
||||
throw new GrpcError(
|
||||
grpc.status.UNIMPLEMENTED,
|
||||
`operation not supported by driver`
|
||||
|
|
@ -599,7 +599,7 @@ class ControllerObjectiveFSDriver extends CsiBaseDriver {
|
|||
*
|
||||
* @param {*} call
|
||||
*/
|
||||
async CreateSnapshot(call) {
|
||||
async CreateSnapshot(call, callContext) {
|
||||
throw new GrpcError(
|
||||
grpc.status.UNIMPLEMENTED,
|
||||
`operation not supported by driver`
|
||||
|
|
@ -612,7 +612,7 @@ class ControllerObjectiveFSDriver extends CsiBaseDriver {
|
|||
*
|
||||
* @param {*} call
|
||||
*/
|
||||
async DeleteSnapshot(call) {
|
||||
async DeleteSnapshot(call, callContext) {
|
||||
throw new GrpcError(
|
||||
grpc.status.UNIMPLEMENTED,
|
||||
`operation not supported by driver`
|
||||
|
|
@ -623,7 +623,7 @@ class ControllerObjectiveFSDriver extends CsiBaseDriver {
|
|||
*
|
||||
* @param {*} call
|
||||
*/
|
||||
async ValidateVolumeCapabilities(call) {
|
||||
async ValidateVolumeCapabilities(call, callContext) {
|
||||
const driver = this;
|
||||
const ofsClient = await driver.getObjectiveFSClient();
|
||||
const pool = _.get(driver.options, "objectivefs.pool");
|
||||
|
|
|
|||
|
|
@ -227,7 +227,7 @@ class ControllerZfsLocalDriver extends ControllerZfsBaseDriver {
|
|||
* @param {*} call
|
||||
* @returns
|
||||
*/
|
||||
async NodeGetInfo(call) {
|
||||
async NodeGetInfo(call, callContext) {
|
||||
const response = await super.NodeGetInfo(...arguments);
|
||||
response.accessible_topology = {
|
||||
segments: {
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ class FreeNASSshDriver extends ControllerZfsBaseDriver {
|
|||
*
|
||||
* @param {*} call
|
||||
*/
|
||||
async Probe(call) {
|
||||
async Probe(call, callContext) {
|
||||
const driver = this;
|
||||
|
||||
if (driver.ctx.args.csiMode.includes("controller")) {
|
||||
|
|
|
|||
|
|
@ -242,7 +242,7 @@ class NodeManualDriver extends CsiBaseDriver {
|
|||
*
|
||||
* @param {*} call
|
||||
*/
|
||||
async CreateVolume(call) {
|
||||
async CreateVolume(call, callContext) {
|
||||
throw new GrpcError(
|
||||
grpc.status.UNIMPLEMENTED,
|
||||
`operation not supported by driver`
|
||||
|
|
@ -253,7 +253,7 @@ class NodeManualDriver extends CsiBaseDriver {
|
|||
*
|
||||
* @param {*} call
|
||||
*/
|
||||
async DeleteVolume(call) {
|
||||
async DeleteVolume(call, callContext) {
|
||||
throw new GrpcError(
|
||||
grpc.status.UNIMPLEMENTED,
|
||||
`operation not supported by driver`
|
||||
|
|
@ -264,7 +264,7 @@ class NodeManualDriver extends CsiBaseDriver {
|
|||
*
|
||||
* @param {*} call
|
||||
*/
|
||||
async ControllerExpandVolume(call) {
|
||||
async ControllerExpandVolume(call, callContext) {
|
||||
throw new GrpcError(
|
||||
grpc.status.UNIMPLEMENTED,
|
||||
`operation not supported by driver`
|
||||
|
|
@ -275,7 +275,7 @@ class NodeManualDriver extends CsiBaseDriver {
|
|||
*
|
||||
* @param {*} call
|
||||
*/
|
||||
async GetCapacity(call) {
|
||||
async GetCapacity(call, callContext) {
|
||||
throw new GrpcError(
|
||||
grpc.status.UNIMPLEMENTED,
|
||||
`operation not supported by driver`
|
||||
|
|
@ -286,7 +286,7 @@ class NodeManualDriver extends CsiBaseDriver {
|
|||
*
|
||||
* @param {*} call
|
||||
*/
|
||||
async ListVolumes(call) {
|
||||
async ListVolumes(call, callContext) {
|
||||
throw new GrpcError(
|
||||
grpc.status.UNIMPLEMENTED,
|
||||
`operation not supported by driver`
|
||||
|
|
@ -297,7 +297,7 @@ class NodeManualDriver extends CsiBaseDriver {
|
|||
*
|
||||
* @param {*} call
|
||||
*/
|
||||
async ListSnapshots(call) {
|
||||
async ListSnapshots(call, callContext) {
|
||||
throw new GrpcError(
|
||||
grpc.status.UNIMPLEMENTED,
|
||||
`operation not supported by driver`
|
||||
|
|
@ -308,7 +308,7 @@ class NodeManualDriver extends CsiBaseDriver {
|
|||
*
|
||||
* @param {*} call
|
||||
*/
|
||||
async CreateSnapshot(call) {
|
||||
async CreateSnapshot(call, callContext) {
|
||||
throw new GrpcError(
|
||||
grpc.status.UNIMPLEMENTED,
|
||||
`operation not supported by driver`
|
||||
|
|
@ -319,7 +319,7 @@ class NodeManualDriver extends CsiBaseDriver {
|
|||
*
|
||||
* @param {*} call
|
||||
*/
|
||||
async DeleteSnapshot(call) {
|
||||
async DeleteSnapshot(call, callContext) {
|
||||
throw new GrpcError(
|
||||
grpc.status.UNIMPLEMENTED,
|
||||
`operation not supported by driver`
|
||||
|
|
@ -330,7 +330,7 @@ class NodeManualDriver extends CsiBaseDriver {
|
|||
*
|
||||
* @param {*} call
|
||||
*/
|
||||
async ValidateVolumeCapabilities(call) {
|
||||
async ValidateVolumeCapabilities(call, callContext) {
|
||||
throw new GrpcError(
|
||||
grpc.status.UNIMPLEMENTED,
|
||||
`operation not supported by driver`
|
||||
|
|
|
|||
Loading…
Reference in New Issue