Merge pull request #138722 from qflen/fix/mountpath-doc-colon-129453

Fix v1.VolumeMount.MountPath doc to match validator (allow ':')

Kubernetes-commit: 209d50cef164494dc18586aca0bd082914e677ab
This commit is contained in:
Kubernetes Publisher
2026-05-04 23:44:39 +05:30
3 changed files with 4 additions and 5 deletions

View File

@@ -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).

2
go.mod
View File

@@ -23,7 +23,7 @@ require (
golang.org/x/time v0.14.0
google.golang.org/protobuf v1.36.12-0.20260120151049-f2248ac996af
gopkg.in/evanphx/json-patch.v4 v4.13.0
k8s.io/api v0.0.0-20260504204500-394c8b70f0db
k8s.io/api v0.0.0-20260504204501-f40e8ff20019
k8s.io/apimachinery v0.0.0-20260504204121-2fca5de43c56
k8s.io/klog/v2 v2.140.0
k8s.io/kube-openapi v0.0.0-20260502001324-b7f5293f4787

4
go.sum
View File

@@ -117,8 +117,8 @@ gopkg.in/inf.v0 v0.9.1 h1:73M5CoZyi3ZLMOyDlQh031Cx6N9NDJ2Vvfl76EDAgDc=
gopkg.in/inf.v0 v0.9.1/go.mod h1:cWUDdTG/fYaXco+Dcufb5Vnc6Gp2YChqWtbxRZE0mXw=
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
k8s.io/api v0.0.0-20260504204500-394c8b70f0db h1:i2T7sIF4YX40304w2pD+A6xchJ2HXLINQIPdgzciJzg=
k8s.io/api v0.0.0-20260504204500-394c8b70f0db/go.mod h1:3USlyQsXhfXGbJzZevPnCx4ZCGaYM/xzUYOlYcB/eUE=
k8s.io/api v0.0.0-20260504204501-f40e8ff20019 h1:ldAUH3G96shgtYJbZwndQTKhRAMZ2dDrkC7Pw0u15uM=
k8s.io/api v0.0.0-20260504204501-f40e8ff20019/go.mod h1:3USlyQsXhfXGbJzZevPnCx4ZCGaYM/xzUYOlYcB/eUE=
k8s.io/apimachinery v0.0.0-20260504204121-2fca5de43c56 h1:JN0n7OEc9lF1Rnk+09tWPA9FC2v7+wxxR+3lgBo4uNU=
k8s.io/apimachinery v0.0.0-20260504204121-2fca5de43c56/go.mod h1:VERTuh5iDSri6+w9SKXTmWbqrGWrdBWrNaC/gYIcRTY=
k8s.io/klog/v2 v2.140.0 h1:Tf+J3AH7xnUzZyVVXhTgGhEKnFqye14aadWv7bzXdzc=