open-consul/website/content/commands
Dhia Ayachi 219a3c5bd3
Leadership transfer cmd (#14132)
* add leadership transfer command

* add RPC call test (flaky)

* add missing import

* add changelog

* add command registration

* Apply suggestions from code review

Co-authored-by: Matt Keeler <mkeeler@users.noreply.github.com>

* add the possibility of providing an id to raft leadership transfer. Add few tests.

* delete old file from cherry pick

* rename changelog filename to PR #

* rename changelog and fix import

* fix failing test

* check for OperatorWrite

Co-authored-by: Matt Keeler <mkeeler@users.noreply.github.com>

* rename from leader-transfer to transfer-leader

* remove version check and add test for operator read

* move struct to operator.go

* first pass

* add code for leader transfer in the grpc backend and tests

* wire the http endpoint to the new grpc endpoint

* remove the RPC endpoint

* remove non needed struct

* fix naming

* add mog glue to API

* fix comment

* remove dead code

* fix linter error

* change package name for proto file

* remove error wrapping

* fix failing test

* add command registration

* add grpc service mock tests

* fix receiver to be pointer

* use defined values

Co-authored-by: Matt Keeler <mkeeler@users.noreply.github.com>

* reuse MockAclAuthorizer

* add documentation

* remove usage of external.TokenFromContext

* fix failing tests

* fix proto generation

* Apply suggestions from code review

Co-authored-by: Jared Kirschner <85913323+jkirschner-hashicorp@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: Jared Kirschner <85913323+jkirschner-hashicorp@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: Jared Kirschner <85913323+jkirschner-hashicorp@users.noreply.github.com>

* Apply suggestions from code review

* add more context in doc for the reason

* Apply suggestions from docs code review

Co-authored-by: Jeff Boruszak <104028618+boruszak@users.noreply.github.com>

* regenerate proto

* fix linter errors

Co-authored-by: github-team-consul-core <github-team-consul-core@hashicorp.com>
Co-authored-by: Matt Keeler <mkeeler@users.noreply.github.com>
Co-authored-by: Jared Kirschner <85913323+jkirschner-hashicorp@users.noreply.github.com>
Co-authored-by: Jeff Boruszak <104028618+boruszak@users.noreply.github.com>
2022-11-14 15:35:12 -05:00
..
acl docs: fix api docs anchor links 2022-10-18 12:53:53 -07:00
catalog docs: fix api docs anchor links 2022-10-18 12:53:53 -07:00
config docs: fix api docs anchor links 2022-10-18 12:53:53 -07:00
connect cli/sdk: Allow redirection to a different consul dns port (#15050) 2022-10-21 13:15:32 -06:00
intention docs: fix api docs anchor links 2022-10-18 12:53:53 -07:00
kv docs: fix api docs anchor links 2022-10-18 12:53:53 -07:00
namespace docs: fix api docs anchor links 2022-10-18 12:53:53 -07:00
operator Leadership transfer cmd (#14132) 2022-11-14 15:35:12 -05:00
peering Bring back parameter ServerExternalAddresses in GenerateToken endpoint (#15267) 2022-11-08 14:55:18 -06:00
services docs: fix api docs anchor links 2022-10-18 12:53:53 -07:00
snapshot docs: fix api docs anchor links 2022-10-18 12:53:53 -07:00
tls docs: show CLI cmd-specific opts before general opts 2022-07-27 15:50:51 -07:00
agent.mdx docs: Avoid redirects by pointing links to new URLs 2022-01-20 08:52:51 -08:00
debug.mdx docs: show CLI cmd-specific opts before general opts 2022-07-27 15:50:51 -07:00
event.mdx docs: fix api docs anchor links 2022-10-18 12:53:53 -07:00
exec.mdx docs: fix api docs anchor links 2022-10-18 12:53:53 -07:00
force-leave.mdx docs: fix api docs anchor links 2022-10-18 12:53:53 -07:00
index.mdx docs: fix api docs anchor links 2022-10-18 12:53:53 -07:00
info.mdx docs: Avoid redirects by pointing links to new URLs 2022-01-20 08:52:51 -08:00
join.mdx docs: fix api docs anchor links 2022-10-18 12:53:53 -07:00
keygen.mdx docs: Avoid redirects by pointing links to new URLs 2022-01-20 08:52:51 -08:00
keyring.mdx docs: fix api docs anchor links 2022-10-18 12:53:53 -07:00
leave.mdx docs: fix api docs anchor links 2022-10-18 12:53:53 -07:00
license.mdx docs: fix api docs anchor links 2022-10-18 12:53:53 -07:00
lock.mdx website: content updates for developer (#14419) 2022-09-14 17:45:42 -05:00
login.mdx docs: fix api docs anchor links 2022-10-18 12:53:53 -07:00
logout.mdx docs: fix api docs anchor links 2022-10-18 12:53:53 -07:00
maint.mdx docs: fix api docs anchor links 2022-10-18 12:53:53 -07:00
members.mdx docs: fix api docs anchor links 2022-10-18 12:53:53 -07:00
monitor.mdx docs: show CLI cmd-specific opts before general opts 2022-07-27 15:50:51 -07:00
partition.mdx docs: remove unnecessary partition CLI cmd info 2022-07-25 15:31:39 -07:00
reload.mdx docs: fix api docs anchor links 2022-10-18 12:53:53 -07:00
rtt.mdx docs: fix api docs anchor links 2022-10-18 12:53:53 -07:00
validate.mdx docs: simplify agent docs slugs 2022-04-11 17:38:47 -07:00
version.mdx docs: show CLI cmd-specific opts before general opts 2022-07-27 15:50:51 -07:00
watch.mdx docs: show CLI cmd-specific opts before general opts 2022-07-27 15:50:51 -07:00