kubernetes/cmd
Kubernetes Submit Queue 708d30a8d1 Merge pull request #44444 from fabriziopandini/kubeadm-certs-1
Automatic merge from submit-queue

Add --apiserver-advertise-address option to kubeadm alpha phase certs…

**What this PR does / why we need it**:
`kubeadm alpha phase certs` command currently does not support `--apiserver-advertise-address` options, and certificates by default are linked to the bind address of the machine where the kubeadm command is run. This behaviour is not adequate f.i. for use cases where you are using `kubeadm alpha phase certs` for an HA deployments or for use cases where you generate certificates on a machine different that the master.

The PR adds support for `--apiserver-advertise-address` to `kubeadm alpha phase certs`, with the following behaviour:
- if `--apiserver-advertise-address` is specified and valid, certificates are linked to the given IP
- if `--apiserver-advertise-address` is specified but not valid, the given ip is not valid an error is given

**Special notes for your reviewer**:
Implementation follow the track already in place for other flags (with validation, but no tests).
2017-04-25 16:11:50 -07:00
..
clicheck Enable auto-generating sources rules 2017-01-05 14:14:13 -08:00
cloud-controller-manager autogenerated 2017-04-14 10:40:57 -07:00
gendocs autogenerated 2017-04-14 10:40:57 -07:00
genkubedocs autogenerated 2017-04-14 10:40:57 -07:00
genman autogenerated 2017-04-14 10:40:57 -07:00
genslateyaml autogenerated 2017-04-14 10:40:57 -07:00
genswaggertypedocs autogenerated 2017-04-14 10:40:57 -07:00
genutils Enable auto-generating sources rules 2017-01-05 14:14:13 -08:00
genyaml autogenerated 2017-04-14 10:40:57 -07:00
gke-certificates-controller autogenerated 2017-04-14 10:40:57 -07:00
hyperkube autogenerated 2017-04-14 10:40:57 -07:00
kube-apiserver Split out AdmissionOptions 2017-04-18 19:48:14 +02:00
kube-controller-manager Use storage.v1 instead of v1beta1 2017-04-25 10:13:38 +02:00
kube-proxy Merge pull request #44204 from FengyunPan/optimize-code 2017-04-21 18:11:07 -07:00
kubeadm Merge pull request #44444 from fabriziopandini/kubeadm-certs-1 2017-04-25 16:11:50 -07:00
kubectl autogenerated 2017-04-14 10:40:57 -07:00
kubelet Merge pull request #44162 from liggitt/tls-flag-help 2017-04-24 23:07:45 -07:00
kubemark autogenerated 2017-04-14 10:40:57 -07:00
libs/go2idl go-to-protobuf: actually skip - packages 2017-04-18 12:35:16 -04:00
linkcheck autogenerated 2017-04-14 10:40:57 -07:00
mungedocs autogenerated 2017-04-14 10:40:57 -07:00
BUILD Merge pull request #42070 from luxas/remove_kube_discovery 2017-03-04 12:58:23 -08:00
OWNERS Updated top level owners file to match new format 2017-01-19 11:29:16 -08:00