mirror of
https://github.com/replicatedhq/troubleshoot.git
synced 2026-08-27 00:37:20 +00:00
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