Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

webhook正则匹配 #252

Open
xuzheng0017 opened this issue Dec 2, 2022 · 0 comments
Open

webhook正则匹配 #252

xuzheng0017 opened this issue Dec 2, 2022 · 0 comments

Comments

@xuzheng0017
Copy link

xuzheng0017 commented Dec 2, 2022

看最近有更新,所以用master分支重新打的镜像

需求:过滤Reason不是Unhealthy和FailedMount类型的事件

表达式:
--sink=xxxx&reason=^(?!Unhealthy|FailedMount)

日志:
generic_filter.go:51] Failed to match pattern ^(?!Unhealthy|FailedMount) with FailedPullImage,because of error parsing regexp: invalid or unsupported Perl syntax: (?!``

查了下,golang的regexp不支持这种零宽断言写法,需要使用regexp2。不晓得会不会加入计划

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant