Skip to content

Commit 3563f31

Browse files
authored
feat: add skip command output support (#2172)
Signed-off-by: Charles-Edouard Brétéché <[email protected]>
1 parent ab5f0a3 commit 3563f31

19 files changed

+501
-2
lines changed

.crds/chainsaw.kyverno.io_configurations.yaml

+16
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,10 @@ spec:
183183
- value
184184
type: object
185185
type: array
186+
skipCommandOutput:
187+
description: SkipCommandOutput removes the command from
188+
the output logs.
189+
type: boolean
186190
skipLogOutput:
187191
description: SkipLogOutput removes the output from the command.
188192
Useful for sensitive logs or to reduce noise.
@@ -681,6 +685,10 @@ spec:
681685
- value
682686
type: object
683687
type: array
688+
skipCommandOutput:
689+
description: SkipCommandOutput removes the command from
690+
the output logs.
691+
type: boolean
684692
skipLogOutput:
685693
description: SkipLogOutput removes the output from the command.
686694
Useful for sensitive logs or to reduce noise.
@@ -1203,6 +1211,10 @@ spec:
12031211
- value
12041212
type: object
12051213
type: array
1214+
skipCommandOutput:
1215+
description: SkipCommandOutput removes the command from
1216+
the output logs.
1217+
type: boolean
12061218
skipLogOutput:
12071219
description: SkipLogOutput removes the output from the
12081220
command. Useful for sensitive logs or to reduce noise.
@@ -1704,6 +1716,10 @@ spec:
17041716
- value
17051717
type: object
17061718
type: array
1719+
skipCommandOutput:
1720+
description: SkipCommandOutput removes the command from
1721+
the output logs.
1722+
type: boolean
17071723
skipLogOutput:
17081724
description: SkipLogOutput removes the output from the
17091725
command. Useful for sensitive logs or to reduce noise.

.crds/chainsaw.kyverno.io_steptemplates.yaml

+32
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,10 @@ spec:
206206
- value
207207
type: object
208208
type: array
209+
skipCommandOutput:
210+
description: SkipCommandOutput removes the command from
211+
the output logs.
212+
type: boolean
209213
skipLogOutput:
210214
description: SkipLogOutput removes the output from the command.
211215
Useful for sensitive logs or to reduce noise.
@@ -704,6 +708,10 @@ spec:
704708
- value
705709
type: object
706710
type: array
711+
skipCommandOutput:
712+
description: SkipCommandOutput removes the command from
713+
the output logs.
714+
type: boolean
707715
skipLogOutput:
708716
description: SkipLogOutput removes the output from the command.
709717
Useful for sensitive logs or to reduce noise.
@@ -972,6 +980,10 @@ spec:
972980
- value
973981
type: object
974982
type: array
983+
skipCommandOutput:
984+
description: SkipCommandOutput removes the command from
985+
the output logs.
986+
type: boolean
975987
skipLogOutput:
976988
description: SkipLogOutput removes the output from the command.
977989
Useful for sensitive logs or to reduce noise.
@@ -1470,6 +1482,10 @@ spec:
14701482
- value
14711483
type: object
14721484
type: array
1485+
skipCommandOutput:
1486+
description: SkipCommandOutput removes the command from
1487+
the output logs.
1488+
type: boolean
14731489
skipLogOutput:
14741490
description: SkipLogOutput removes the output from the command.
14751491
Useful for sensitive logs or to reduce noise.
@@ -1738,6 +1754,10 @@ spec:
17381754
- value
17391755
type: object
17401756
type: array
1757+
skipCommandOutput:
1758+
description: SkipCommandOutput removes the command from
1759+
the output logs.
1760+
type: boolean
17411761
skipLogOutput:
17421762
description: SkipLogOutput removes the output from the command.
17431763
Useful for sensitive logs or to reduce noise.
@@ -2236,6 +2256,10 @@ spec:
22362256
- value
22372257
type: object
22382258
type: array
2259+
skipCommandOutput:
2260+
description: SkipCommandOutput removes the command from
2261+
the output logs.
2262+
type: boolean
22392263
skipLogOutput:
22402264
description: SkipLogOutput removes the output from the command.
22412265
Useful for sensitive logs or to reduce noise.
@@ -2715,6 +2739,10 @@ spec:
27152739
- value
27162740
type: object
27172741
type: array
2742+
skipCommandOutput:
2743+
description: SkipCommandOutput removes the command from
2744+
the output logs.
2745+
type: boolean
27182746
skipLogOutput:
27192747
description: SkipLogOutput removes the output from the command.
27202748
Useful for sensitive logs or to reduce noise.
@@ -3630,6 +3658,10 @@ spec:
36303658
- value
36313659
type: object
36323660
type: array
3661+
skipCommandOutput:
3662+
description: SkipCommandOutput removes the command from
3663+
the output logs.
3664+
type: boolean
36333665
skipLogOutput:
36343666
description: SkipLogOutput removes the output from the command.
36353667
Useful for sensitive logs or to reduce noise.

.crds/chainsaw.kyverno.io_tests.yaml

+40
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,10 @@ spec:
207207
- value
208208
type: object
209209
type: array
210+
skipCommandOutput:
211+
description: SkipCommandOutput removes the command from
212+
the output logs.
213+
type: boolean
210214
skipLogOutput:
211215
description: SkipLogOutput removes the output from the command.
212216
Useful for sensitive logs or to reduce noise.
@@ -705,6 +709,10 @@ spec:
705709
- value
706710
type: object
707711
type: array
712+
skipCommandOutput:
713+
description: SkipCommandOutput removes the command from
714+
the output logs.
715+
type: boolean
708716
skipLogOutput:
709717
description: SkipLogOutput removes the output from the command.
710718
Useful for sensitive logs or to reduce noise.
@@ -1128,6 +1136,10 @@ spec:
11281136
- value
11291137
type: object
11301138
type: array
1139+
skipCommandOutput:
1140+
description: SkipCommandOutput removes the command
1141+
from the output logs.
1142+
type: boolean
11311143
skipLogOutput:
11321144
description: SkipLogOutput removes the output from
11331145
the command. Useful for sensitive logs or to reduce
@@ -1640,6 +1652,10 @@ spec:
16401652
- value
16411653
type: object
16421654
type: array
1655+
skipCommandOutput:
1656+
description: SkipCommandOutput removes the command
1657+
from the output logs.
1658+
type: boolean
16431659
skipLogOutput:
16441660
description: SkipLogOutput removes the output from
16451661
the command. Useful for sensitive logs or to reduce
@@ -1914,6 +1930,10 @@ spec:
19141930
- value
19151931
type: object
19161932
type: array
1933+
skipCommandOutput:
1934+
description: SkipCommandOutput removes the command
1935+
from the output logs.
1936+
type: boolean
19171937
skipLogOutput:
19181938
description: SkipLogOutput removes the output from
19191939
the command. Useful for sensitive logs or to reduce
@@ -2426,6 +2446,10 @@ spec:
24262446
- value
24272447
type: object
24282448
type: array
2449+
skipCommandOutput:
2450+
description: SkipCommandOutput removes the command
2451+
from the output logs.
2452+
type: boolean
24292453
skipLogOutput:
24302454
description: SkipLogOutput removes the output from
24312455
the command. Useful for sensitive logs or to reduce
@@ -2742,6 +2766,10 @@ spec:
27422766
- value
27432767
type: object
27442768
type: array
2769+
skipCommandOutput:
2770+
description: SkipCommandOutput removes the command
2771+
from the output logs.
2772+
type: boolean
27452773
skipLogOutput:
27462774
description: SkipLogOutput removes the output from
27472775
the command. Useful for sensitive logs or to reduce
@@ -3254,6 +3282,10 @@ spec:
32543282
- value
32553283
type: object
32563284
type: array
3285+
skipCommandOutput:
3286+
description: SkipCommandOutput removes the command
3287+
from the output logs.
3288+
type: boolean
32573289
skipLogOutput:
32583290
description: SkipLogOutput removes the output from
32593291
the command. Useful for sensitive logs or to reduce
@@ -3779,6 +3811,10 @@ spec:
37793811
- value
37803812
type: object
37813813
type: array
3814+
skipCommandOutput:
3815+
description: SkipCommandOutput removes the command
3816+
from the output logs.
3817+
type: boolean
37823818
skipLogOutput:
37833819
description: SkipLogOutput removes the output from
37843820
the command. Useful for sensitive logs or to reduce
@@ -4714,6 +4750,10 @@ spec:
47144750
- value
47154751
type: object
47164752
type: array
4753+
skipCommandOutput:
4754+
description: SkipCommandOutput removes the command
4755+
from the output logs.
4756+
type: boolean
47174757
skipLogOutput:
47184758
description: SkipLogOutput removes the output from
47194759
the command. Useful for sensitive logs or to reduce

.schemas/json/configuration-chainsaw-v1alpha1.json

+14
Original file line numberDiff line numberDiff line change
@@ -583,6 +583,13 @@
583583
"additionalProperties": false
584584
}
585585
},
586+
"skipCommandOutput": {
587+
"description": "SkipCommandOutput removes the command from the output logs.",
588+
"type": [
589+
"boolean",
590+
"null"
591+
]
592+
},
586593
"skipLogOutput": {
587594
"description": "SkipLogOutput removes the output from the command. Useful for sensitive logs or to reduce noise.",
588595
"type": [
@@ -1402,6 +1409,13 @@
14021409
"additionalProperties": false
14031410
}
14041411
},
1412+
"skipCommandOutput": {
1413+
"description": "SkipCommandOutput removes the command from the output logs.",
1414+
"type": [
1415+
"boolean",
1416+
"null"
1417+
]
1418+
},
14051419
"skipLogOutput": {
14061420
"description": "SkipLogOutput removes the output from the command. Useful for sensitive logs or to reduce noise.",
14071421
"type": [

.schemas/json/configuration-chainsaw-v1alpha2.json

+14
Original file line numberDiff line numberDiff line change
@@ -711,6 +711,13 @@
711711
"additionalProperties": false
712712
}
713713
},
714+
"skipCommandOutput": {
715+
"description": "SkipCommandOutput removes the command from the output logs.",
716+
"type": [
717+
"boolean",
718+
"null"
719+
]
720+
},
714721
"skipLogOutput": {
715722
"description": "SkipLogOutput removes the output from the command. Useful for sensitive logs or to reduce noise.",
716723
"type": [
@@ -1530,6 +1537,13 @@
15301537
"additionalProperties": false
15311538
}
15321539
},
1540+
"skipCommandOutput": {
1541+
"description": "SkipCommandOutput removes the command from the output logs.",
1542+
"type": [
1543+
"boolean",
1544+
"null"
1545+
]
1546+
},
15331547
"skipLogOutput": {
15341548
"description": "SkipLogOutput removes the output from the command. Useful for sensitive logs or to reduce noise.",
15351549
"type": [

0 commit comments

Comments
 (0)