mirror of https://github.com/hashicorp/consul
b0e87dbe13
* Add Stop method to telemetry provider Stop the main loop of the provider and set the config to disabled. * Add interface for telemetry provider Added for easier testing. Also renamed Run to Start, which better fits with Stop. * Add Stop method to HCP manager * Add manager interface, rename implementation Add interface for easier testing, rename existing Manager to HCPManager. * Stop HCP manager in link Finalizer * Attempt to cleanup if resource has been deleted The link should be cleaned up by the finalizer, but there's an edge case in a multi-server setup where the link is fully deleted on one server before the other server reconciles. This will cover the case where the reconcile happens after the resource is deleted. * Add a delete mananagement token function Passes a function to the HCP manager that deletes the management token that was initially created by the manager. * Delete token as part of stopping the manager * Lock around disabling config, remove descriptions |
||
---|---|---|
.. | ||
bootstrap | ||
client | ||
config | ||
discover | ||
scada | ||
telemetry | ||
testserver | ||
deps.go | ||
deps_test.go | ||
manager.go | ||
manager_test.go | ||
mock_Manager.go | ||
mock_TelemetryProvider.go | ||
telemetry_provider.go | ||
telemetry_provider_test.go | ||
testing.go |