版本 "sources.eventing.knative.dev/v1alpha1" 中的种类 "GitHubSource" 没有匹配项
no matches for kind "GitHubSource" in version "sources.eventing.knative.dev/v1alpha1"
描述错误
嗨,我按照本指南测试了 githubsource。
-> knative/GitHubSource
但是我遇到了这个错误。
error: unable to recognize "github-source.yaml": no matches for kind "GitHubSource" in version "sources.eventing.knative.dev/v1alpha1"
重现
步骤:
- 安装 CRD
$ kubectl apply --selector knative.dev/crd-install=true \
--filename https://github.com/knative/serving/releases/download/v0.11.0/serving.yaml \
--filename https://github.com/knative/eventing/releases/download/v0.11.0/release.yaml \
--filename https://github.com/knative/serving/releases/download/v0.11.0/monitoring.yaml
- 安装资源
$ kubectl apply --filename https://github.com/knative/serving/releases/download/v0.11.0/serving.yaml \
--filename https://github.com/knative/eventing/releases/download/v0.11.0/release.yaml \
--filename https://github.com/knative/serving/releases/download/v0.11.0/monitoring.yaml
并遵循本指南 -> knative/GitHubSource
我在 "Create Event Source for GitHub Events"
中出错
Knative 发布版本
v0.11
其他上下文
根据这个 article,我可以用 kubectl get sources
列出所有现有的来源。但我找不到任何来源。
谢谢
knative/eventing issue 2376 (opened, I supposed, by the OP) includes an explanation from Vincent (houshengbo
):
Vincent 参考 Knative Eventing / Sources,了解如何安装事件源。
GitHubSource is one of them, and all the available sources are be found here.
The repo is https://github.com/knative/eventing-contrib.
However, there should be instruction on how to install the sources: Install Knative Eventing.
Those instructions also install the default eventing sources, including the GitHubSource we'll use.
I have not found any.
I guess you need to install it by
kubectl apply -f https://github.com/knative/eventing-contrib/releases/download/v0.11.0/github.yaml
for 0.11.0.
描述错误
嗨,我按照本指南测试了 githubsource。
-> knative/GitHubSource
但是我遇到了这个错误。
error: unable to recognize "github-source.yaml": no matches for kind "GitHubSource" in version "sources.eventing.knative.dev/v1alpha1"
重现
步骤:
- 安装 CRD
$ kubectl apply --selector knative.dev/crd-install=true \
--filename https://github.com/knative/serving/releases/download/v0.11.0/serving.yaml \
--filename https://github.com/knative/eventing/releases/download/v0.11.0/release.yaml \
--filename https://github.com/knative/serving/releases/download/v0.11.0/monitoring.yaml
- 安装资源
$ kubectl apply --filename https://github.com/knative/serving/releases/download/v0.11.0/serving.yaml \
--filename https://github.com/knative/eventing/releases/download/v0.11.0/release.yaml \
--filename https://github.com/knative/serving/releases/download/v0.11.0/monitoring.yaml
并遵循本指南 -> knative/GitHubSource
我在 "Create Event Source for GitHub Events"
中出错Knative 发布版本
v0.11
其他上下文
根据这个 article,我可以用 kubectl get sources
列出所有现有的来源。但我找不到任何来源。
谢谢
knative/eventing issue 2376 (opened, I supposed, by the OP) includes an explanation from Vincent (houshengbo
):
Vincent 参考 Knative Eventing / Sources,了解如何安装事件源。
GitHubSource is one of them, and all the available sources are be found here.
The repo is https://github.com/knative/eventing-contrib.However, there should be instruction on how to install the sources: Install Knative Eventing.
Those instructions also install the default eventing sources, including the GitHubSource we'll use.I have not found any.
I guess you need to install it by
kubectl apply -f https://github.com/knative/eventing-contrib/releases/download/v0.11.0/github.yaml
for 0.11.0.