Update SinkBinding docs to use v1 (#2918)

This commit is contained in:
capri-xiyue 2020-10-12 11:55:17 -07:00 committed by GitHub
parent 7d77b253b5
commit 04fbc3fa92
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 10 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -5,7 +5,7 @@ weight: 31
type: "docs"
---
![version](https://img.shields.io/badge/API_Version-v1beta1-red?style=flat-square)
![version](https://img.shields.io/badge/API_Version-v1-red?style=flat-square)
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