k3s/cmd
Kubernetes Submit Queue 52df372f9b Merge pull request #35805 from dgoodwin/token-mgmt
Automatic merge from submit-queue

Implement kubeadm bootstrap token management

Creates bootstrap tokens as secrets per the specification in #30707 

_WARNING_: These are not currently hooked up to the discovery service or the token it creates.

Still TODO:
- [x] delete tokens
- [x] merge with #35144 and adopt it's testing approach
- [x] determine if we want wholesale json output & templating like kubectl (we do not have an API object with the data we want here) may require a bit of plumbing.
- [x] allow specifying a token duration on the CLI
- [x] allow configuring the default token duration
- [x] hook up the initial token created during init

Sample output:

```
(root@centos1 ~) $ kubeadm token create
Running pre-flight checks
<cmd/token> Token secret created: f6dc69.c43e491752c4a0fd
(root@centos1 ~) $ kubeadm token create
Running pre-flight checks
<cmd/token> Token secret created: 8fad2f.e7b78c8a5f7c7b9a
(root@centos1 ~) $ kubeadm token list  
Running pre-flight checks
ID        TOKEN                     EXPIRATION
44d805    44d805.a4e78b6cf6435e33   23h
4f65bb    4f65bb.d006a3c7a0e428c9   23h
6a086e    6a086e.2ff99f0823236b5b   23h
8fad2f    8fad2f.e7b78c8a5f7c7b9a   23h
f6dc69    f6dc69.c43e491752c4a0fd   23h
f81653    f81653.9ab82a2926c7e985   23h
```
2016-12-20 14:44:40 -08:00
..
clicheck autoupdate BUILD files 2016-12-12 13:30:07 -08:00
gendocs autoupdate BUILD files 2016-12-12 13:30:07 -08:00
genkubedocs autoupdate BUILD files 2016-12-12 13:30:07 -08:00
genman autoupdate BUILD files 2016-12-12 13:30:07 -08:00
genslateyaml autoupdate BUILD files 2016-12-12 13:30:07 -08:00
genswaggertypedocs autoupdate BUILD files 2016-12-12 13:30:07 -08:00
genutils autoupdate BUILD files 2016-12-12 13:30:07 -08:00
genyaml autoupdate BUILD files 2016-12-12 13:30:07 -08:00
hyperkube autoupdate BUILD files 2016-12-12 13:30:07 -08:00
kube-apiserver Merge pull request #38191 from sttts/sttts-move-master-options 2016-12-17 01:25:45 -08:00
kube-controller-manager Remove extensions/v1beta1 Job 2016-12-17 00:07:24 +01:00
kube-discovery autoupdate BUILD files 2016-12-12 13:30:07 -08:00
kube-dns rename /release_1_5 to /clientset 2016-12-14 12:39:48 -08:00
kube-proxy autoupdate BUILD files 2016-12-12 13:30:07 -08:00
kubeadm Implement kubeadm bootstrap token management. 2016-12-20 11:43:55 -04:00
kubectl autoupdate BUILD files 2016-12-12 13:30:07 -08:00
kubelet rename /release_1_5 to /clientset 2016-12-14 12:39:48 -08:00
kubemark run hack/update-codegen.sh 2016-12-14 12:39:49 -08:00
kubernetes-discovery Update bazel and linted files 2016-12-19 23:13:14 +01:00
libs/go2idl Merge pull request #38440 from justinsb/conversion_gen_safe_at_some_speeds 2016-12-18 09:16:16 -08:00
linkcheck autoupdate BUILD files 2016-12-12 13:30:07 -08:00
mungedocs autoupdate BUILD files 2016-12-12 13:30:07 -08:00
OWNERS Remove myself from a bunch of OWNERS files, as I am too overloaded 2016-05-11 13:34:51 -07:00