open-consul/agent/structs
hc-github-team-consul-core ea93c7b29c
Backport of Displays Consul version of each nodes in UI nodes section into release/1.16.x (#18113)
## Backport

This PR is auto-generated from #17754 to be assessed for backporting due
to the inclusion of the label backport/1.16.


🚨
>**Warning** automatic cherry-pick of commits failed. If the first
commit failed,
you will see a blank no-op commit below. If at least one commit
succeeded, you
will see the cherry-picked commits up to, _not including_, the commit
where
the merge conflict occurred.

The person who merged in the original PR is:
@WenInCode
This person should manually cherry-pick the original PR into a new
backport PR,
and close this one when the manual backport PR is merged in.

> merge conflict error: unable to process merge commit:
"1c757b8a2c1160ad53421b7b8bd7f74b205c4b89", automatic backport requires
rebase workflow



The below text is copied from the body of the original PR.

---

fixes #17097 Consul version of each nodes in UI nodes section

@jkirschner-hashicorp @huikang @team @Maintainers

Updated consul version in the request to register consul.
Added this as Node MetaData.
Fetching this new metadata in UI

<img width="1512" alt="Screenshot 2023-06-15 at 4 21 33 PM"
src="https://github.com/hashicorp/consul/assets/3139634/94f7cf6b-701f-4230-b9f7-d8c4342d0737">

Also made this backward compatible and tested.

Backward compatible in this context means - If consul binary with above
PR changes is deployed to one of node, and if UI is run from this node,
then the version of not only current (upgraded) node is displayed in UI
, but also of older nodes given that they are consul servers only.
For older (non-server or client) nodes the version is not added in
NodeMeta Data and hence the version will not be displayed for them.
If a old node is consul server, the version will be displayed. As the
endpoint - "v1/internal/ui/nodes?dc=dc1" was already returning version
in service meta. This is made use of in current UI changes.

<img width="1480" alt="Screenshot 2023-06-16 at 6 58 32 PM"
src="https://github.com/hashicorp/consul/assets/3139634/257942f4-fbed-437d-a492-37849d2bec4c">




---

<details>
<summary> Overview of commits </summary>

- 931fdfc7ecdc26bb7cc20b698c5e14c1b65fcc6e -
b3e2ec1ccaca3832a088ffcac54257fa6653c6c1 -
8d0e9a54907039c09330c6cd7b9e761566af6856 -
04e5d88cca37821f6667be381c16aaa5958b5c92 -
28286a2e98f8cd66ef8593c2e2893b4db6080417 -
43e50ad38207952a9c4d04d45d08b6b8f71b31fe -
0cf1b7077cdf255596254d9dc1624a269c42b94d -
27f34ce1c2973591f75b1e38a81ccbe7cee6cee3 -
2ac76d62b8cbae76b1a903021aebb9b865e29d6e -
3d618df9ef1d10dd5056c8b1ed865839c553a0e0 -
1c757b8a2c1160ad53421b7b8bd7f74b205c4b89 -
23ce82b4cee8f74dd634dbe145313e9a56c0077d -
4dc1c9b4c5aafdb8883ef977dfa9b39da138b6cb -
85a12a92528bfa267a039a9bb258170be914abf7 -
25d30a3fa980d130a30d445d26d47ef2356cb553 -
7f1d6192dce3352e92307175848b89f91e728c24 -
5174cbff84b0795d4cb36eb8980d0d5336091ac9

</details>

---------

Co-authored-by: Vijay Srinivas <vijayraghav22@gmail.com>
Co-authored-by: John Murret <john.murret@hashicorp.com>
Co-authored-by: Jared Kirschner <85913323+jkirschner-hashicorp@users.noreply.github.com>
2023-07-17 17:27:50 +00:00
..
aclfilter add acl filter logs (#17143) 2023-04-26 10:57:35 -04:00
acl.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
acl_cache.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
acl_cache_test.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
acl_oss.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
acl_test.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
auto_encrypt.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
autopilot.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
autopilot_oss.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
catalog.go Add /v1/internal/service-virtual-ip for manually setting service VIPs (#17294) 2023-05-12 00:38:52 +00:00
catalog_oss.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
check_definition.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
check_definition_test.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
check_type.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
config_entry.go Hash namespace+proxy ID when creating socket path (#17204) 2023-05-09 12:20:26 -06:00
config_entry_discoverychain.go Add PrioritizeByLocality to config entries. (#17007) 2023-04-14 15:42:54 -05:00
config_entry_discoverychain_oss.go Add PrioritizeByLocality to config entries. (#17007) 2023-04-14 15:42:54 -05:00
config_entry_discoverychain_oss_test.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
config_entry_discoverychain_test.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
config_entry_exports.go Add sameness-group to exported-services config entries (#16836) 2023-03-31 12:36:44 -05:00
config_entry_exports_oss.go [COMPLIANCE] Add Copyright and License Headers (#16854) 2023-04-20 12:40:22 +00:00
config_entry_exports_oss_test.go Add sameness-group to exported-services config entries (#16836) 2023-03-31 12:36:44 -05:00
config_entry_exports_test.go Add sameness-group to exported-services config entries (#16836) 2023-03-31 12:36:44 -05:00
config_entry_gateways.go xds: generate listeners directly from API gateway snapshot (#17398) 2023-05-22 17:36:29 -04:00
config_entry_gateways_test.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
config_entry_inline_certificate.go Backport of Ensure RSA keys are at least 2048 bits in length into release/1.16.x (#17935) 2023-06-28 17:36:38 +00:00
config_entry_inline_certificate_test.go backport of commit 8ad61b4e29a8403ec49691b2f0a2c11187d56385 (#18077) 2023-07-11 15:44:44 +00:00
config_entry_intentions.go fixed aliases for sameness group (sameness_group) (#17161) 2023-04-26 14:53:23 -07:00
config_entry_intentions_oss.go Add sameness groups to service intentions. (#17064) 2023-04-20 12:16:04 -04:00
config_entry_intentions_oss_test.go Add sameness groups to service intentions. (#17064) 2023-04-20 12:16:04 -04:00
config_entry_intentions_test.go [NET-3091] Update service intentions to support jwt provider references (#17037) 2023-04-19 18:16:39 -04:00
config_entry_jwt_provider.go Expose JWKS cluster config through JWTProviderConfigEntry (#17978) (#18002) 2023-07-04 09:53:12 -04:00
config_entry_jwt_provider_oss.go [NET-3090] Add new JWT provider config entry (#17036) 2023-04-19 17:54:14 -04:00
config_entry_jwt_provider_test.go Expose JWKS cluster config through JWTProviderConfigEntry (#17978) (#18002) 2023-07-04 09:53:12 -04:00
config_entry_mesh.go Permissive mTLS (#17035) 2023-04-19 14:45:00 -05:00
config_entry_mesh_oss.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
config_entry_mesh_test.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
config_entry_oss.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
config_entry_oss_test.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
config_entry_routes.go APIGW: Routes with duplicate parents should be invalid (#16926) 2023-04-10 13:20:32 -04:00
config_entry_routes_test.go APIGW: Routes with duplicate parents should be invalid (#16926) 2023-04-10 13:20:32 -04:00
config_entry_sameness_group.go Fix a bug with disco chain config entry fetching (#17078) 2023-04-21 09:18:32 -04:00
config_entry_sameness_group_oss.go Add sameness group field to prepared queries (#17089) 2023-04-24 13:21:28 -07:00
config_entry_status.go APIGW Normalize Status Conditions (#16994) 2023-04-24 16:22:55 -04:00
config_entry_test.go Hash namespace+proxy ID when creating socket path (#17204) 2023-05-09 12:20:26 -06:00
connect.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
connect_ca.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
connect_ca_test.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
connect_oss.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
connect_proxy_config.go Permissive mTLS (#17035) 2023-04-19 14:45:00 -05:00
connect_proxy_config_oss.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
connect_proxy_config_test.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
deep-copy.sh Add sameness-group to exported-services config entries (#16836) 2023-03-31 12:36:44 -05:00
discovery_chain.go backport of commit c0b230fc3fc17c2939d590026ff347e177d158c8 (#17703) 2023-06-13 15:17:50 +00:00
discovery_chain_oss.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
envoy_extension.go backport of commit 2735bbe60f316a4d4539752a8dd63a3ca360e49b (#17613) 2023-06-08 14:41:44 +00:00
errors.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
federation_state.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
identity.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
intention.go Add sameness groups to service intentions. (#17064) 2023-04-20 12:16:04 -04:00
intention_oss.go fix tproxy sameness groups (#17468) 2023-05-25 12:18:55 -04:00
intention_test.go Add sameness groups to service intentions. (#17064) 2023-04-20 12:16:04 -04:00
operator.go Backport of [NET-3865] [Supportability] Additional Information in the output of 'consul operator raft list-peers' into release/1.16.x (#17738) 2023-06-21 11:26:48 +05:30
peering.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
prepared_query.go Add sameness group field to prepared queries (#17089) 2023-04-24 13:21:28 -07:00
prepared_query_test.go Add sameness group field to prepared queries (#17089) 2023-04-24 13:21:28 -07:00
protobuf_compat.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
service_definition.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
service_definition_test.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
snapshot.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
structs.deepcopy.go backport of commit c0b230fc3fc17c2939d590026ff347e177d158c8 (#17703) 2023-06-13 15:17:50 +00:00
structs.go Backport of Displays Consul version of each nodes in UI nodes section into release/1.16.x (#18113) 2023-07-17 17:27:50 +00:00
structs_ext_test.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
structs_filtering_test.go backport of commit 2735bbe60f316a4d4539752a8dd63a3ca360e49b (#17613) 2023-06-08 14:41:44 +00:00
structs_oss.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
structs_oss_test.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
structs_test.go Hash namespace+proxy ID when creating socket path (#17204) 2023-05-09 12:20:26 -06:00
system_metadata.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
testing.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
testing_catalog.go Backport of [API Gateway] Fix rate limiting for API gateways into release/1.16.x (#17635) 2023-06-09 12:40:03 +00:00
testing_connect_proxy_config.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
testing_intention.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
testing_service_definition.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00
txn.go copyright headers for agent folder (#16704) 2023-03-28 14:39:22 -04:00