support oneclient token in secrets
Signed-off-by: Travis Glenn Hansen <travisghansen@yahoo.com>
This commit is contained in:
parent
38199e90b7
commit
773336e110
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in New Issue