k3s/pkg/api
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
..
annotations autoupdate BUILD files 2016-12-12 13:30:07 -08:00
endpoints autoupdate BUILD files 2016-12-12 13:30:07 -08:00
errors Reduce timeout for waiting for resource version 2016-12-20 10:05:38 +01:00
events autoupdate BUILD files 2016-12-12 13:30:07 -08:00
install autoupdate BUILD files 2016-12-12 13:30:07 -08:00
meta Merge pull request #38533 from DirectXMan12/bug/priority-restmapper-versions 2016-12-14 05:52:48 -08:00
pod autoupdate BUILD files 2016-12-12 13:30:07 -08:00
resource autoupdate BUILD files 2016-12-12 13:30:07 -08:00
rest autoupdate BUILD files 2016-12-12 13:30:07 -08:00
service autoupdate BUILD files 2016-12-12 13:30:07 -08:00
testapi autoupdate BUILD files 2016-12-12 13:30:07 -08:00
testing [scheduling] Moved node affinity from annotations to api fields. #35518 2016-12-16 11:42:43 -05:00
unversioned autoupdate BUILD files 2016-12-12 13:30:07 -08:00
util autoupdate BUILD files 2016-12-12 13:30:07 -08:00
v1 [scheduling] Auto-generated file updates from moving node affinity from 2016-12-16 11:42:43 -05:00
validation [scheduling] Moved node affinity from annotations to api fields. #35518 2016-12-16 11:42:43 -05:00
BUILD autoupdate BUILD files 2016-12-12 13:30:07 -08:00
OWNERS Update OWNERS 2016-11-18 15:15:46 -08:00
context.go print instruction in case of failed kubectl 1.3 rolling-update against 1.4 cluster 2016-09-15 17:20:39 -07:00
context_test.go
conversion.go refactor: generated 2016-12-03 19:10:46 -05:00
conversion_test.go remove testapi.Default.GroupVersion 2016-10-07 10:10:54 -04:00
copy_test.go generated: refactor 2016-11-23 22:30:47 -06:00
deep_copy_test.go refactor: generated 2016-12-03 19:10:46 -05:00
defaulting_test.go Remove extensions/v1beta1 Job 2016-12-17 00:07:24 +01:00
defaults.go fix register.go files up + add test import 2016-08-11 17:06:54 -07:00
doc.go
field_constants.go
generate.go
generate_test.go
helpers.go refactor: generated 2016-12-03 19:10:46 -05:00
helpers_test.go Change references to OwnerReference 2016-12-10 18:05:36 -05:00
mapper.go generated: refactor 2016-11-23 22:30:47 -06:00
meta.go refactor: generated 2016-12-10 18:05:53 -05:00
meta_test.go refactor: generated 2016-12-10 18:05:53 -05:00
node_example.json Change minion to node 2016-09-28 10:53:30 -07:00
ref.go generated: refactor 2016-11-23 22:30:47 -06:00
ref_test.go refactor: generated 2016-12-03 19:10:46 -05:00
register.go refactor: generated 2016-12-03 19:10:46 -05:00
replication_controller_example.json Initial Quobyte support 2016-08-18 17:13:50 +02:00
requestcontext.go Cleanup handler chain 2016-09-23 12:03:58 +02:00
resource_helpers.go refactor: generated 2016-12-03 19:10:46 -05:00
resource_helpers_test.go refactor: generated 2016-12-03 19:10:46 -05:00
serialization_proto_test.go generated: refactor 2016-11-23 22:30:47 -06:00
serialization_test.go [scheduling] Moved node affinity from annotations to api fields. #35518 2016-12-16 11:42:43 -05:00
types.go Implement kubeadm bootstrap token management. 2016-12-20 11:43:55 -04:00
zz_generated.deepcopy.go [scheduling] Auto-generated file updates from moving node affinity from 2016-12-16 11:42:43 -05:00