Remove tag consideration from Fluentd ClusterFilter / Filter order
维护者通常 2 天内回复
评估
调研方向
从 apis/fluentd/v1alpha1/plugins/params/model.go 中的 PluginStoreByNameById.Less 开始。阅读当前的名称、标签和 ID 比较,然后评估不考虑标签时所要求的排序。当排序遵循过滤器名称和 ID 时即表示完成,包括 ** 出现在过滤器之间的情况。
由索引模型根据 Issue 内容生成。
描述
Is your feature request related to a problem? Please describe.
The filter order logic in fluentd ever since https://github.com/fluent/fluent-operator/pull/1106 can be seen here.
Specifically in:
func (a PluginStoreByNameById) Less(i, j int) bool {
if a[i].Name == a[j].Name {
if a[i].GetTag() == "**" && a[j].GetTag() != "**" {
return false
}
if a[i].GetTag() != "**" && a[j].GetTag() == "**" {
return true
}
return a[i].GetId() < a[j].GetId()
} else {
return a[i].Name < a[j].Name
}
}
From reading the code, it seems filters with tag ** will be order last no matter the id (which matches my experience).
My argument is that the current ordering is problematic and unintuitive.
Describe the solution you'd like
The more initiative ordering, is to consider the filter k8s name, and then if a ClusterFilter / Filter contains a list of several filters, it should add them in order.
This seems to already happen inside return a[i].GetId() < a[j].GetId(), so the only thing left is to remove the GetTag section.
I understand that this is a breaking change, but the current ordering prevent having ** in as a middle filter, which is useful.
I think this should either be a breaking change in version v4, or add a parameter for the deployment to disable tag ordering.
Workaround
Using customPlugin with some placeholder tag, and then setting the filter to ** in the config section.
Additional context
No response
- 主要语言
- Go
- 星标
- 689
- 派生
- 333
- 平均合并
- 2 天 14 小时
- 30 天内合并 PR
- 41
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
fluent/fluent-operator 的其他 Issue
-
feat: support storage.total_limit_size for the fluent-bit forward output可能已有人在做 @cvas22 于 1 天前认领。 未关闭
难度 1/5 1-3 小时 新手友好度 30/100
fluent/fluent-operator#2126 ·
维护者通常 2 天内回复
-
bug: fluent-bit image still ships vulnerable libbrotli1 (CVE-2026-111497)可能已有人在做 @joshuabaird 于 9 天前认领。 未关闭fluent-bit security
难度 2/5 1-3 小时 新手友好度 55/100
fluent/fluent-operator#2082 · 2 条评论 ·
维护者通常 2 天内回复
-
难度 4/5 3-5 天 新手友好度 48/100
fluent/fluent-operator#1990 · 6 条评论 ·
维护者通常 2 天内回复
-
enhancement fluent-bit good first issue
难度 4/5 3-5 天 新手友好度 35/100
fluent/fluent-operator#1854 · 2 条评论 · 1 个 reaction ·
维护者通常 2 天内回复
-
难度 4/5 3-5 天 新手友好度 30/100
fluent/fluent-operator#1831 ·
维护者通常 2 天内回复
查看 fluent/fluent-operator 的全部 Issue
相似的 Issue
-
area/docs
难度 1/5 1 小时以内 新手友好度 86/100
meshery/meshery#23375 · 1 条评论 ·
维护者通常 1 天内回复
-
ApplicationSet: BitBucket Cloud SCM provider returns corrupted error (%!w(<nil>)) when a branch has no commit hash可能已有人在做 @AP24110011695 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
go good first issue help wanted up-for-grabs
难度 2/5 1-3 小时 新手友好度 85/100
andrewsiah/agentswarm-data-tasks#308 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 87/100
multica-ai/multica#10511 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 70/100
维护者通常 1 天内回复