H,我正在尝试使用此链接https://toolkit.fluxcd.io/guides/webhook-receivers/中提到的通量为 GitHub 启用 webbook 。GitHub 推送事件失败,得到 400 错误码。这是在 gcp 集群上。任何调试这个的指针都有很大的帮助。
在集群上,我交叉检查了控制器都已启动并正在运行
-普拉桑特
H,我正在尝试使用此链接https://toolkit.fluxcd.io/guides/webhook-receivers/中提到的通量为 GitHub 启用 webbook 。GitHub 推送事件失败,得到 400 错误码。这是在 gcp 集群上。任何调试这个的指针都有很大的帮助。
在集群上,我交叉检查了控制器都已启动并正在运行
-普拉桑特
看起来像是 GitRepository 名称中某些设置的问题。现在我在发送 Push 事件时看到以下错误
{"level":"info","ts":"2021-02-22T05:56:23.346Z","logger":"receiver-server","msg":"handling request","digest":"cfc7a9a5cd337d1c0f58d5d790eb1f988c3c91ed1201a1b692cf8b479abc62a2"}
{"level":"info","ts":"2021-02-22T05:56:23.347Z","logger":"receiver-server","msg":"handling GitHub event: push","receiver":"github-receiver"}
{"level":"info","ts":"2021-02-22T05:56:23.347Z","logger":"receiver-server","msg":"found matching receiver","receiver":"github-receiver"}
{"level":"info","ts":"2021-02-22T05:56:23.354Z","logger":"receiver-server","msg":"resource annotated","receiver":"github-receiver","resource":"gitrepoinfo"}
{"level":"info","ts":"2021-02-22T05:56:23.580Z","logger":"event-server","msg":"Discarding event, no alerts found for the involved object","object":"flux-system/gitrepoinfo","kind":"GitRepository"}
{"level":"info","ts":"2021-02-22T05:56:24.321Z","logger":"event-server","msg":"Discarding event, no alerts found for the involved object","object":"flux-system/podinfo","kind":"Kustomization"}
我添加了 Alert 和 Provider 配置,然后查看错误。即使事件被推送,flux 也没有从 repo 中获取变化。任何指针都会有很大帮助。
-普拉桑特