【问题标题】:no matches for kind "GitHubSource" in version "sources.eventing.knative.dev/v1alpha1"版本“sources.eventing.knative.dev/v1alpha1”中没有类型“GitHubSource”的匹配项
【发布时间】:2020-01-14 14:31:49
【问题描述】:

描述错误
嗨,我按照这个指南测试了 githubsource。 ->knative/GitHubSource

但是我收到了这个错误。

error: unable to recognize "github-source.yaml": no matches for kind "GitHubSource" in version "sources.eventing.knative.dev/v1alpha1"

复制
步骤:

  1. 安装 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
  1. 安装资源
$ 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

“为 GitHub 事件创建事件源”中出现错误

Knative 发布版本
v0.11

附加上下文 根据这个article,我可以用kubectl get sources 列出所有现有的源。但我找不到任何来源。

谢谢

【问题讨论】:

    标签: github knative


    【解决方案1】:

    knative/eventing issue 2376(我猜是由 OP 打开的)包含来自文森特 (houshengbo) 的解释:

    Vincent 参考Knative Eventing / Sources,了解如何安装事件源。

    GitHubSource 就是其中之一,所有的available sources are be found here.
    回购是https://github.com/knative/eventing-contrib

    但是,应该有关于如何安装源代码的说明:Install Knative Eventing
    这些说明还安装了默认事件源,包括我们将使用的 GitHubSource。

    我没有找到。

    我猜你需要安装它

    kubectl apply -f https://github.com/knative/eventing-contrib/releases/download/v0.11.0/github.yaml
    

    适用于 0.11.0。

    【讨论】:

      猜你喜欢
      • 2021-12-21
      • 2019-08-11
      • 2019-12-17
      • 2021-06-27
      • 1970-01-01
      • 2020-03-04
      • 2021-11-21
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多