AliyunContainerService / kube-eventer

kube-eventer emit kubernetes events to sinks
Apache License 2.0
1.01k stars 278 forks source link

webhook调用成功的状态码支持2XX #128

Closed 397334469 closed 2 years ago

397334469 commented 4 years ago
if resp != nil && resp.StatusCode != http.StatusOK {
    klog.Errorf("failed to send msg to sink, because the response code is %d", resp.StatusCode)
    return
}

E0630 19:57:00.262987 1 webhook.go:98] failed to send msg to sink, because the response code is 202 W0630 19:57:00.263067 1 webhook.go:56] Failed to send event to WebHook sink,because of failed to send msg to sink, because the response code is 202

ringtail commented 4 years ago

@397334469 是哪个Sink,麻烦贴一下

397334469 commented 4 years ago

@ringtail webhook

ringtail commented 2 years ago

哪个系统的webHook是非200