From 71eb88e21c346e1ec3e4454c337696abcdea726a Mon Sep 17 00:00:00 2001 From: Jorge Turrado Date: Mon, 20 Dec 2021 09:01:01 +0000 Subject: [PATCH 1/3] fix: add list and watch access for service accounts to cluster role Signed-off-by: Jorge Turrado --- controllers/keda/scaledobject_controller.go | 1 + 1 file changed, 1 insertion(+) diff --git a/controllers/keda/scaledobject_controller.go b/controllers/keda/scaledobject_controller.go index a631ce29c9c..fb28d3e1ea2 100644 --- a/controllers/keda/scaledobject_controller.go +++ b/controllers/keda/scaledobject_controller.go @@ -57,6 +57,7 @@ import ( // +kubebuilder:rbac:groups="",resources=configmaps;configmaps/status;events,verbs="*" // +kubebuilder:rbac:groups="",resources=pods;services;services;secrets;external,verbs=get;list;watch // +kubebuilder:rbac:groups="*",resources="*/scale",verbs="*" +// +kubebuilder:rbac:groups="",resources="serviceaccounts",verbs=list;watch // +kubebuilder:rbac:groups="*",resources="*",verbs=get // +kubebuilder:rbac:groups="apps",resources=deployments;statefulsets,verbs=list;watch // +kubebuilder:rbac:groups="coordination.k8s.io",resources=leases,verbs="*" From 49f0fe436e8e9fcc4c5dcc2caac43a439e888e23 Mon Sep 17 00:00:00 2001 From: Jorge Turrado Date: Mon, 20 Dec 2021 10:03:49 +0100 Subject: [PATCH 2/3] Update changelog Signed-off-by: Jorge Turrado --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 921b8a78fef..a81e3d9f5ee 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -29,7 +29,7 @@ - Graphite Scaler: use the latest datapoint returned, not the earliest ([#2365](https://github.com/kedacore/keda/pull/2365)) - Kubernetes Workload Scaler: ignore terminated pods ([#2384](https://github.com/kedacore/keda/pull/2384)) -- `keda-operator` Cluster Role: add `list` and `watch` access to service accounts ([#2383](https://github.com/kedacore/keda/issues/2383)) +- `keda-operator` Cluster Role: add `list` and `watch` access to service accounts ([#2383](https://github.com/kedacore/keda/issues/2383))|([#2410](https://github.com/kedacore/keda/issues/2410)) - TODO ([#XXX](https://github.com/kedacore/keda/pull/XXX)) From d613dde7ae5631b23eb888bd5a760939570ddb0b Mon Sep 17 00:00:00 2001 From: Jorge Turrado Date: Mon, 20 Dec 2021 10:05:23 +0100 Subject: [PATCH 3/3] fix the changelog Signed-off-by: Jorge Turrado --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a81e3d9f5ee..1cf9803c9f1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -29,7 +29,7 @@ - Graphite Scaler: use the latest datapoint returned, not the earliest ([#2365](https://github.com/kedacore/keda/pull/2365)) - Kubernetes Workload Scaler: ignore terminated pods ([#2384](https://github.com/kedacore/keda/pull/2384)) -- `keda-operator` Cluster Role: add `list` and `watch` access to service accounts ([#2383](https://github.com/kedacore/keda/issues/2383))|([#2410](https://github.com/kedacore/keda/issues/2410)) +- `keda-operator` Cluster Role: add `list` and `watch` access to service accounts ([#2406](https://github.com/kedacore/keda/pull/2406))|([#2410](https://github.com/kedacore/keda/pull/2410)) - TODO ([#XXX](https://github.com/kedacore/keda/pull/XXX))