Skip to content

Commit 7be40dd

Browse files
authored
Merge pull request #176 from replicatedhq/laverya/include-collect-global-redactors
honor global redactors from collect spec
2 parents fc65ceb + de9b832 commit 7be40dd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cmd/troubleshoot/cli/run.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,7 @@ func runCollectors(v *viper.Viper, collector troubleshootv1beta1.Collector, addi
262262
if additionalRedactors != nil {
263263
globalRedactors = additionalRedactors.Spec.Redactors
264264
}
265+
globalRedactors = append(globalRedactors, collector.Spec.GlobalRedactors...)
265266

266267
// Run preflights collectors synchronously
267268
for _, collector := range collectors {

0 commit comments

Comments
 (0)