From 92d16a3c6be57b823be17f6ac3a37134d1840438 Mon Sep 17 00:00:00 2001 From: Florian Bacher Date: Mon, 13 Mar 2023 13:22:00 +0100 Subject: [PATCH] fix: added metric-operator prefix to related ClusterRole and ClusterRoleBindings (#1042) Signed-off-by: Florian Bacher --- metrics-operator/config/metrics/role.yaml | 2 +- metrics-operator/config/metrics/role_binding.yaml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/metrics-operator/config/metrics/role.yaml b/metrics-operator/config/metrics/role.yaml index 24cb504c5a..c293029159 100644 --- a/metrics-operator/config/metrics/role.yaml +++ b/metrics-operator/config/metrics/role.yaml @@ -1,7 +1,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: - name: server-resources + name: metrics-operator-server-resources rules: - apiGroups: - custom.metrics.k8s.io diff --git a/metrics-operator/config/metrics/role_binding.yaml b/metrics-operator/config/metrics/role_binding.yaml index bbf9645796..322a8dd3e4 100644 --- a/metrics-operator/config/metrics/role_binding.yaml +++ b/metrics-operator/config/metrics/role_binding.yaml @@ -15,11 +15,11 @@ subjects: apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: - name: hpa-controller-keptn-metrics + name: metrics-operator-hpa-controller roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole - name: server-resources + name: metrics-operator-server-resources subjects: - kind: ServiceAccount name: horizontal-pod-autoscaler