Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
We used to drop gather info logs. Watch the gather process and log the gather logs as they are written to stderr. Example logs with this change: % drenv gather envs/regional-dr.yaml 2025-01-15 22:04:20,865 INFO [rdr] Gathering environment 2025-01-15 22:04:21,124 INFO [gather] Using kubeconfig "/Users/nsoffer/.kube/config" 2025-01-15 22:04:21,126 INFO [gather] Gathering from all namespaces 2025-01-15 22:04:21,126 INFO [gather] Using all addons 2025-01-15 22:04:21,126 INFO [gather] Storing data in "gather.20250115220421" 2025-01-15 22:04:21,126 INFO [gather] Gathering from cluster "dr1" 2025-01-15 22:04:21,126 INFO [gather] Gathering from cluster "dr2" 2025-01-15 22:04:21,126 INFO [gather] Gathering from cluster "hub" 2025-01-15 22:04:23,095 INFO [gather] Gathered 1535 resources from cluster "hub" in 1.969 seconds 2025-01-15 22:04:24,395 INFO [gather] Gathered 1909 resources from cluster "dr1" in 3.269 seconds 2025-01-15 22:04:24,544 INFO [gather] Gathered 1920 resources from cluster "dr2" in 3.417 seconds 2025-01-15 22:04:24,544 INFO [gather] Gathered 5364 resources from 3 clusters in 3.418 seconds 2025-01-15 22:04:24,555 INFO [rdr] Environment gathered in 3.69 seconds Note: This change requires kubectl-gather 0.6.0. Developers that want to use the `drenv gather` command will have to upgrade kubectl-gather to latest version. Signed-off-by: Nir Soffer <[email protected]>
- Loading branch information