@@ -197,7 +197,7 @@ func (s *KubeletServer) AddFlags(fs *pflag.FlagSet) {
...
@@ -197,7 +197,7 @@ func (s *KubeletServer) AddFlags(fs *pflag.FlagSet) {
fs.StringVar(&s.LockFilePath,"lock-file",s.LockFilePath,"<Warning: Alpha feature> The path to file for kubelet to use as a lock file.")
fs.StringVar(&s.LockFilePath,"lock-file",s.LockFilePath,"<Warning: Alpha feature> The path to file for kubelet to use as a lock file.")
fs.BoolVar(&s.ExitOnLockContention,"exit-on-lock-contention",s.ExitOnLockContention,"Whether kubelet should exit upon lock-file contention.")
fs.BoolVar(&s.ExitOnLockContention,"exit-on-lock-contention",s.ExitOnLockContention,"Whether kubelet should exit upon lock-file contention.")
fs.StringVar(&s.RktPath,"rkt-path",s.RktPath,"Path of rkt binary. Leave empty to use the first rkt in $PATH. Only used if --container-runtime='rkt'.")
fs.StringVar(&s.RktPath,"rkt-path",s.RktPath,"Path of rkt binary. Leave empty to use the first rkt in $PATH. Only used if --container-runtime='rkt'.")
fs.StringVar(&s.MounterPath,"mounter-path",s.MounterPath,"Path of mounter binary. Leave empty to use the default mount.")
fs.StringVar(&s.ExperimentalMounterPath,"experimental-mounter-path",s.ExperimentalMounterPath,"[Experimental] Path of mounter binary. Leave empty to use the default mount.")
fs.StringVar(&s.RktAPIEndpoint,"rkt-api-endpoint",s.RktAPIEndpoint,"The endpoint of the rkt API service to communicate with. Only used if --container-runtime='rkt'.")
fs.StringVar(&s.RktAPIEndpoint,"rkt-api-endpoint",s.RktAPIEndpoint,"The endpoint of the rkt API service to communicate with. Only used if --container-runtime='rkt'.")
fs.StringVar(&s.RktStage1Image,"rkt-stage1-image",s.RktStage1Image,"image to use as stage1. Local paths and http/https URLs are supported. If empty, the 'stage1.aci' in the same directory as '--rkt-path' will be used.")
fs.StringVar(&s.RktStage1Image,"rkt-stage1-image",s.RktStage1Image,"image to use as stage1. Local paths and http/https URLs are supported. If empty, the 'stage1.aci' in the same directory as '--rkt-path' will be used.")
fs.MarkDeprecated("rkt-stage1-image","Will be removed in a future version. The default stage1 image will be specified by the rkt configurations, see https://github.com/coreos/rkt/blob/master/Documentation/configuration.md for more details.")
fs.MarkDeprecated("rkt-stage1-image","Will be removed in a future version. The default stage1 image will be specified by the rkt configurations, see https://github.com/coreos/rkt/blob/master/Documentation/configuration.md for more details.")
@@ -14390,9 +14390,9 @@ var OpenAPIDefinitions *common.OpenAPIDefinitions = &common.OpenAPIDefinitions{
...
@@ -14390,9 +14390,9 @@ var OpenAPIDefinitions *common.OpenAPIDefinitions = &common.OpenAPIDefinitions{
Format:"",
Format:"",
},
},
},
},
"mounterPath":{
"experimentalMounterPath":{
SchemaProps:spec.SchemaProps{
SchemaProps:spec.SchemaProps{
Description:"mounterPath is the path to mounter binary. If not set, kubelet will attempt to use mount binary that is available via $PATH,",
Description:"experimentalMounterPath is the path to mounter binary. If not set, kubelet will attempt to use mount binary that is available via $PATH,",
Type:[]string{"string"},
Type:[]string{"string"},
Format:"",
Format:"",
},
},
...
@@ -14711,7 +14711,7 @@ var OpenAPIDefinitions *common.OpenAPIDefinitions = &common.OpenAPIDefinitions{
...
@@ -14711,7 +14711,7 @@ var OpenAPIDefinitions *common.OpenAPIDefinitions = &common.OpenAPIDefinitions{
flag.BoolVar(&TestContext.PrepullImages,"prepull-images",true,"If true, prepull images so image pull failures do not cause test failures.")
flag.BoolVar(&TestContext.PrepullImages,"prepull-images",true,"If true, prepull images so image pull failures do not cause test failures.")
flag.StringVar(&TestContext.RuntimeIntegrationType,"runtime-integration-type","","Choose the integration path for the container runtime, mainly used for CRI validation.")
flag.StringVar(&TestContext.RuntimeIntegrationType,"runtime-integration-type","","Choose the integration path for the container runtime, mainly used for CRI validation.")
flag.StringVar(&TestContext.ContainerRuntimeEndpoint,"container-runtime-endpoint","","The endpoint of remote container runtime grpc server, mainly used for Remote CRI validation.")
flag.StringVar(&TestContext.ContainerRuntimeEndpoint,"container-runtime-endpoint","","The endpoint of remote container runtime grpc server, mainly used for Remote CRI validation.")
flag.StringVar(&TestContext.MounterPath,"mounter-path","","Path of mounter binary. Leave empty to use the default mount.")
flag.StringVar(&TestContext.MounterPath,"experimental-mounter-path","","Path of mounter binary. Leave empty to use the default mount.")
}
}
// overwriteFlagsWithViperConfig finds and writes values to flags using viper as input.
// overwriteFlagsWithViperConfig finds and writes values to flags using viper as input.