Workload replica overrides do not take precedence over high-availability for broker HPAs
维护者通常 1 天内回复
评估
调研方向
从 pkg/reconciler/common/ha.go 开始,追踪 HighAvailabilityTransform 如何将工作负载副本数覆盖值与 HPA 资源匹配,然后检查 hpaTransform 中对 broker HPA 的处理。使用复现设置为 broker-ingress-hpa 添加或运行针对性测试;当其副本数为 minReplicas: 2 和 maxReplicas: 11,符合预期行为时,即为完成。
由索引模型根据 Issue 内容生成。
描述
Describe the bug
A replicas value in spec.workloads is meant to take precedence over spec.high-availability for that workload. HighAvailabilityTransform skips resources whose name equals the override name, which works for HPAs that share the workload's name (activator, webhook, eventing-webhook). The broker HPAs have different names (broker-ingress-hpa, broker-filter-hpa), so high-availability still raises them, and hpaTransform never lowers minReplicas afterwards.
Expected behavior
broker-ingress-hpa gets minReplicas: 2, maxReplicas: 11, the same as activator gets with equivalent settings.
To Reproduce
apiVersion: operator.knative.dev/v1beta1
kind: KnativeEventing
metadata:
name: knative-eventing
namespace: knative-eventing
spec:
high-availability:
replicas: 3
workloads:
- name: mt-broker-ingress
replicas: 2
broker-ingress-hpa ends up with minReplicas: 3, maxReplicas: 12.
Knative release version
main (pkg/reconciler/common/ha.go)
- 主要语言
- Go
- 星标
- 226
- 派生
- 119
- 平均合并
- 4 天 3 小时
- 30 天内合并 PR
- 9
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
knative/operator 的其他 Issue
相似的 Issue
-
type/bug
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
难度 1/5 1-3 小时 新手友好度 86/100
eugenioenko/autentico#605 ·
维护者通常 1 天内回复
-
Test failure: github.com/teramoby/speedle-plus/cmd/spctl/command TestCLITokenInputAndEnvironment未关闭test-failure
难度 2/5 1-3 小时 新手友好度 72/100
teramoby/speedle-plus#298 ·
维护者通常 1 天内回复
-
hive
难度 1/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
area/admin/user area/internationalization automated-triage issue/auto-triaged type/bug
难度 1/5 1 小时以内 新手友好度 76/100
grafana/grafana#137281 · 1 条评论 ·
维护者通常 1 天内回复