mirror of https://github.com/knative/docs.git
Update SinkBinding docs to use v1 (#2918)
This commit is contained in:
parent
7d77b253b5
commit
04fbc3fa92
|
@ -75,7 +75,7 @@ In order to direct events to our Event Display, we will first create a
|
|||
SinkBinding that will inject `$K_SINK` and `$K_CE_OVERRIDES` into select `Jobs`:
|
||||
|
||||
```yaml
|
||||
apiVersion: sources.knative.dev/v1beta1
|
||||
apiVersion: sources.knative.dev/v1
|
||||
kind: SinkBinding
|
||||
metadata:
|
||||
name: bind-heartbeat
|
||||
|
@ -192,7 +192,7 @@ together. For example, the [`cloudevents-go`
|
|||
sample](../../../serving/samples/cloudevents/cloudevents-go) may be bound with:
|
||||
|
||||
```yaml
|
||||
apiVersion: sources.knative.dev/v1beta1
|
||||
apiVersion: sources.knative.dev/v1
|
||||
kind: SinkBinding
|
||||
metadata:
|
||||
name: bind-heartbeat
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
apiVersion: sources.knative.dev/v1beta1
|
||||
apiVersion: sources.knative.dev/v1
|
||||
kind: SinkBinding
|
||||
metadata:
|
||||
name: bind-heartbeat
|
||||
|
|
|
@ -244,7 +244,7 @@ Create the `SinkBinding`:
|
|||
```bash
|
||||
cat <<EOS |kubectl apply -f -
|
||||
---
|
||||
apiVersion: sources.knative.dev/v1alpha1
|
||||
apiVersion: sources.knative.dev/v1
|
||||
kind: SinkBinding
|
||||
metadata:
|
||||
name: bind-node-heartbeat
|
||||
|
|
|
@ -5,7 +5,7 @@ weight: 31
|
|||
type: "docs"
|
||||
---
|
||||
|
||||

|
||||

|
||||
|
||||
A SinkBinding provides a framework for injecting `K_SINK` (destination address) and `K_CE_OVERRIDES` (JSON cloudevents attributes)
|
||||
environment variables into any Kubernetes resource which has a `spec.template` that looks like a Pod (aka PodSpecable).
|
||||
|
@ -101,7 +101,7 @@ SinkBinding that will inject `$K_SINK` and `$K_CE_OVERRIDES` into select `Jobs`:
|
|||
|
||||
```shell
|
||||
kubectl -n sinkbinding-example apply -f - << EOF
|
||||
apiVersion: sources.knative.dev/v1beta1
|
||||
apiVersion: sources.knative.dev/v1
|
||||
kind: SinkBinding
|
||||
metadata:
|
||||
name: bind-heartbeat
|
||||
|
@ -227,10 +227,6 @@ cluster by entering the following command:
|
|||
kubectl delete namespace sinkbinding-example
|
||||
```
|
||||
|
||||
## Reference Documentation
|
||||
|
||||
See the [SinkBinding specification](../../reference/eventing/#sources.knative.dev/v1beta1.SinkBinding).
|
||||
|
||||
## Contact
|
||||
|
||||
For any inquiries about this source, please reach out on to the
|
||||
|
|
Loading…
Reference in New Issue