Skip to content

tt cluster rs roles remove removes role in config scope provided by flags. #4467

@TarantoolBot

Description

@TarantoolBot

Product: tt cli
Since: tt 2.5.0
Audience/target: all
Root document: https://www.tarantool.io/en/doc/latest/reference/tooling/tt_cli/cluster/
SME: @ themilchenko @ oleg-jukovec

Details

To do together with #4433

This patch introduces new command for the cluster replicaset module:

tt cluster replicaset roles remove <URI> <ROLE_NAME> [flags]

URI is a target configuration source (etcd/tcs). ROLE_NAME is a role for
removing from a Tarantool config storage. It is necessary to provide flag
with destination in config for role removing. It can be one or more
destinations.

Command supports following flags:

  • Flags for the destination of role removing:
    • --global (-G) for a global scope to remove a role;
    • --instance (-i) string for an application name target to specify
      an instance to remove a role;
    • --replicaset (-r) string for an application name target to specify
      a replicaset to remove a role;
    • --group (-g) string for an application name target to specify a group.
  • Common flag to interact with config storages (etcd / tarantool config
    storage):
    • --force (-f) to skip selecting a key for patching;
    • --username (-u) is a username (used as etcd/tarantool config
      storage credentials);
    • --password (-p) is a password (used as etcd/tarantool config
      storage credentials).

Closes #917
Requested by @themilchenko in tarantool/tt@a00a28a.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions