DockerCLI/cli/command/swarm
Ying Li 4243440e1f Propagate the provided external CA certificate to the external CA object
in swarm.

Also, fix some CLI command confusions:
1. If the --external-ca flag is provided, require a --ca-cert flag as well, otherwise
   the external CA is set but the CA certificate is actually rotated to an internal
   cert
2. If a --ca-cert flag is provided, require a --ca-key or --external-ca flag be
   provided as well, otherwise either the server will say that the request is
   invalid, or if there was previously an external CA corresponding to the cert, it
   will succeed.  While that works, it's better to require the user to explicitly
   set all the parameters of the new desired root CA.

This also changes the `swarm update` function to set the external CA's CACert field,
which while not strictly necessary, makes the CA list more explicit.

Signed-off-by: Ying Li <ying.li@docker.com>
2018-07-02 17:14:21 -07:00
..
progress Switch from x/net/context to context 2018-05-11 16:49:43 -07:00
testdata Update code for upstream cobra 2017-10-25 14:49:26 -04:00
ca.go Propagate the provided external CA certificate to the external CA object 2018-07-02 17:14:21 -07:00
ca_test.go Propagate the provided external CA certificate to the external CA object 2018-07-02 17:14:21 -07:00
client_test.go Switch from x/net/context to context 2018-05-11 16:49:43 -07:00
cmd.go Error out on orchestrator command that don't support k8s yet 2017-12-26 11:46:59 +01:00
init.go Switch from x/net/context to context 2018-05-11 16:49:43 -07:00
init_test.go Update tests to use gotest.tools 👼 2018-06-08 18:24:26 +02:00
join.go Switch from x/net/context to context 2018-05-11 16:49:43 -07:00
join_test.go Update tests to use gotest.tools 👼 2018-06-08 18:24:26 +02:00
join_token.go Switch from x/net/context to context 2018-05-11 16:49:43 -07:00
join_token_test.go Update tests to use gotest.tools 👼 2018-06-08 18:24:26 +02:00
leave.go Switch from x/net/context to context 2018-05-11 16:49:43 -07:00
leave_test.go Update tests to use gotest.tools 👼 2018-06-08 18:24:26 +02:00
opts.go Propagate the provided external CA certificate to the external CA object 2018-07-02 17:14:21 -07:00
opts_test.go Update tests to use gotest.tools 👼 2018-06-08 18:24:26 +02:00
unlock.go Switch from x/net/context to context 2018-05-11 16:49:43 -07:00
unlock_key.go Switch from x/net/context to context 2018-05-11 16:49:43 -07:00
unlock_key_test.go Update tests to use gotest.tools 👼 2018-06-08 18:24:26 +02:00
unlock_test.go Update tests to use gotest.tools 👼 2018-06-08 18:24:26 +02:00
update.go Propagate the provided external CA certificate to the external CA object 2018-07-02 17:14:21 -07:00
update_test.go Propagate the provided external CA certificate to the external CA object 2018-07-02 17:14:21 -07:00