support oneclient token in secrets

Signed-off-by: Travis Glenn Hansen <travisghansen@yahoo.com>
This commit is contained in:
Travis Glenn Hansen 2022-02-04 06:41:45 -07:00
parent 38199e90b7
commit 773336e110
1 changed files with 6 additions and 2 deletions

View File

@ -596,8 +596,12 @@ class CsiBaseDriver {
});
}
if (volume_context.token) {
mount_flags.push("-t", volume_context.token);
if (normalizedSecrets.token) {
mount_flags.push("-t", normalizedSecrets.token);
} else {
if (volume_context.token) {
mount_flags.push("-t", volume_context.token);
}
}
result = await oneclient.mount(