Commit Graph

18980 Commits

Author SHA1 Message Date
Michael Klein 92ddea3627 Link service in exported-service list 2022-10-13 16:43:38 +02:00
Michael Klein f5934e75be Show cursor peer-list 2022-10-13 16:43:38 +02:00
Michael Klein 2854bcde76 Implement imported services tab peers.edit 2022-10-13 16:43:38 +02:00
Michael Klein b86567e163 Display addresses when receiver peer.edit 2022-10-13 16:43:38 +02:00
Michael Klein 0194eebd95 Return all items without search term exported 2022-10-13 16:43:38 +02:00
Michael Klein b356cffbc5 Always display imported & exported on peer
Peers are bi-directional, we need to reflect that
2022-10-13 16:43:38 +02:00
Michael Klein 7fe7ecfeda fix placeholder empty-state exported 2022-10-13 16:43:38 +02:00
Michael Klein d30484968d Make exported-services searchable by name 2022-10-13 16:43:38 +02:00
Michael Klein 8c99ecb28c Create search-provider 2022-10-13 16:43:38 +02:00
Michael Klein 0ca0cb34e8 Pull in vertical-collection
We want to use a community solution for occlusion
rendering for this problem instead of using a custom
abstraction.
2022-10-13 16:43:38 +02:00
Michael Klein 419531287b Create dimensions provider
To measure the available space of an element when it
should take up the "rest" of the page. This matches
what `ListCollection` is doing internally but makes
the mechanism available in a composable component.
2022-10-13 16:43:38 +02:00
Michael Klein 9006b7eebb Switch out ember-ref-modifier for ember-ref-bucket
ember-ref-bucket is the successor of ref-modifier. We
weren't using ref-modifier anywhere so switching out
is not an issue.
2022-10-13 16:43:38 +02:00
Michael Klein 44f42a52a1 Use HDS in peers.edit.exported 2022-10-13 16:43:31 +02:00
wenincode 06711c8f51 Expect a boolean from synthetic-node meta key 2022-10-13 08:41:26 -06:00
wenincode 0aabfa921f Re-enable nodes in list feature test 2022-10-13 08:29:48 -06:00
wenincode bc966efbe4 Use reject-by composable helper instead of provider 2022-10-13 07:29:51 -06:00
Dan Upton de7f380385
xds: properly merge central config for "agentless" services (#14962) 2022-10-13 12:04:59 +01:00
Dan Upton 36a3d00f0d
bug: fix goroutine leaks caused by incorrect usage of `WatchCh` (#14916)
memdb's `WatchCh` method creates a goroutine that will publish to the
returned channel when the watchset is triggered or the given context
is canceled. Although this is called out in its godoc comment, it's
not obvious that this method creates a goroutine who's lifecycle you
need to manage.

In the xDS capacity controller, we were calling `WatchCh` on each
iteration of the control loop, meaning the number of goroutines would
grow on each autopilot event until there was catalog churn.

In the catalog config source, we were calling `WatchCh` with the
background context, meaning that the goroutine would keep running after
the sync loop had terminated.
2022-10-13 12:04:27 +01:00
Hans Hasselberg 56580d6fa6
adding configuration option cloud.scada_address (#14936)
* adding scada_address

* config tests

* add changelog entry
2022-10-13 11:31:28 +02:00
Michael Klein 8c0aa57bd2 Configure tailwind-jit for sub-apps as well 2022-10-13 10:44:07 +02:00
Michael Klein 961d0179c7 add external-services method to peer repo 2022-10-13 10:44:07 +02:00
Michael Klein d33b5c7bd3 Move javascript tab class to tab-nav 2022-10-13 10:44:07 +02:00
Michael Klein 7334472f84 Pass provider data for peering tab-nav 2022-10-13 10:44:07 +02:00
Michael Klein 4b89df2335 Create Peerings::Provider
We need a component abstraction that encapsulates
creating the dynamic tabs based on peering-type.

We create a `PeerTab`-abstraction that behaves like
the data-structure the tab-nav expects to achieve this
effect.
2022-10-13 10:44:07 +02:00
Michael Klein 99921a8bdd Transition to exported/imported based on peer type 2022-10-13 10:44:07 +02:00
Michael Klein 65a33f8f8a Add imported/exported tabs to peers.edit 2022-10-13 10:44:07 +02:00
Michael Klein 78b0eb4f43 Add imported and exported routes for peers.edit 2022-10-13 10:44:07 +02:00
Michael Klein 7f799cd9f5 Handle case when this.element is undefined outlet 2022-10-13 10:44:07 +02:00
Michael Klein 75d867b7e8 Add link to peers.edit to peerings list 2022-10-13 10:44:07 +02:00
Michael Klein ca53d4dc0d Bring back edit-route for peerings 2022-10-13 10:44:07 +02:00
Michael Klein 2cb8b44b5f Only display regenerate token when peer is dialer
Regenerating only makes sense if we are dealing with the
side that created  the token - i.e. the dialer.
2022-10-13 10:44:07 +02:00
Michael Klein 66a1343b2a Differentiate between dialer / receiver peer model 2022-10-13 10:44:06 +02:00
wenincode ec30447f00 Remove mocking synthetic nodes for now 2022-10-12 17:16:22 -06:00
wenincode ef681d06dc Add changelog 2022-10-12 17:16:01 -06:00
wenincode 1de0af4be1 Filter synthetic nodes on nodes list page 2022-10-12 17:16:01 -06:00
Paul Glass be1a4438a9
Add consul.xds.server.streamStart metric (#14957)
This adds a new consul.xds.server.streamStart metric to measure the time taken to first generate xDS resources after an xDS stream is opened.
2022-10-12 14:17:58 -05:00
Iryna Shustava 28b7dea973
cli: Add -node-name flag to redirect-traffic command (#14933) 2022-10-12 11:53:41 -06:00
cskh 3c3ec4ed0b
fix(cli): missing error message (#14959) 2022-10-12 11:09:47 -04:00
Riddhi Shah 474d9cfcdc
Service http checks data source for agentless proxies (#14924)
Adds another datasource for proxycfg.HTTPChecks, for use on server agents. Typically these checks are performed by local client agents and there is no equivalent of this in agentless (where servers configure consul-dataplane proxies).
Hence, the data source is mostly a no-op on servers but in the case where the service is present within the local state, it delegates to the cache data source.
2022-10-12 07:49:56 -07:00
Freddy 4cf0bf4865
Merge pull request #14958 from hashicorp/peering/nonce 2022-10-12 08:18:15 -06:00
freddygv 4d1e7c4cbb Actually track nonce in test 2022-10-12 07:50:17 -06:00
Derek Menteer 00312bcf57 Fix incorrect backoff-wait logic. 2022-10-12 08:01:10 -05:00
Dhia Ayachi 2bd2054e09
bump raft version to v1.3.11 (#14897)
* bump raft version to v1.3.11

* Add change log

* fix go.sum
2022-10-12 08:51:52 -04:00
Michael Klein 0624aaf675
Merge pull request #14938 from hashicorp/ui/chore/removable-terminated-peers
ui: make terminated peers removable
2022-10-12 10:41:59 +02:00
Michael Klein e0a5ea5d09 Allow deleting terminated peers 2022-10-12 09:33:23 +02:00
Michael Klein 1f4c4d5005 pass dc/partition when normalizing peerings 2022-10-12 09:29:24 +02:00
Michael Klein c1fdc5836b default to an empty array peering services 2022-10-12 09:29:24 +02:00
Michael Klein 73deb13bd8 Update peer repo with latest API changes 2022-10-12 09:29:24 +02:00
freddygv c9d171c031 Add basic nonce management
This commit adds a monotonically increasing nonce to include in peering
replication response messages. Every ack/nack from the peer handling a
response will include this nonce, allowing to correlate the ack/nack
with a specific resource.

At the moment nothing is done with the nonce when it is received. In the
future we may want to add functionality such as retries on NACKs,
depending on the class of error.
2022-10-11 19:02:04 -06:00
Paul Glass 8cf430140a
gRPC server metrics (#14922)
* Move stats.go from grpc-internal to grpc-middleware
* Update grpc server metrics with server type label
* Add stats test to grpc-external
* Remove global metrics instance from grpc server tests
2022-10-11 17:00:32 -05:00