mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 22:17:14 +00:00
kubeadm: rename cri-socket-path -> cri-socket
Renamed command line option cri-socket-path for 2 reasons: - to be consistent with the rest of kubeadm code reset/init/join/apply subcommands use --cri-socket - name is misleading as CRI socket can be also an url, not just a path
This commit is contained in:
parent
49670bee18
commit
b9006648f2
@ -514,5 +514,7 @@ func AddImagesCommonConfigFlags(flagSet *flag.FlagSet, cfg *kubeadmapiv1alpha3.I
|
|||||||
|
|
||||||
// AddImagesPullFlags adds flags related to the `kubeadm config images pull` command
|
// AddImagesPullFlags adds flags related to the `kubeadm config images pull` command
|
||||||
func AddImagesPullFlags(flagSet *flag.FlagSet, cfg *kubeadmapiv1alpha3.InitConfiguration) {
|
func AddImagesPullFlags(flagSet *flag.FlagSet, cfg *kubeadmapiv1alpha3.InitConfiguration) {
|
||||||
|
flagSet.StringVar(&cfg.NodeRegistration.CRISocket, "cri-socket", cfg.NodeRegistration.CRISocket, "Specify the CRI socket to connect to.")
|
||||||
flagSet.StringVar(&cfg.NodeRegistration.CRISocket, "cri-socket-path", cfg.NodeRegistration.CRISocket, "Path to the CRI socket.")
|
flagSet.StringVar(&cfg.NodeRegistration.CRISocket, "cri-socket-path", cfg.NodeRegistration.CRISocket, "Path to the CRI socket.")
|
||||||
|
flagSet.MarkDeprecated("cri-socket-path", "Please, use --cri-socket instead")
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user