You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/eventing/sources/apiserversource/reference.md
+30Lines changed: 30 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,7 @@ An ApiServerSource definition supports the following fields:
15
15
|[`apiVersion`][kubernetes-overview]| Specifies the API version, for example `sources.knative.dev/v1`. | Required |
16
16
|[`kind`][kubernetes-overview]| Identifies this resource object as an ApiServerSource object. | Required |
17
17
|[`metadata`][kubernetes-overview]| Specifies metadata that uniquely identifies the ApiServerSource object. For example, a `name`. | Required |
18
+
|[`metadata.annotations`][#features]| Specifies metadata that enables certain features. See the related section. | Optional |
18
19
|[`spec`][kubernetes-overview]| Specifies the configuration information for this ApiServerSource object. | Required |
19
20
|[`spec.resources`](#resources-parameter)| The resources that the source tracks so it can send related lifecycle events from the Kubernetes ApiServer. Includes an optional label selector to help filter. | Required |
20
21
|`spec.mode`| EventMode controls the format of the event. Set to `Reference` to send a `dataref` event type for the resource being watched. Only a reference to the resource is included in the event payload. Set to `Resource` to have the full resource lifecycle event in the payload. Defaults to `Reference`. | Optional |
@@ -315,6 +316,35 @@ spec:
315
316
{ "extensions": { "extra": "this is an extra attribute", "additional": "42" } }
316
317
```
317
318
319
+
### Features
320
+
321
+
The ApiServerSource uses annotations to the enable certain features.
322
+
323
+
#### Skipping Permissions Check
324
+
325
+
This feature disables the RBAC permissions check done before creating
326
+
the Deployment. By default three SubjectAccessReview requests are
327
+
created per combination of resource and namespace tracked.
328
+
329
+
When enabled, this feature removes the creation of SubjectAccessReview,
330
+
reducing the pressure to the Kubernetes API when a large number of
331
+
resources or namespaces are tracked by the ApiServerSource. In this
332
+
case the ApiServerSource Deployment does not retry watch connections.
0 commit comments