@@ -200,6 +200,7 @@ func (s *KubeletServer) AddFlags(fs *pflag.FlagSet) {
...
@@ -200,6 +200,7 @@ func (s *KubeletServer) AddFlags(fs *pflag.FlagSet) {
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.ExperimentalMounterPath,"experimental-mounter-path",s.ExperimentalMounterPath,"[Experimental] 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.ExperimentalMounterRootfsPath,"experimental-mounter-rootfs-path",s.ExperimentalMounterRootfsPath,"[Experimental] Absolute path to the root filesystem for the mounter binary.")
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.")
@@ -121,6 +121,8 @@ type NodeTestContextType struct {
...
@@ -121,6 +121,8 @@ type NodeTestContextType struct {
ContainerRuntimeEndpointstring
ContainerRuntimeEndpointstring
// MounterPath is the path to the program to run to perform a mount
// MounterPath is the path to the program to run to perform a mount
MounterPathstring
MounterPathstring
// MounterRootfsPath is the path to the root filesystem for the program used to perform a mount in kubelet
MounterRootfsPathstring
}
}
typeCloudConfigstruct{
typeCloudConfigstruct{
...
@@ -218,6 +220,7 @@ func RegisterNodeFlags() {
...
@@ -218,6 +220,7 @@ func RegisterNodeFlags() {
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,"experimental-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.")
flag.StringVar(&TestContext.MounterRootfsPath,"experimental-mounter-rootfs-path","","Absolute path to root filesystem for the mounter binary.")
}
}
// overwriteFlagsWithViperConfig finds and writes values to flags using viper as input.
// overwriteFlagsWithViperConfig finds and writes values to flags using viper as input.
glog.Infof("GCI node and GCI mounter both detected, setting --experimental-mounter-path=%q and --experimental-mounter-rootfs-path=%q accordingly",mounterPath,mounterRootfsPath)