Skip to content

Commit 57f33d3

Browse files
lberkabrennan89
andauthored
Add documentation to sinkbinding modes (#3101)
Update docs/eventing/sources/sinkbinding.md As suggested Co-authored-by: Ashleigh Brennan <[email protected]> Co-authored-by: Ashleigh Brennan <[email protected]>
1 parent 073e9a5 commit 57f33d3

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docs/eventing/sources/sinkbinding.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@ For example, `Deployment`, `Job`, `DaemonSet`, or `StatefulSet` objects, or Knat
1818

1919
Sink binding injects environment variables into the `PodTemplateSpec` of the event sink, so that the application code does not need to interact directly with the Kubernetes API to locate the event destination.
2020

21+
Sink binding operates in one of two modes; `Inclusion` or `Exclusion`.
22+
You can set the mode by modifying the `SINK_BINDING_SELECTION_MODE` of the `eventing-webhook` deployment accordingly. The mode determines the default scope of the webhook.
23+
24+
By default, the webhook is set to `exclusion` mode, which means that any namespace that does not have the label `bindings.knative.dev/exclude: true` will be subject to mutation evalutation.
25+
26+
If `SINK_BINDING_SELECTION_MODE` is set to `inclusion`, only the resources in a namespace labelled with `bindings.knative.dev/include: true` will be considered. In `inclusion` mode, any SinkBinding resource created will automatically label the `subject` namespace with `bindings.knative.dev/include: true` for inclusion in the potential environment variable inclusions.
27+
2128
## Getting started
2229

2330
The following procedures show how you can create a sink binding and connect it to a service and event source in your cluster.

0 commit comments

Comments
 (0)