Replace `k8s.io/client-go/scale` with controller-runtime client
#4,013 创建于 2022年12月14日
仓库指标
- 星标
- (10,372 个星标)
- PR 合并指标
- (平均合并 8天 8小时) (30 天内合并 94 个 PR)
描述
Proposal
controller-runtime client will soon support accessing /scale subresource:
https://github.com/kubernetes-sigs/controller-runtime/pull/2094
https://github.com/kubernetes-sigs/controller-runtime/issues/172
Once a version of controller-runtime with this change is released we should use it and consolidate our codebase ->
replace k8s.io/client-go/scale with controller-runtime client.
It is in the ScaledObject controller and scale executor: https://github.com/kedacore/keda/blob/f4bee67f5a444338b7c2b93c7b762a27c348867b/controllers/keda/scaledobject_controller.go#L67 https://github.com/kedacore/keda/blob/f4bee67f5a444338b7c2b93c7b762a27c348867b/pkg/scaling/executor/scale_executor.go#L47