kubernetes/cmd/kubeadm/app
Kubernetes Submit Queue 2948c89433 Merge pull request #41509 from luxas/kubeadm_reorder_tokens
Automatic merge from submit-queue (batch tested with PRs 38101, 41431, 39606, 41569, 41509)

kubeadm: Reorder the token packages more logically

**What this PR does / why we need it**:

In order to be able to implement https://github.com/kubernetes/kubernetes/pull/41417, the token functionality (which now is spread across the codebase), should be in two places: a generic token functions library, which in the future _may_ [move into client-go](https://github.com/kubernetes/kubernetes/pull/41281#discussion_r101357106) in some form, and a package for the token handling against the api server.

This commit has no large functional changes.

```
kubeadm: Aggregate the token functionality in sane packages.
    
 - Factor out token constants to kubeadmconstants.
 - Move cmd/kubeadm/app/util/{,token/}tokens.go
 - Use the token-id, token-secret, etc constants provided by the bootstrapapi package
 - Move cmd/kubeadm/app/master/tokens.go to cmd/kubeadm/app/phases/token/csv.go
    
This refactor basically makes it possible to hook up kubeadm to the BootstrapSigner controller later on
```

**Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #

**Special notes for your reviewer**:

**Release note**:

```release-note
NONE
```
@mikedanese @pires @errordeveloper @dmmcquay @jbeda @GheRivero
2017-02-16 15:49:19 -08:00
..
apis/kubeadm Merge pull request #41439 from deads2k/apiserver-12-sample-fuzz 2017-02-15 16:28:11 -08:00
cmd kubeadm: Aggregate the token functionality in sane packages. 2017-02-16 22:22:30 +02:00
constants Merge pull request #41509 from luxas/kubeadm_reorder_tokens 2017-02-16 15:49:19 -08:00
discovery kubeadm: Aggregate the token functionality in sane packages. 2017-02-16 22:22:30 +02:00
images Move the apiCallRetryInterval constants to a common place and a little bit cleanup 2017-02-02 00:05:14 +02:00
master Merge pull request #41509 from luxas/kubeadm_reorder_tokens 2017-02-16 15:49:19 -08:00
node kubeadm: Aggregate the token functionality in sane packages. 2017-02-16 22:22:30 +02:00
phases Merge pull request #41509 from luxas/kubeadm_reorder_tokens 2017-02-16 15:49:19 -08:00
preflight Merge pull request #41238 from xilabao/add-check-to-authorization-config 2017-02-16 10:14:10 -08:00
util kubeadm: Aggregate the token functionality in sane packages. 2017-02-16 22:22:30 +02:00
BUILD kubeadm: Aggregate the token functionality in sane packages. 2017-02-16 22:22:30 +02:00
kubeadm.go Refactor the whole binary, a lot of changes in one commit I know, but I just hacked on this and modified everything I thought was messy or could be done better. 2016-12-09 12:48:12 +02:00