Skip to content

Commit 75bc9d5

Browse files
committed
Check if user has access to namespace resources before collecting
1 parent 6a08536 commit 75bc9d5

10 files changed

+41409
-16
lines changed

config/crds/troubleshoot.sh_collectors.yaml

Lines changed: 7664 additions & 0 deletions
Large diffs are not rendered by default.

config/crds/troubleshoot.sh_hostcollectors.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ spec:
4343
properties:
4444
checkName:
4545
type: string
46+
collectorName:
47+
type: string
4648
exclude:
4749
type: BoolString
4850
includeUnmountedPartitions:
@@ -138,6 +140,8 @@ spec:
138140
properties:
139141
checkName:
140142
type: string
143+
collectorName:
144+
type: string
141145
exclude:
142146
type: BoolString
143147
outcomes:
@@ -271,6 +275,8 @@ spec:
271275
properties:
272276
checkName:
273277
type: string
278+
collectorName:
279+
type: string
274280
exclude:
275281
type: BoolString
276282
outcomes:
@@ -314,6 +320,8 @@ spec:
314320
properties:
315321
checkName:
316322
type: string
323+
collectorName:
324+
type: string
317325
exclude:
318326
type: BoolString
319327
outcomes:
@@ -447,6 +455,8 @@ spec:
447455
properties:
448456
checkName:
449457
type: string
458+
collectorName:
459+
type: string
450460
exclude:
451461
type: BoolString
452462
outcomes:
@@ -490,6 +500,8 @@ spec:
490500
properties:
491501
checkName:
492502
type: string
503+
collectorName:
504+
type: string
493505
exclude:
494506
type: BoolString
495507
outcomes:
@@ -533,6 +545,8 @@ spec:
533545
properties:
534546
checkName:
535547
type: string
548+
collectorName:
549+
type: string
536550
exclude:
537551
type: BoolString
538552
outcomes:
@@ -756,6 +770,8 @@ spec:
756770
properties:
757771
checkName:
758772
type: string
773+
collectorName:
774+
type: string
759775
exclude:
760776
type: BoolString
761777
outcomes:

config/crds/troubleshoot.sh_hostpreflights.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ spec:
4343
properties:
4444
checkName:
4545
type: string
46+
collectorName:
47+
type: string
4648
exclude:
4749
type: BoolString
4850
includeUnmountedPartitions:
@@ -138,6 +140,8 @@ spec:
138140
properties:
139141
checkName:
140142
type: string
143+
collectorName:
144+
type: string
141145
exclude:
142146
type: BoolString
143147
outcomes:
@@ -271,6 +275,8 @@ spec:
271275
properties:
272276
checkName:
273277
type: string
278+
collectorName:
279+
type: string
274280
exclude:
275281
type: BoolString
276282
outcomes:
@@ -314,6 +320,8 @@ spec:
314320
properties:
315321
checkName:
316322
type: string
323+
collectorName:
324+
type: string
317325
exclude:
318326
type: BoolString
319327
outcomes:
@@ -447,6 +455,8 @@ spec:
447455
properties:
448456
checkName:
449457
type: string
458+
collectorName:
459+
type: string
450460
exclude:
451461
type: BoolString
452462
outcomes:
@@ -490,6 +500,8 @@ spec:
490500
properties:
491501
checkName:
492502
type: string
503+
collectorName:
504+
type: string
493505
exclude:
494506
type: BoolString
495507
outcomes:
@@ -533,6 +545,8 @@ spec:
533545
properties:
534546
checkName:
535547
type: string
548+
collectorName:
549+
type: string
536550
exclude:
537551
type: BoolString
538552
outcomes:
@@ -756,6 +770,8 @@ spec:
756770
properties:
757771
checkName:
758772
type: string
773+
collectorName:
774+
type: string
759775
exclude:
760776
type: BoolString
761777
outcomes:

0 commit comments

Comments
 (0)