Skip to content
This repository was archived by the owner on Oct 14, 2020. It is now read-only.

Commit 2661802

Browse files
committed
Update helm chart crds and rbac rules
1 parent 0cd42c5 commit 2661802

12 files changed

+596
-76
lines changed

operator/config/crd/bases/execution.experimental.securecodebox.io_scantypes.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ metadata:
99
name: scantypes.execution.experimental.securecodebox.io
1010
spec:
1111
additionalPrinterColumns:
12-
- JSONPath: .spec.template.spec.containers[0].image
12+
- JSONPath: .spec.jobTemplate.spec.template.spec.containers[0].image
1313
description: Scanner Container Image
1414
name: Image
1515
type: string

operator/crds/execution.experimental.securecodebox.io_parsedefinitions.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,18 @@
33
apiVersion: apiextensions.k8s.io/v1beta1
44
kind: CustomResourceDefinition
55
metadata:
6+
annotations:
7+
controller-gen.kubebuilder.io/version: v0.2.5
68
creationTimestamp: null
79
name: parsedefinitions.execution.experimental.securecodebox.io
810
spec:
911
group: execution.experimental.securecodebox.io
1012
names:
1113
kind: ParseDefinition
14+
listKind: ParseDefinitionList
1215
plural: parsedefinitions
13-
scope: ""
16+
singular: parsedefinition
17+
scope: Namespaced
1418
validation:
1519
openAPIV3Schema:
1620
description: ParseDefinition is the Schema for the parsedefinitions API

operator/crds/execution.experimental.securecodebox.io_persistenceproviders.yaml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
apiVersion: apiextensions.k8s.io/v1beta1
44
kind: CustomResourceDefinition
55
metadata:
6+
annotations:
7+
controller-gen.kubebuilder.io/version: v0.2.5
68
creationTimestamp: null
79
name: persistenceproviders.execution.experimental.securecodebox.io
810
spec:
@@ -14,8 +16,10 @@ spec:
1416
group: execution.experimental.securecodebox.io
1517
names:
1618
kind: PersistenceProvider
19+
listKind: PersistenceProviderList
1720
plural: persistenceproviders
18-
scope: ""
21+
singular: persistenceprovider
22+
scope: Namespaced
1923
subresources: {}
2024
validation:
2125
openAPIV3Schema:
@@ -103,9 +107,13 @@ spec:
103107
for env vars'
104108
type: string
105109
divisor:
110+
anyOf:
111+
- type: integer
112+
- type: string
106113
description: Specifies the output format of the exposed
107114
resources, defaults to "1"
108-
type: string
115+
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
116+
x-kubernetes-int-or-string: true
109117
resource:
110118
description: 'Required: resource to select'
111119
type: string

operator/crds/execution.experimental.securecodebox.io_scans.yaml

Lines changed: 49 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,17 @@
33
apiVersion: apiextensions.k8s.io/v1beta1
44
kind: CustomResourceDefinition
55
metadata:
6+
annotations:
7+
controller-gen.kubebuilder.io/version: v0.2.5
68
creationTimestamp: null
79
name: scans.execution.experimental.securecodebox.io
810
spec:
911
additionalPrinterColumns:
12+
- JSONPath: .metadata.uid
13+
description: K8s Resource UID
14+
name: UID
15+
priority: 1
16+
type: string
1017
- JSONPath: .spec.scanType
1118
description: Scan Type
1219
name: Type
@@ -15,15 +22,22 @@ spec:
1522
description: Scan State
1623
name: State
1724
type: string
18-
- JSONPath: .status.findingCount
25+
- JSONPath: .status.findings.count
1926
description: Total Finding Count
2027
name: Findings
2128
type: string
29+
- JSONPath: .spec.parameters
30+
description: Arguments passed to the Scanner
31+
name: Parameters
32+
priority: 1
33+
type: string
2234
group: execution.experimental.securecodebox.io
2335
names:
2436
kind: Scan
37+
listKind: ScanList
2538
plural: scans
26-
scope: ""
39+
singular: scan
40+
scope: Namespaced
2741
subresources:
2842
status: {}
2943
validation:
@@ -55,34 +69,39 @@ spec:
5569
status:
5670
description: ScanStatus defines the observed state of Scan
5771
properties:
58-
findingCategories:
59-
additionalProperties:
60-
format: int64
61-
type: integer
62-
description: FindingCategories indicates the count of finding broken
63-
down by their categories
64-
type: object
65-
findingCount:
66-
description: FindingCount indicates how many findings were identified
67-
in total
68-
format: int64
69-
type: integer
70-
findingSeverities:
71-
description: FindingSeverities indicates the count of finding with the
72-
respective severity
72+
findings:
73+
description: FindingStats contains the general stats about the results
74+
of the scan
7375
properties:
74-
highCount:
75-
format: int64
76-
type: integer
77-
informationalCount:
78-
format: int64
79-
type: integer
80-
lowCount:
81-
format: int64
82-
type: integer
83-
mediumCount:
76+
categories:
77+
additionalProperties:
78+
format: int64
79+
type: integer
80+
description: FindingCategories indicates the count of finding broken
81+
down by their categories
82+
type: object
83+
count:
84+
description: Count indicates how many findings were identified in
85+
total
8486
format: int64
8587
type: integer
88+
severities:
89+
description: FindingSeverities indicates the count of finding with
90+
the respective severity
91+
properties:
92+
high:
93+
format: int64
94+
type: integer
95+
informational:
96+
format: int64
97+
type: integer
98+
low:
99+
format: int64
100+
type: integer
101+
medium:
102+
format: int64
103+
type: integer
104+
type: object
86105
type: object
87106
rawResultFile:
88107
description: RawResultFile Filename of the result file of the scanner.
@@ -92,6 +111,9 @@ spec:
92111
description: RawResultType determines which kind of ParseDefinition
93112
will be used to turn the raw results of the scanner into findings
94113
type: string
114+
startTime:
115+
format: date-time
116+
type: string
95117
state:
96118
type: string
97119
type: object

0 commit comments

Comments
 (0)