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

Commit 66afc7b

Browse files
committed
#33 Update CRDs included in the helm chart
1 parent 8d016ae commit 66afc7b

File tree

3 files changed

+253
-0
lines changed

3 files changed

+253
-0
lines changed
Lines changed: 160 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,160 @@
1+
2+
---
3+
apiVersion: apiextensions.k8s.io/v1beta1
4+
kind: CustomResourceDefinition
5+
metadata:
6+
annotations:
7+
controller-gen.kubebuilder.io/version: v0.2.4
8+
creationTimestamp: null
9+
name: cascadingrules.cascading.experimental.securecodebox.io
10+
spec:
11+
additionalPrinterColumns:
12+
- JSONPath: .spec.scanSpec.scanType
13+
description: Which Scanner is started when the CascadingRule applies
14+
name: Starts
15+
type: string
16+
- JSONPath: .metadata.labels.securecodebox\.io/invasive
17+
description: Indicates how invasive the Scanner is. Can be either 'invasive' or
18+
'non-invasive'
19+
name: Invasiveness
20+
type: string
21+
- JSONPath: .metadata.labels.securecodebox\.io/intensive
22+
description: Indicates how much ressource the Scanner consumes. Can be either
23+
'light' or 'medium'
24+
name: Intensiveness
25+
type: string
26+
group: cascading.experimental.securecodebox.io
27+
names:
28+
kind: CascadingRule
29+
listKind: CascadingRuleList
30+
plural: cascadingrules
31+
singular: cascadingrule
32+
scope: Namespaced
33+
subresources: {}
34+
validation:
35+
openAPIV3Schema:
36+
description: CascadingRule is the Schema for the cascadingrules API
37+
properties:
38+
apiVersion:
39+
description: 'APIVersion defines the versioned schema of this representation
40+
of an object. Servers should convert recognized schemas to the latest
41+
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
42+
type: string
43+
kind:
44+
description: 'Kind is a string value representing the REST resource this
45+
object represents. Servers may infer this from the endpoint the client
46+
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
47+
type: string
48+
metadata:
49+
type: object
50+
spec:
51+
description: CascadingRuleSpec defines the desired state of CascadingRule
52+
properties:
53+
matches:
54+
description: Matches defines to which findings the CascadingRule should
55+
apply
56+
properties:
57+
anyOf:
58+
items:
59+
description: MatchesRule is a generic map which is used to model
60+
the structure of a finding for which the CascadingRule should
61+
take effect
62+
properties:
63+
attributes:
64+
additionalProperties:
65+
anyOf:
66+
- type: integer
67+
- type: string
68+
x-kubernetes-int-or-string: true
69+
type: object
70+
category:
71+
type: string
72+
description:
73+
type: string
74+
location:
75+
type: string
76+
name:
77+
type: string
78+
osi_layer:
79+
type: string
80+
severity:
81+
type: string
82+
type: object
83+
type: array
84+
type: object
85+
scanSpec:
86+
description: ScanSpec defines how the cascaded scan should look like
87+
properties:
88+
cascades:
89+
description: A label selector is a label query over a set of resources.
90+
The result of matchLabels and matchExpressions are ANDed. An empty
91+
label selector matches all objects. A null label selector matches
92+
no objects.
93+
properties:
94+
matchExpressions:
95+
description: matchExpressions is a list of label selector requirements.
96+
The requirements are ANDed.
97+
items:
98+
description: A label selector requirement is a selector that
99+
contains values, a key, and an operator that relates the
100+
key and values.
101+
properties:
102+
key:
103+
description: key is the label key that the selector applies
104+
to.
105+
type: string
106+
operator:
107+
description: operator represents a key's relationship
108+
to a set of values. Valid operators are In, NotIn, Exists
109+
and DoesNotExist.
110+
type: string
111+
values:
112+
description: values is an array of string values. If the
113+
operator is In or NotIn, the values array must be non-empty.
114+
If the operator is Exists or DoesNotExist, the values
115+
array must be empty. This array is replaced during a
116+
strategic merge patch.
117+
items:
118+
type: string
119+
type: array
120+
required:
121+
- key
122+
- operator
123+
type: object
124+
type: array
125+
matchLabels:
126+
additionalProperties:
127+
type: string
128+
description: matchLabels is a map of {key,value} pairs. A single
129+
{key,value} in the matchLabels map is equivalent to an element
130+
of matchExpressions, whose key field is "key", the operator
131+
is "In", and the values array contains only "value". The requirements
132+
are ANDed.
133+
type: object
134+
type: object
135+
parameters:
136+
items:
137+
type: string
138+
type: array
139+
scanType:
140+
type: string
141+
type: object
142+
required:
143+
- matches
144+
- scanSpec
145+
type: object
146+
status:
147+
description: CascadingRuleStatus defines the observed state of CascadingRule
148+
type: object
149+
type: object
150+
version: v1
151+
versions:
152+
- name: v1
153+
served: true
154+
storage: true
155+
status:
156+
acceptedNames:
157+
kind: ""
158+
plural: ""
159+
conditions: []
160+
storedVersions: []

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

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,52 @@ spec:
5959
spec:
6060
description: ScanSpec defines the desired state of Scan
6161
properties:
62+
cascades:
63+
description: A label selector is a label query over a set of resources.
64+
The result of matchLabels and matchExpressions are ANDed. An empty
65+
label selector matches all objects. A null label selector matches
66+
no objects.
67+
properties:
68+
matchExpressions:
69+
description: matchExpressions is a list of label selector requirements.
70+
The requirements are ANDed.
71+
items:
72+
description: A label selector requirement is a selector that contains
73+
values, a key, and an operator that relates the key and values.
74+
properties:
75+
key:
76+
description: key is the label key that the selector applies
77+
to.
78+
type: string
79+
operator:
80+
description: operator represents a key's relationship to a
81+
set of values. Valid operators are In, NotIn, Exists and
82+
DoesNotExist.
83+
type: string
84+
values:
85+
description: values is an array of string values. If the operator
86+
is In or NotIn, the values array must be non-empty. If the
87+
operator is Exists or DoesNotExist, the values array must
88+
be empty. This array is replaced during a strategic merge
89+
patch.
90+
items:
91+
type: string
92+
type: array
93+
required:
94+
- key
95+
- operator
96+
type: object
97+
type: array
98+
matchLabels:
99+
additionalProperties:
100+
type: string
101+
description: matchLabels is a map of {key,value} pairs. A single
102+
{key,value} in the matchLabels map is equivalent to an element
103+
of matchExpressions, whose key field is "key", the operator is
104+
"In", and the values array contains only "value". The requirements
105+
are ANDed.
106+
type: object
107+
type: object
62108
parameters:
63109
items:
64110
type: string

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

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,53 @@ spec:
7474
description: Foo is an example field of ScheduledScan. Edit ScheduledScan_types.go
7575
to remove/update
7676
properties:
77+
cascades:
78+
description: A label selector is a label query over a set of resources.
79+
The result of matchLabels and matchExpressions are ANDed. An empty
80+
label selector matches all objects. A null label selector matches
81+
no objects.
82+
properties:
83+
matchExpressions:
84+
description: matchExpressions is a list of label selector requirements.
85+
The requirements are ANDed.
86+
items:
87+
description: A label selector requirement is a selector that
88+
contains values, a key, and an operator that relates the
89+
key and values.
90+
properties:
91+
key:
92+
description: key is the label key that the selector applies
93+
to.
94+
type: string
95+
operator:
96+
description: operator represents a key's relationship
97+
to a set of values. Valid operators are In, NotIn, Exists
98+
and DoesNotExist.
99+
type: string
100+
values:
101+
description: values is an array of string values. If the
102+
operator is In or NotIn, the values array must be non-empty.
103+
If the operator is Exists or DoesNotExist, the values
104+
array must be empty. This array is replaced during a
105+
strategic merge patch.
106+
items:
107+
type: string
108+
type: array
109+
required:
110+
- key
111+
- operator
112+
type: object
113+
type: array
114+
matchLabels:
115+
additionalProperties:
116+
type: string
117+
description: matchLabels is a map of {key,value} pairs. A single
118+
{key,value} in the matchLabels map is equivalent to an element
119+
of matchExpressions, whose key field is "key", the operator
120+
is "In", and the values array contains only "value". The requirements
121+
are ANDed.
122+
type: object
123+
type: object
77124
parameters:
78125
items:
79126
type: string

0 commit comments

Comments
 (0)