Skip to content

Commit c9c599a

Browse files
Commit from GitHub Actions (Scheduled Jobs)
1 parent 70621b3 commit c9c599a

6 files changed

Lines changed: 387 additions & 198 deletions

File tree

definitions/kubescape.io/runtimerulealertbinding.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ spec:
1010
shortNames:
1111
- rab
1212
singular: runtimerulealertbinding
13-
scope: Namespaced
13+
scope: Cluster
1414
versions:
1515
- name: v1
1616
served: true
@@ -96,6 +96,4 @@ spec:
9696
type: string
9797
severity:
9898
type: string
99-
subresources:
100-
status: {}
10199

definitions/monitoring.grafana.com/podlogs.yaml

Lines changed: 92 additions & 195 deletions
Original file line numberDiff line numberDiff line change
@@ -10,230 +10,92 @@ spec:
1010
group: monitoring.grafana.com
1111
names:
1212
categories:
13-
- agent-operator
13+
- grafana-alloy
14+
- alloy
1415
kind: PodLogs
1516
listKind: PodLogsList
1617
plural: podlogs
1718
singular: podlogs
1819
scope: Namespaced
1920
versions:
20-
- name: v1alpha1
21+
- name: v1alpha2
2122
schema:
2223
openAPIV3Schema:
24+
description: PodLogs defines how to collect logs for a Pod.
2325
properties:
2426
apiVersion:
27+
description: 'APIVersion defines the versioned schema of this representation
28+
of an object. Servers should convert recognized schemas to the latest
29+
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
2530
type: string
2631
kind:
32+
description: 'Kind is a string value representing the REST resource this
33+
object represents. Servers may infer this from the endpoint the client
34+
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
2735
type: string
2836
metadata:
2937
type: object
3038
spec:
39+
description: PodLogsSpec defines how to collect logs for a Pod.
3140
properties:
32-
jobLabel:
33-
type: string
3441
namespaceSelector:
42+
description: Selector to select which namespaces the Pod objects are
43+
discovered from.
3544
properties:
36-
any:
37-
type: boolean
38-
matchNames:
45+
matchExpressions:
46+
description: matchExpressions is a list of label selector requirements.
47+
The requirements are ANDed.
3948
items:
40-
type: string
41-
type: array
42-
type: object
43-
pipelineStages:
44-
items:
45-
properties:
46-
cri:
47-
type: object
48-
docker:
49-
type: object
50-
drop:
51-
properties:
52-
dropCounterReason:
53-
type: string
54-
expression:
55-
type: string
56-
longerThan:
57-
type: string
58-
olderThan:
59-
type: string
60-
source:
61-
type: string
62-
value:
63-
type: string
64-
type: object
65-
json:
66-
properties:
67-
expressions:
68-
additionalProperties:
69-
type: string
70-
type: object
71-
source:
72-
type: string
73-
type: object
74-
labelAllow:
75-
items:
76-
type: string
77-
type: array
78-
labelDrop:
79-
items:
80-
type: string
81-
type: array
82-
labels:
83-
additionalProperties:
84-
type: string
85-
type: object
86-
limit:
87-
properties:
88-
burst:
89-
type: integer
90-
drop:
91-
type: boolean
92-
rate:
93-
type: integer
94-
type: object
95-
match:
96-
properties:
97-
action:
98-
type: string
99-
dropCounterReason:
100-
type: string
101-
pipelineName:
102-
type: string
103-
selector:
104-
type: string
105-
stages:
106-
type: string
107-
required:
108-
- selector
109-
type: object
110-
metrics:
111-
additionalProperties:
112-
properties:
113-
action:
114-
type: string
115-
buckets:
116-
items:
117-
type: string
118-
type: array
119-
countEntryBytes:
120-
type: boolean
121-
description:
122-
type: string
123-
matchAll:
124-
type: boolean
125-
maxIdleDuration:
126-
type: string
127-
prefix:
128-
type: string
129-
source:
130-
type: string
131-
type:
132-
type: string
133-
value:
134-
type: string
135-
required:
136-
- action
137-
- type
138-
type: object
139-
type: object
140-
multiline:
141-
properties:
142-
firstLine:
143-
type: string
144-
maxLines:
145-
type: integer
146-
maxWaitTime:
147-
type: string
148-
required:
149-
- firstLine
150-
type: object
151-
output:
49+
description: A label selector requirement is a selector that
50+
contains values, a key, and an operator that relates the key
51+
and values.
15252
properties:
153-
source:
154-
type: string
155-
required:
156-
- source
157-
type: object
158-
pack:
159-
properties:
160-
ingestTimestamp:
161-
type: boolean
162-
labels:
163-
items:
164-
type: string
165-
type: array
166-
required:
167-
- labels
168-
type: object
169-
regex:
170-
properties:
171-
expression:
172-
type: string
173-
source:
174-
type: string
175-
required:
176-
- expression
177-
type: object
178-
replace:
179-
properties:
180-
expression:
181-
type: string
182-
replace:
183-
type: string
184-
source:
185-
type: string
186-
required:
187-
- expression
188-
type: object
189-
template:
190-
properties:
191-
source:
192-
type: string
193-
template:
194-
type: string
195-
required:
196-
- source
197-
- template
198-
type: object
199-
tenant:
200-
properties:
201-
label:
202-
type: string
203-
source:
204-
type: string
205-
value:
53+
key:
54+
description: key is the label key that the selector applies
55+
to.
20656
type: string
207-
type: object
208-
timestamp:
209-
properties:
210-
actionOnFailure:
57+
operator:
58+
description: operator represents a key's relationship to
59+
a set of values. Valid operators are In, NotIn, Exists
60+
and DoesNotExist.
21161
type: string
212-
fallbackFormats:
62+
values:
63+
description: values is an array of string values. If the
64+
operator is In or NotIn, the values array must be non-empty.
65+
If the operator is Exists or DoesNotExist, the values
66+
array must be empty. This array is replaced during a strategic
67+
merge patch.
21368
items:
21469
type: string
21570
type: array
216-
format:
217-
type: string
218-
location:
219-
type: string
220-
source:
221-
type: string
22271
required:
223-
- format
224-
- source
72+
- key
73+
- operator
22574
type: object
226-
type: object
227-
type: array
228-
podTargetLabels:
229-
items:
230-
type: string
231-
type: array
75+
type: array
76+
matchLabels:
77+
additionalProperties:
78+
type: string
79+
description: matchLabels is a map of {key,value} pairs. A single
80+
{key,value} in the matchLabels map is equivalent to an element
81+
of matchExpressions, whose key field is "key", the operator
82+
is "In", and the values array contains only "value". The requirements
83+
are ANDed.
84+
type: object
85+
type: object
86+
x-kubernetes-map-type: atomic
23287
relabelings:
88+
description: RelabelConfigs to apply to logs before delivering.
23389
items:
90+
description: 'RelabelConfig allows dynamic rewriting of the label
91+
set, being applied to samples before ingestion. It defines `<metric_relabel_configs>`-section
92+
of Prometheus configuration. More info: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#metric_relabel_configs'
23493
properties:
23594
action:
23695
default: replace
96+
description: Action to perform based on regex matching. Default
97+
is 'replace'. uppercase and lowercase actions require Prometheus
98+
>= 2.36.
23799
enum:
238100
- replace
239101
- Replace
@@ -253,39 +115,69 @@ spec:
253115
- Lowercase
254116
- uppercase
255117
- Uppercase
256-
- keepequal
257-
- KeepEqual
258-
- dropequal
259-
- DropEqual
260118
type: string
261119
modulus:
120+
description: Modulus to take of the hash of the source label
121+
values.
262122
format: int64
263123
type: integer
264124
regex:
125+
description: Regular expression against which the extracted
126+
value is matched. Default is '(.*)'
265127
type: string
266128
replacement:
129+
description: Replacement value against which a regex replace
130+
is performed if the regular expression matches. Regex capture
131+
groups are available. Default is '$1'
267132
type: string
268133
separator:
134+
description: Separator placed between concatenated source label
135+
values. default is ';'.
269136
type: string
270137
sourceLabels:
138+
description: The source labels select values from existing labels.
139+
Their content is concatenated using the configured separator
140+
and matched against the configured regular expression for
141+
the replace, keep, and drop actions.
271142
items:
143+
description: LabelName is a valid Prometheus label name which
144+
may only contain ASCII letters, numbers, as well as underscores.
272145
pattern: ^[a-zA-Z_][a-zA-Z0-9_]*$
273146
type: string
274147
type: array
275148
targetLabel:
149+
description: Label to which the resulting value is written in
150+
a replace action. It is mandatory for replace actions. Regex
151+
capture groups are available.
276152
type: string
277153
type: object
278154
type: array
279155
selector:
156+
description: Selector to select Pod objects. Required.
280157
properties:
281158
matchExpressions:
159+
description: matchExpressions is a list of label selector requirements.
160+
The requirements are ANDed.
282161
items:
162+
description: A label selector requirement is a selector that
163+
contains values, a key, and an operator that relates the key
164+
and values.
283165
properties:
284166
key:
167+
description: key is the label key that the selector applies
168+
to.
285169
type: string
286170
operator:
171+
description: operator represents a key's relationship to
172+
a set of values. Valid operators are In, NotIn, Exists
173+
and DoesNotExist.
287174
type: string
288175
values:
176+
description: values is an array of string values. If the
177+
operator is In or NotIn, the values array must be non-empty.
178+
If the operator is Exists or DoesNotExist, the values
179+
array must be empty. This array is replaced during a strategic
180+
merge patch.
289181
items:
290182
type: string
291183
type: array
@@ -297,6 +189,11 @@ spec:
297189
matchLabels:
298190
additionalProperties:
299191
type: string
192+
description: matchLabels is a map of {key,value} pairs. A single
193+
{key,value} in the matchLabels map is equivalent to an element
194+
of matchExpressions, whose key field is "key", the operator
195+
is "In", and the values array contains only "value". The requirements
196+
are ANDed.
300197
type: object
301198
type: object
302199
x-kubernetes-map-type: atomic

0 commit comments

Comments
 (0)