k3s/cmd
Rostislav M. Georgiev f97770b175 kubeadm: Detect CRIs automatically
In order to allow for a smoother UX with CRIs different than Docker, we have to
make the --cri-socket command line flag optional when just one CRI is
installed.

This change does that by doing the following:

- Introduce a new runtime function (DetectCRISocket) that will attempt to
  detect a CRI socket, or return an appropriate error.
- Default to using the above function if --cri-socket is not specified and
  CRISocket in NodeRegistrationOptions is empty.
- Stop static defaulting to DefaultCRISocket. And rename it to
  DefaultDockerCRISocket. Its use is now narrowed to "Docker or not"
  distinguishment and tests.
- Introduce AddCRISocketFlag function that adds --cri-socket flag to a flagSet.
  Use that in all commands, that support --cri-socket.
- Remove the deprecated --cri-socket-path flag from kubeadm config images pull
  and deprecate --cri-socket in kubeadm upgrade apply.

Signed-off-by: Rostislav M. Georgiev <rostislavg@vmware.com>
2019-01-21 16:12:04 +02:00
..
clicheck
cloud-controller-manager Merge pull request #73075 from hello2mao/cloudprovider-informer 2019-01-18 09:01:52 -08:00
controller-manager auto-generated file 2019-01-16 16:07:21 +08:00
gendocs
genkubedocs GCP: Remove the deprecated google-json-key support 2018-10-02 16:53:28 -07:00
genman Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
genswaggertypedocs Move from glog to klog 2018-11-10 07:50:31 -05:00
genutils
genyaml
hyperkube autogen files 2019-01-17 09:16:36 -05:00
importverifier
kube-apiserver Merge pull request #69902 from pbarker/audit-int 2019-01-17 17:11:28 -08:00
kube-controller-manager Merge pull request #72970 from sttts/sttts-wait-for-http-server-finished-shutdown 2019-01-18 03:06:36 -08:00
kube-proxy autogen files 2019-01-17 09:16:36 -05:00
kube-scheduler Merge pull request #72970 from sttts/sttts-wait-for-http-server-finished-shutdown 2019-01-18 03:06:36 -08:00
kubeadm kubeadm: Detect CRIs automatically 2019-01-21 16:12:04 +02:00
kubectl Simplify random seed initialization 2018-10-11 21:01:15 +11:00
kubelet autogen files 2019-01-17 09:16:36 -05:00
kubemark autogen files 2019-01-17 09:16:36 -05:00
linkcheck
BUILD
OWNERS