Change "rotate_worker_token" to "rotateWorkerToken"
This renames the `rotate_xxx` flags to camelBack, for
consistency with other API query-params, such as
`detachKeys`, `noOverwriteDirNonDir`, and `fromImage`.
Also makes this flag accept a wider range of boolean
values ("0", "1", "true", "false"), and throw an error
if an invalid value is passed.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Upstream-commit: bd81df12780b0765e55582574eaa2a125adf65fa
Component: engine
This commit is contained in:
@ -3755,8 +3755,8 @@ Update a Swarm
|
||||
|
||||
- **version** – The version number of the swarm object being updated. This is
|
||||
required to avoid conflicting writes.
|
||||
- **rotate_worker_token** - Set to `true` to rotate the worker join token.
|
||||
- **rotate_manager_token** - Set to `true` to rotate the manager join token.
|
||||
- **rotateWorkerToken** - Set to `true` (or `1`) to rotate the worker join token.
|
||||
- **rotateManagerToken** - Set to `true` (or `1`) to rotate the manager join token.
|
||||
|
||||
**Status codes**:
|
||||
|
||||
|
||||
@ -3756,8 +3756,8 @@ Update a Swarm
|
||||
|
||||
- **version** – The version number of the swarm object being updated. This is
|
||||
required to avoid conflicting writes.
|
||||
- **rotate_worker_token** - Set to `true` to rotate the worker join token.
|
||||
- **rotate_manager_token** - Set to `true` to rotate the manager join token.
|
||||
- **rotateWorkerToken** - Set to `true` (or `1`) to rotate the worker join token.
|
||||
- **rotateManagerToken** - Set to `true` (or `1`) to rotate the manager join token.
|
||||
|
||||
**Status codes**:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user