-
Notifications
You must be signed in to change notification settings - Fork 1.5k
[17.06] backport (cli) If docker swarm ca
is not called with the --rotate
flag, warn if other flags are passed
#110
Conversation
flags, including cert expiry, will be ignored, so warn if a user attempts to use `docker swarm ca --cert-expiry` or something. Signed-off-by: Ying Li <ying.li@docker.com> (cherry picked from commit 32b43bc21a053cbe566feefd3c54def739d40bfe) Signed-off-by: Andrew Hsu <andrewhsu@docker.com>
@cyli when you get the chance can you have a look at this backport? |
@andrewhsu That definitely matches the change in the docker/cli#207, however I noticed a comment indicating a bug in that partiuclar fix, so have openned docker/cli#328. The only change is to change that second |
I just merged docker/cli#328 - if it doesn't apply cleanly, perhaps just add a second commit to the PR to perform the fix |
…assed, and add a test. Signed-off-by: Ying Li <ying.li@docker.com> (cherry picked from commit 4615c92f661b724ece58937ccfecbb24f602fc32) Conflicts: components/cli/cli/command/swarm/ca_test.go Signed-off-by: Andrew Hsu <andrewhsu@docker.com>
I brought in the commit from docker/cli#328:
Conflict with |
LGTM on green, thanks @andrewhsu and @thaJeztah! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Remove pigz requirement for CentOS Upstream-commit: 4d5e046 Component: packaging
…json [18.09 backport] API: properly handle invalid JSON to return a 400 status Upstream-commit: 8f18feabeb9ef7fe670ff6f1ecbba2a6460e0267 Component: engine
[17.06] backport (cli) If `docker swarm ca` is not called with the `--rotate` flag, warn if other flags are passed
…entos Remove pigz requirement for CentOS
Backport fix (each PR has just one git commit):
docker swarm ca
is not called with the--rotate
flag, warn if other flags are passed docker/cli#207 Ifdocker swarm ca
is not called with the--rotate
flag, warn if other flags are passedswarm ca
is called with flags other than--rotate
docker/cli#328 Fix warning in docker CLI whenswarm ca
is called with flags other than--rotate
With cherry-pick of docker/cli@32b43bc and docker/cli@4615c92:
Conflict with
components/cli/cli/command/swarm/ca_test.go
in that the docker/cli@4615c92 cherry-pick wanted to modify it and it did not exist on the17.06
branch. Resolved the conflict by not apply the diff to that file.