Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
If drenv is run in verbose mode, pass --verbose flag to kubectl-gather to log more verbose gather logs. This may be useful to debug issues in kubectl gather in the CI environment. Example log with this change: % drenv gather envs/regional-dr.yaml -v 2025-01-15 22:13:31,064 DEBUG [envfile] Detected os: 'darwin' 2025-01-15 22:13:31,064 DEBUG [envfile] Detected machine: 'arm64' 2025-01-15 22:13:31,064 DEBUG [envfile] Using provider: 'lima' 2025-01-15 22:13:31,064 DEBUG [envfile] Using driver: '' 2025-01-15 22:13:31,064 DEBUG [envfile] Using network: '' 2025-01-15 22:13:31,064 DEBUG [envfile] Detected os: 'darwin' 2025-01-15 22:13:31,064 DEBUG [envfile] Detected machine: 'arm64' 2025-01-15 22:13:31,064 DEBUG [envfile] Using provider: 'lima' 2025-01-15 22:13:31,064 DEBUG [envfile] Using driver: '' 2025-01-15 22:13:31,064 DEBUG [envfile] Using network: '' 2025-01-15 22:13:31,064 DEBUG [envfile] Detected os: 'darwin' 2025-01-15 22:13:31,064 DEBUG [envfile] Detected machine: 'arm64' 2025-01-15 22:13:31,064 DEBUG [envfile] Using provider: 'lima' 2025-01-15 22:13:31,064 DEBUG [envfile] Using driver: '' 2025-01-15 22:13:31,064 DEBUG [envfile] Using network: '' 2025-01-15 22:13:31,064 INFO [rdr] Gathering environment 2025-01-15 22:13:31,356 INFO [gather] Using kubeconfig "/Users/nsoffer/.kube/config" 2025-01-15 22:13:31,359 INFO [gather] Gathering from all namespaces 2025-01-15 22:13:31,359 INFO [gather] Using all addons 2025-01-15 22:13:31,359 INFO [gather] Storing data in "gather.20250115221331" 2025-01-15 22:13:31,359 INFO [gather] Gathering from cluster "dr1" 2025-01-15 22:13:31,359 INFO [gather] Gathering from cluster "dr2" 2025-01-15 22:13:31,359 INFO [gather] Gathering from cluster "hub" 2025-01-15 22:13:31,406 DEBUG [gather.dr2] Listed 133 api resources in 0.038 seconds 2025-01-15 22:13:31,406 DEBUG [gather.hub] Listed 105 api resources in 0.038 seconds 2025-01-15 22:13:31,410 DEBUG [gather.dr1] Listed 133 api resources in 0.042 seconds 2025-01-15 22:13:31,416 DEBUG [gather.dr2] Listed 0 "podtemplates" in 0.010 seconds 2025-01-15 22:13:31,416 DEBUG [gather.dr2] Gathered 0 "podtemplates" in 0.010 seconds Signed-off-by: Nir Soffer <[email protected]>
- Loading branch information