forked from openshift/managed-cluster-config
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OSD-6646: Deploy monitoring ClusterRoleBinding
Since openshift/configure-alertmanager-operator#147, configure-alertmanager-operator needs to bind to the `cluster-monitoring-view` ClusterRole in order to talk to prometheus. However, due to OLM limitations, that ClusterRoleBinding can't be deployed with c-am-o's CSV. Therefore we deploy it from here. OSD-6646
Showing
2 changed files
with
17 additions
and
0 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
deploy/configure-alertmanager-operator/00-monitoring-clusterrolebinding.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
name: configure-alertmanager-operator.prom | ||
namespace: openshift-monitoring | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: cluster-monitoring-view | ||
subjects: | ||
- kind: ServiceAccount | ||
name: configure-alertmanager-operator | ||
namespace: openshift-monitoring |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# RBAC for configure-alertmanager-operator | ||
|
||
This directory contains RBAC artifacts for configure-alertmanager-operator that can't be deployed through OLM. | ||
All other RBAC artifacts should be defined in https://github.com/openshift/configure-alertmanager-operator/tree/master/manifests. |