From 01e0346825d979fb21dbc75090d7ffb1597e105d Mon Sep 17 00:00:00 2001 From: Tyler Helmuth <12352919+TylerHelmuth@users.noreply.github.com> Date: Thu, 18 Jan 2024 10:07:49 -0700 Subject: [PATCH] Revert "update cluster role" This reverts commit 7f4356954601eeb0ee2a3596e95df4aeab82183e. --- .../templates/clusterrole.yaml | 109 +++++++++++------- 1 file changed, 69 insertions(+), 40 deletions(-) diff --git a/charts/opentelemetry-operator/templates/clusterrole.yaml b/charts/opentelemetry-operator/templates/clusterrole.yaml index 42ce23f72..6369ecb5b 100644 --- a/charts/opentelemetry-operator/templates/clusterrole.yaml +++ b/charts/opentelemetry-operator/templates/clusterrole.yaml @@ -11,9 +11,6 @@ rules: - "" resources: - configmaps - - pods - - serviceaccounts - - services verbs: - create - delete @@ -36,12 +33,46 @@ rules: verbs: - list - watch + - apiGroups: + - "" + resources: + - serviceaccounts + verbs: + - create + - delete + - get + - list + - patch + - update + - watch + - apiGroups: + - "" + resources: + - services + verbs: + - create + - delete + - get + - list + - patch + - update + - watch - apiGroups: - apps resources: - daemonsets + verbs: + - create + - delete + - get + - list + - patch + - update + - watch + - apiGroups: + - apps + resources: - deployments - - statefulsets verbs: - create - delete @@ -59,9 +90,9 @@ rules: - list - watch - apiGroups: - - autoscaling + - apps resources: - - horizontalpodautoscalers + - statefulsets verbs: - create - delete @@ -71,13 +102,16 @@ rules: - update - watch - apiGroups: - - config.openshift.io + - autoscaling resources: - - infrastructures - - infrastructures/status + - horizontalpodautoscalers verbs: + - create + - delete - get - list + - patch + - update - watch - apiGroups: - coordination.k8s.io @@ -91,8 +125,8 @@ rules: - apiGroups: - monitoring.coreos.com resources: - - podmonitors - servicemonitors + - podmonitors verbs: - create - delete @@ -126,10 +160,8 @@ rules: - apiGroups: - opentelemetry.io resources: - - opampbridges + - opentelemetrycollectors verbs: - - create - - delete - get - list - patch @@ -138,13 +170,15 @@ rules: - apiGroups: - opentelemetry.io resources: - - opampbridges/finalizers + - opentelemetrycollectors/finalizers verbs: + - get + - patch - update - apiGroups: - opentelemetry.io resources: - - opampbridges/status + - opentelemetrycollectors/status verbs: - get - patch @@ -152,7 +186,7 @@ rules: - apiGroups: - opentelemetry.io resources: - - opentelemetrycollectors + - opampbridges verbs: - get - list @@ -162,7 +196,7 @@ rules: - apiGroups: - opentelemetry.io resources: - - opentelemetrycollectors/finalizers + - opampbridges/finalizers verbs: - get - patch @@ -170,41 +204,36 @@ rules: - apiGroups: - opentelemetry.io resources: - - opentelemetrycollectors/status + - opampbridges/status verbs: - get - patch - update - apiGroups: - - policy + - route.openshift.io resources: - - poddisruptionbudgets + - routes + - routes/custom-host verbs: - - create - - delete - - get - - list - - patch - - update - - watch + - create + - delete + - get + - list + - patch + - update + - watch - apiGroups: - - rbac.authorization.k8s.io + - discovery.k8s.io resources: - - clusterrolebindings - - clusterroles + - endpointslices verbs: - - create - - delete - - get - - list - - patch - - update - - watch + - get + - list + - watch - apiGroups: - - route.openshift.io + - policy resources: - - routes - - routes/custom-host + - poddisruptionbudgets verbs: - create - delete