From b46a0c233f7d0d93f03df2bac50060e475785da3 Mon Sep 17 00:00:00 2001 From: Kimon N Date: Thu, 30 Apr 2026 22:51:30 +0200 Subject: [PATCH] Fix v1.VolumeMount.MountPath doc to match validator (allow ':') The v1.VolumeMount.MountPath doc claims the path must not contain ':', but the validator does not enforce this. The internal type in pkg/apis/core/types.go carries no such constraint, and existing TestValidateVolumeMounts success cases use mountPath values like "d:", "F:", and "G:\mount". This is a doc-only change. The validator is unchanged; the public doc now matches what the validator actually accepts. Regenerated proto and openapi snapshots to propagate the doc update. Signed-off-by: Kimon N. Kubernetes-commit: 6691ecaf2f5ce3076f3c61eca5355cc99535d1bd --- applyconfigurations/core/v1/volumemount.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/applyconfigurations/core/v1/volumemount.go b/applyconfigurations/core/v1/volumemount.go index 83b71eb65..5310afe75 100644 --- a/applyconfigurations/core/v1/volumemount.go +++ b/applyconfigurations/core/v1/volumemount.go @@ -49,8 +49,7 @@ type VolumeMountApplyConfiguration struct { // // If this field is not specified, it is treated as an equivalent of Disabled. RecursiveReadOnly *corev1.RecursiveReadOnlyMode `json:"recursiveReadOnly,omitempty"` - // Path within the container at which the volume should be mounted. Must - // not contain ':'. + // Path within the container at which the volume should be mounted. MountPath *string `json:"mountPath,omitempty"` // Path within the volume from which the container's volume should be mounted. // Defaults to "" (volume's root).