From a4f387b0c567caa9494661e45c8a13576e0bbcd0 Mon Sep 17 00:00:00 2001 From: Tariq Ibrahim Date: Wed, 10 Jul 2024 22:03:06 -0700 Subject: [PATCH] add prometheus CR permissions back to gpu-operator clusterrole Signed-off-by: Tariq Ibrahim --- deployments/gpu-operator/templates/clusterrole.yaml | 12 ++++++++++++ deployments/gpu-operator/templates/role.yaml | 12 ------------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/deployments/gpu-operator/templates/clusterrole.yaml b/deployments/gpu-operator/templates/clusterrole.yaml index 1236e5019..d2aca8da4 100644 --- a/deployments/gpu-operator/templates/clusterrole.yaml +++ b/deployments/gpu-operator/templates/clusterrole.yaml @@ -88,6 +88,18 @@ rules: - get - list - watch +- apiGroups: + - monitoring.coreos.com + resources: + - servicemonitors + - prometheusrules + verbs: + - get + - list + - create + - watch + - update + - delete - apiGroups: - nvidia.com resources: diff --git a/deployments/gpu-operator/templates/role.yaml b/deployments/gpu-operator/templates/role.yaml index 934e3acbe..5bacb1989 100644 --- a/deployments/gpu-operator/templates/role.yaml +++ b/deployments/gpu-operator/templates/role.yaml @@ -45,18 +45,6 @@ rules: - update - patch - delete -- apiGroups: - - monitoring.coreos.com - resources: - - servicemonitors - - prometheusrules - verbs: - - get - - list - - create - - watch - - update - - delete - apiGroups: - security.openshift.io resources: