@@ -254,4 +254,5 @@ func (s *KubeletServer) AddFlags(fs *pflag.FlagSet) {
fs.StringVar(&s.RemoteRuntimeEndpoint,"container-runtime-endpoint",s.RemoteRuntimeEndpoint,"[Experimental] The unix socket endpoint of remote runtime service. The endpoint is used only when CRI integration is enabled (--experimental-cri)")
fs.StringVar(&s.RemoteImageEndpoint,"image-service-endpoint",s.RemoteImageEndpoint,"[Experimental] The unix socket endpoint of remote image service. If not specified, it will be the same with container-runtime-endpoint by default. The endpoint is used only when CRI integration is enabled (--experimental-cri)")
fs.BoolVar(&s.ExperimentalCheckNodeCapabilitiesBeforeMount,"experimental-check-node-capabilities-before-mount",s.ExperimentalCheckNodeCapabilitiesBeforeMount,"[Experimental] if set true, the kubelet will check the underlying node for required componenets (binaries, etc.) before performing the mount")
@@ -3003,8 +3003,15 @@ var OpenAPIDefinitions *common.OpenAPIDefinitions = &common.OpenAPIDefinitions{
Format:"",
},
},
"ExperimentalCheckNodeCapabilitiesBeforeMount":{
SchemaProps:spec.SchemaProps{
Description:"This flag, if set, enables a check prior to mount operations to verify that the required components (binaries, etc.) to mount the volume are available on the underlying node. If the check is enabled and fails the mount operation fails.",
@@ -14803,8 +14810,15 @@ var OpenAPIDefinitions *common.OpenAPIDefinitions = &common.OpenAPIDefinitions{
Format:"",
},
},
"ExperimentalCheckNodeCapabilitiesBeforeMount":{
SchemaProps:spec.SchemaProps{
Description:"This flag, if set, enables a check prior to mount operations to verify that the required components (binaries, etc.) to mount the volume are available on the underlying node. If the check is enabled and fails the mount operation fails.",
errMsg:=fmt.Sprintf("Unable to mount volume %v (spec.Name: %v) on pod %v (UID: %v). Verify that your node machine has the required components before attempting to mount this volume type. %s",volumeToMount.VolumeName,volumeToMount.VolumeSpec.Name(),volumeToMount.Pod.Name,volumeToMount.Pod.UID,canMountErr.Error())