Files
troubleshoot/pkg/collect
Kris Coleman 22ab3cf551 feat(redact): make MAX_CONCURRENT_REDACTORS configurable via env var (sc-138321) (#2057)
Replace the hardcoded MAX_CONCURRENT_REDACTORS = 10 ceiling in
pkg/collect/redact.go with a runtime-resolved value driven by the
TROUBLESHOOT_MAX_CONCURRENT_REDACTORS env var. The default (10) is
unchanged, so behavior is identical unless an operator opts in.

- DefaultMaxConcurrentRedactors exported as the default
- MaxConcurrentRedactorsEnvVar exported as the env var name
- maxConcurrentRedactors() helper parses the env, logs on invalid input,
  and falls back to the default on missing/empty/non-numeric/<=0 values
- Table-driven tests in pkg/collect/redact_test.go cover unset, empty,
  positive override, default-equal, zero, negative, non-numeric, and
  whitespace-padded inputs

Unblocks Pixee's standalone support-bundle pipeline, which hits the
10-concurrent ceiling on large bundles.

Refs: sc-138321, replicated-collab/pixee-replicated#131
2026-06-10 16:07:27 -04:00
..
2025-10-08 10:22:11 -07:00
2025-10-08 10:22:11 -07:00
2025-07-09 20:58:47 -04:00
2025-10-08 10:22:11 -07:00
2024-09-20 08:13:57 +10:00
2024-08-13 08:42:26 +10:00
2025-10-08 10:22:11 -07:00
2025-10-08 10:22:11 -07:00
2025-10-08 10:22:11 -07:00
2025-10-08 10:22:11 -07:00
2025-10-08 10:22:11 -07:00
2025-10-08 10:22:11 -07:00
2025-10-08 10:22:11 -07:00
2025-10-08 10:22:11 -07:00
2025-10-08 10:22:11 -07:00
2025-10-08 10:22:11 -07:00
2025-10-08 10:22:11 -07:00
2025-10-08 10:22:11 -07:00
2025-10-08 10:22:11 -07:00
2025-10-08 10:22:11 -07:00
2025-10-08 10:22:11 -07:00
2025-07-09 20:58:47 -04:00
2025-10-08 10:22:11 -07:00
2025-10-10 10:24:48 -05:00