You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// This function only adds the [`VolumeMount`] in case there is no volumeMount with the same mountPath already.
214
-
/// In case there already was a volumeMount with the same path already, an [`tracing::error`] is raised in case the
215
-
/// contents of the volumeMounts differ.
213
+
/// Adds a new [`VolumeMount`] to the container while ensuring that no colliding [`VolumeMount`]
214
+
/// exists.
216
215
///
217
-
/// Historically this function unconditionally added volumeMounts, which resulted in invalid
218
-
/// [`k8s_openapi::api::core::v1::PodSpec`]s, as volumeMounts where added multiple times - think of Trino using the same [`crate::commons::s3::S3Connection`]
219
-
/// two times, resulting in e.g. the s3 credentials being mounted twice as the same volumeMount.
216
+
/// A colliding [`VolumeMount`] would have the same mountPath but a different content than
217
+
/// another [`VolumeMount`]. An appropriate error is returned when such a clashing mount path is
218
+
/// encountered.
219
+
///
220
+
/// ### Note
221
+
///
222
+
/// Previously, this function unconditionally added [`VolumeMount`]s, which resulted in invalid
0 commit comments