Commit 46f3da1
committed
Add leader_cluster_address field to sys/leader endpoint
The Vault API returns a `leader_cluster_address` field from the
/sys/leader endpoint, which provides the cluster address where the
leader is running (distinct from `leader_address` which is the API
address).
This change exposes that field through the `LeaderStatus` response
object as `cluster_address`.
Changes:
- Added `leader_cluster_address` field to `LeaderStatus` class
- Added test coverage for the new field
- Updated example documentation
- Updated CHANGELOG
Fixes #2041 parent b3a15db commit 46f3da1
File tree
3 files changed
+11
-1
lines changed- lib/vault/api/sys
- spec/integration/api/sys
3 files changed
+11
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
5 | 9 | | |
6 | 10 | | |
7 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
21 | 26 | | |
22 | 27 | | |
23 | 28 | | |
| |||
35 | 40 | | |
36 | 41 | | |
37 | 42 | | |
38 | | - | |
| 43 | + | |
39 | 44 | | |
40 | 45 | | |
41 | 46 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
0 commit comments