Skip to content

Commit de9b832

Browse files
committed
honor global redactors from collect spec
1 parent fc65ceb commit de9b832

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)