zgzzbws commented on code in PR #58730:
URL: https://github.com/apache/spark/pull/58730#discussion_r4044731481
##########
resource-managers/kubernetes/core/src/test/scala/org/apache/spark/deploy/k8s/KubernetesTestConf.scala:
##########
@@ -143,6 +143,11 @@ object KubernetesTestConf {
(KUBERNETES_VOLUMES_NFS_TYPE, Map(
KUBERNETES_VOLUMES_OPTIONS_PATH_KEY -> path,
KUBERNETES_VOLUMES_OPTIONS_SERVER_KEY -> server))
+
+ case KubernetesCSIVolumeConf(driverName, attributes) =>
+ (KUBERNETES_VOLUMES_CSI_TYPE, Map(
+ KUBERNETES_VOLUMES_OPTIONS_CSI_DRIVER_NAME_KEY -> driverName
+ ) ++ attributes)
Review Comment:
The helper now writes the driver as options.driver and attributes with the
options.volumeAttributes. prefix, so tests construct KubernetesCSIVolumeConf
with the same (stripped) keys the parser produces.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]