mirror of
https://github.com/gravitational/teleport.git
synced 2026-11-02 23:31:08 +08:00
Currently, when multiple discovery services are running with different selectors, they will race against each other and delete the other resources. This PR fixes that behavior if the databases or kube clusters existent in auth do not match the current selectors, they will be ignored. This has a slight problem when a user stops a discovery agent, he must manually delete the resources created, otherwise they will be available forever. Fixes #23699