From 936622aa3e022b49abd9bfcb1c87dcb191bb2f6b Mon Sep 17 00:00:00 2001
From: Dan Mace <ironcladlou@gmail.com>
Date: Tue, 13 Feb 2018 16:05:17 -0500
Subject: [PATCH] Add missing resource to operator role

Add a missing 'prometheuses/finalizers' resource to the operator cluster role.
Without this role, the operator will fail to create a default secret for a
Prometheus instance in the absence of any service monitors.

The fix seems to already be present in the `examples` version of the role; this
patch brings the contrib version in line with the example.
---
 .../prometheus-operator/prometheus-operator-cluster-role.yaml    | 1 +
 1 file changed, 1 insertion(+)

diff --git a/manifests/prometheus-operator/prometheus-operator-cluster-role.yaml b/manifests/prometheus-operator/prometheus-operator-cluster-role.yaml
index 0a78305b..809c9a70 100644
--- a/manifests/prometheus-operator/prometheus-operator-cluster-role.yaml
+++ b/manifests/prometheus-operator/prometheus-operator-cluster-role.yaml
@@ -20,6 +20,7 @@ rules:
   resources:
   - alertmanagers
   - prometheuses
+  - prometheuses/finalizers
   - servicemonitors
   verbs:
   - "*"
-- 
GitLab