mirror of
https://github.com/gravitational/teleport.git
synced 2026-11-03 16:38:35 +08:00
* Add discovery for Kubernetes apps * Address review comments * Init nil slice instead of empty one Co-authored-by: rosstimothy <39066650+rosstimothy@users.noreply.github.com> * Improve comment wording. Co-authored-by: rosstimothy <39066650+rosstimothy@users.noreply.github.com> * Optimize discovery clients initiation code Co-authored-by: rosstimothy <39066650+rosstimothy@users.noreply.github.com> * Combine var usages Co-authored-by: rosstimothy <39066650+rosstimothy@users.noreply.github.com> * Fix error message Co-authored-by: rosstimothy <39066650+rosstimothy@users.noreply.github.com> * Handle the error Co-authored-by: rosstimothy <39066650+rosstimothy@users.noreply.github.com> * Remove unneeded input Co-authored-by: rosstimothy <39066650+rosstimothy@users.noreply.github.com> * Use once for kubernetes client getter * Simplify clients structure for discovery * Add umbrella field for discovery matchers * Move port protocol detection into discovery * Add automatic protocol detection to the Kuberentes fetcher * Simplify kube apps discovery test * Return concrete fetcher instead of interface * Remove parallelization of a test. * Fix race condition in the test * Fix after rebase * Address review comments * Use var instead of empty slice Co-authored-by: rosstimothy <39066650+rosstimothy@users.noreply.github.com> * Optimize switch Co-authored-by: rosstimothy <39066650+rosstimothy@users.noreply.github.com> * Decapitalize error message Co-authored-by: rosstimothy <39066650+rosstimothy@users.noreply.github.com> * Use var instead of empty slice Co-authored-by: rosstimothy <39066650+rosstimothy@users.noreply.github.com> * Use t.Parallel() Co-authored-by: rosstimothy <39066650+rosstimothy@users.noreply.github.com> * Remove unneeded test parameter * Use t.Parallel() Co-authored-by: rosstimothy <39066650+rosstimothy@users.noreply.github.com> * Use var instead of empty slice Co-authored-by: rosstimothy <39066650+rosstimothy@users.noreply.github.com> * Fix tests * Improve wording. Co-authored-by: Tiago Silva <tiago.silva@goteleport.com> * Address review comments * Refactor discovery clients location * Fix flaky tests * Fix comment Co-authored-by: rosstimothy <39066650+rosstimothy@users.noreply.github.com> * Address review comments * Fix tests after rebase --------- Co-authored-by: rosstimothy <39066650+rosstimothy@users.noreply.github.com> Co-authored-by: Tiago Silva <tiago.silva@goteleport.com>