...
1apiVersion: apiextensions.k8s.io/v1
2kind: CustomResourceDefinition
3metadata:
4 annotations:
5 cnrm.cloud.google.com/version: 0.0.0-dev
6 creationTimestamp: null
7 labels:
8 cnrm.cloud.google.com/dcl2crd: "true"
9 cnrm.cloud.google.com/managed-by-kcc: "true"
10 cnrm.cloud.google.com/stability-level: stable
11 cnrm.cloud.google.com/system: "true"
12 name: eventarctriggers.eventarc.cnrm.cloud.google.com
13spec:
14 group: eventarc.cnrm.cloud.google.com
15 names:
16 categories:
17 - gcp
18 kind: EventarcTrigger
19 plural: eventarctriggers
20 shortNames:
21 - gcpeventarctrigger
22 - gcpeventarctriggers
23 singular: eventarctrigger
24 preserveUnknownFields: false
25 scope: Namespaced
26 versions:
27 - additionalPrinterColumns:
28 - jsonPath: .metadata.creationTimestamp
29 name: Age
30 type: date
31 - description: When 'True', the most recent reconcile of the resource succeeded
32 jsonPath: .status.conditions[?(@.type=='Ready')].status
33 name: Ready
34 type: string
35 - description: The reason for the value in 'Ready'
36 jsonPath: .status.conditions[?(@.type=='Ready')].reason
37 name: Status
38 type: string
39 - description: The last transition time for the value in 'Status'
40 jsonPath: .status.conditions[?(@.type=='Ready')].lastTransitionTime
41 name: Status Age
42 type: date
43 name: v1beta1
44 schema:
45 openAPIV3Schema:
46 properties:
47 apiVersion:
48 description: 'apiVersion defines the versioned schema of this representation
49 of an object. Servers should convert recognized schemas to the latest
50 internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources'
51 type: string
52 kind:
53 description: 'kind is a string value representing the REST resource this
54 object represents. Servers may infer this from the endpoint the client
55 submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds'
56 type: string
57 metadata:
58 type: object
59 spec:
60 properties:
61 channelRef:
62 description: Immutable.
63 oneOf:
64 - not:
65 required:
66 - external
67 required:
68 - name
69 - not:
70 anyOf:
71 - required:
72 - name
73 - required:
74 - namespace
75 required:
76 - external
77 properties:
78 external:
79 description: Optional. The name of the channel associated with
80 the trigger in `projects/{project}/locations/{location}/channels/{channel}`
81 format. You must provide a channel to receive events from Eventarc
82 SaaS partners.
83 type: string
84 name:
85 description: |-
86 [WARNING] EventarcChannel not yet supported in Config Connector, use 'external' field to reference existing resources.
87 Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
88 type: string
89 namespace:
90 description: 'Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/'
91 type: string
92 type: object
93 destination:
94 description: Required. Destination specifies where the events should
95 be sent to.
96 properties:
97 cloudFunctionRef:
98 oneOf:
99 - not:
100 required:
101 - external
102 required:
103 - name
104 - not:
105 anyOf:
106 - required:
107 - name
108 - required:
109 - namespace
110 required:
111 - external
112 properties:
113 external:
114 description: |-
115 [WARNING] Configuring a Cloud Function in Trigger is not supported as of today. The Cloud Function resource name. Format: projects/{project}/locations/{location}/functions/{function}
116
117 Allowed value: The Google Cloud resource name of a `CloudFunctionsFunction` resource (format: `projects/{{project}}/locations/{{region}}/functions/{{name}}`).
118 type: string
119 name:
120 description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names'
121 type: string
122 namespace:
123 description: 'Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/'
124 type: string
125 type: object
126 cloudRunService:
127 description: Cloud Run fully-managed service that receives the
128 events. The service should be running in the same project of
129 the trigger.
130 properties:
131 path:
132 description: 'Optional. The relative path on the Cloud Run
133 service the events should be sent to. The value must conform
134 to the definition of URI path segment (section 3.3 of RFC2396).
135 Examples: "/route", "route", "route/subroute".'
136 type: string
137 region:
138 description: Required. The region the Cloud Run service is
139 deployed in.
140 type: string
141 serviceRef:
142 oneOf:
143 - not:
144 required:
145 - external
146 required:
147 - name
148 - not:
149 anyOf:
150 - required:
151 - name
152 - required:
153 - namespace
154 required:
155 - external
156 properties:
157 external:
158 description: |-
159 Required. The name of the Cloud Run service being addressed. See https://cloud.google.com/run/docs/reference/rest/v1/namespaces.services. Only services located in the same project of the trigger object can be addressed.
160
161 Allowed value: The Google Cloud resource name of a `RunService` resource (format: `projects/{{project}}/locations/{{location}}/services/{{name}}`).
162 type: string
163 name:
164 description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names'
165 type: string
166 namespace:
167 description: 'Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/'
168 type: string
169 type: object
170 required:
171 - region
172 - serviceRef
173 type: object
174 gke:
175 description: A GKE service capable of receiving events. The service
176 should be running in the same project as the trigger.
177 properties:
178 clusterRef:
179 oneOf:
180 - not:
181 required:
182 - external
183 required:
184 - name
185 - not:
186 anyOf:
187 - required:
188 - name
189 - required:
190 - namespace
191 required:
192 - external
193 properties:
194 external:
195 description: |-
196 Required. The name of the cluster the GKE service is running in. The cluster must be running in the same project as the trigger being created.
197
198 Allowed value: The `selfLink` field of a `ContainerCluster` resource.
199 type: string
200 name:
201 description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names'
202 type: string
203 namespace:
204 description: 'Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/'
205 type: string
206 type: object
207 location:
208 description: Required. The name of the Google Compute Engine
209 in which the cluster resides, which can either be compute
210 zone (for example, us-central1-a) for the zonal clusters
211 or region (for example, us-central1) for regional clusters.
212 type: string
213 namespace:
214 description: Required. The namespace the GKE service is running
215 in.
216 type: string
217 path:
218 description: 'Optional. The relative path on the GKE service
219 the events should be sent to. The value must conform to
220 the definition of a URI path segment (section 3.3 of RFC2396).
221 Examples: "/route", "route", "route/subroute".'
222 type: string
223 service:
224 description: Required. Name of the GKE service.
225 type: string
226 required:
227 - clusterRef
228 - location
229 - namespace
230 - service
231 type: object
232 workflowRef:
233 oneOf:
234 - not:
235 required:
236 - external
237 required:
238 - name
239 - not:
240 anyOf:
241 - required:
242 - name
243 - required:
244 - namespace
245 required:
246 - external
247 properties:
248 external:
249 description: 'The resource name of the Workflow whose Executions
250 are triggered by the events. The Workflow resource should
251 be deployed in the same project as the trigger. Format:
252 `projects/{project}/locations/{location}/workflows/{workflow}`'
253 type: string
254 name:
255 description: |-
256 [WARNING] WorkflowsWorkflow not yet supported in Config Connector, use 'external' field to reference existing resources.
257 Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
258 type: string
259 namespace:
260 description: 'Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/'
261 type: string
262 type: object
263 type: object
264 location:
265 description: Immutable. The location for the resource
266 type: string
267 matchingCriteria:
268 description: Required. null The list of filters that applies to event
269 attributes. Only events that match all the provided filters will
270 be sent to the destination.
271 items:
272 properties:
273 attribute:
274 description: Required. The name of a CloudEvents attribute.
275 Currently, only a subset of attributes are supported for filtering.
276 All triggers MUST provide a filter for the 'type' attribute.
277 type: string
278 operator:
279 description: Optional. The operator used for matching the events
280 with the value of the filter. If not specified, only events
281 that have an exact key-value pair specified in the filter
282 are matched. The only allowed value is `match-path-pattern`.
283 type: string
284 value:
285 description: Required. The value for the attribute. See https://cloud.google.com/eventarc/docs/creating-triggers#trigger-gcloud
286 for available values.
287 type: string
288 required:
289 - attribute
290 - value
291 type: object
292 type: array
293 projectRef:
294 description: Immutable. The Project that this resource belongs to.
295 oneOf:
296 - not:
297 required:
298 - external
299 required:
300 - name
301 - not:
302 anyOf:
303 - required:
304 - name
305 - required:
306 - namespace
307 required:
308 - external
309 properties:
310 external:
311 description: |-
312 The project for the resource
313
314 Allowed value: The Google Cloud resource name of a `Project` resource (format: `projects/{{name}}`).
315 type: string
316 name:
317 description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names'
318 type: string
319 namespace:
320 description: 'Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/'
321 type: string
322 type: object
323 resourceID:
324 description: Immutable. Optional. The name of the resource. Used for
325 creation and acquisition. When unset, the value of `metadata.name`
326 is used as the default.
327 type: string
328 serviceAccountRef:
329 oneOf:
330 - not:
331 required:
332 - external
333 required:
334 - name
335 - not:
336 anyOf:
337 - required:
338 - name
339 - required:
340 - namespace
341 required:
342 - external
343 properties:
344 external:
345 description: |-
346 Optional. The IAM service account email associated with the trigger. The service account represents the identity of the trigger. The principal who calls this API must have `iam.serviceAccounts.actAs` permission in the service account. See https://cloud.google.com/iam/docs/understanding-service-accounts#sa_common for more information. For Cloud Run destinations, this service account is used to generate identity tokens when invoking the service. See https://cloud.google.com/run/docs/triggering/pubsub-push#create-service-account for information on how to invoke authenticated Cloud Run services. In order to create Audit Log triggers, the service account should also have `roles/eventarc.eventReceiver` IAM role.
347
348 Allowed value: The `email` field of an `IAMServiceAccount` resource.
349 type: string
350 name:
351 description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names'
352 type: string
353 namespace:
354 description: 'Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/'
355 type: string
356 type: object
357 transport:
358 description: Immutable. Optional. In order to deliver messages, Eventarc
359 may use other GCP products as transport intermediary. This field
360 contains a reference to that transport intermediary. This information
361 can be used for debugging purposes.
362 properties:
363 pubsub:
364 description: Immutable. The Pub/Sub topic and subscription used
365 by Eventarc as delivery intermediary.
366 properties:
367 topicRef:
368 description: Immutable.
369 oneOf:
370 - not:
371 required:
372 - external
373 required:
374 - name
375 - not:
376 anyOf:
377 - required:
378 - name
379 - required:
380 - namespace
381 required:
382 - external
383 properties:
384 external:
385 description: |-
386 Optional. The name of the Pub/Sub topic created and managed by Eventarc system as a transport for the event delivery. Format: `projects/{PROJECT_ID}/topics/{TOPIC_NAME}. You may set an existing topic for triggers of the type google.cloud.pubsub.topic.v1.messagePublished` only. The topic you provide here will not be deleted by Eventarc at trigger deletion.
387
388 Allowed value: The Google Cloud resource name of a `PubSubTopic` resource (format: `projects/{{project}}/topics/{{name}}`).
389 type: string
390 name:
391 description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names'
392 type: string
393 namespace:
394 description: 'Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/'
395 type: string
396 type: object
397 type: object
398 type: object
399 required:
400 - destination
401 - location
402 - matchingCriteria
403 - projectRef
404 type: object
405 status:
406 properties:
407 conditions:
408 description: Conditions represent the latest available observation
409 of the resource's current state.
410 items:
411 properties:
412 lastTransitionTime:
413 description: Last time the condition transitioned from one status
414 to another.
415 type: string
416 message:
417 description: Human-readable message indicating details about
418 last transition.
419 type: string
420 reason:
421 description: Unique, one-word, CamelCase reason for the condition's
422 last transition.
423 type: string
424 status:
425 description: Status is the status of the condition. Can be True,
426 False, Unknown.
427 type: string
428 type:
429 description: Type is the type of the condition.
430 type: string
431 type: object
432 type: array
433 createTime:
434 description: Output only. The creation time.
435 format: date-time
436 type: string
437 etag:
438 description: Output only. This checksum is computed by the server
439 based on the value of other fields, and may be sent only on create
440 requests to ensure the client has an up-to-date value before proceeding.
441 type: string
442 observedGeneration:
443 description: ObservedGeneration is the generation of the resource
444 that was most recently observed by the Config Connector controller.
445 If this is equal to metadata.generation, then that means that the
446 current reported status reflects the most recent desired state of
447 the resource.
448 type: integer
449 resourceConditions:
450 additionalProperties:
451 type: string
452 description: Output only. The reason(s) why a trigger is in FAILED
453 state.
454 type: object
455 transport:
456 properties:
457 pubsub:
458 properties:
459 subscription:
460 description: 'Output only. The name of the Pub/Sub subscription
461 created and managed by Eventarc system as a transport for
462 the event delivery. Format: `projects/{PROJECT_ID}/subscriptions/{SUBSCRIPTION_NAME}`.'
463 type: string
464 type: object
465 type: object
466 uid:
467 description: Output only. Server assigned unique identifier for the
468 trigger. The value is a UUID4 string and guaranteed to remain unchanged
469 until the resource is deleted.
470 type: string
471 updateTime:
472 description: Output only. The last-modified time.
473 format: date-time
474 type: string
475 type: object
476 required:
477 - spec
478 type: object
479 served: true
480 storage: true
481 subresources:
482 status: {}
483status:
484 acceptedNames:
485 kind: ""
486 plural: ""
487 conditions: []
488 storedVersions: []
View as plain text