Add more privileges to appowners on staging.

This commit is contained in:
Adam Saleh 2021-03-15 16:13:37 +01:00
parent 8dd920c9b2
commit 7bbb860d52

View file

@ -6,6 +6,11 @@ metadata:
name: appowner name: appowner
namespace: "{{ app }}" namespace: "{{ app }}"
rules: rules:
{% if env == "staging" %}
- apiGroups: ["monitoring.coreos.com"]
resources: ["alertmanagers", "prometheuses", "prometheusrules", "servicemonitors", "podmonitors"]
verbs: ["get", "list", "watch", "create", "update", "patch", "delete"]
{% endif %}
- apiGroups: - apiGroups:
- "*" - "*"
attributeRestrictions: null attributeRestrictions: null
@ -74,6 +79,11 @@ rules:
- get - get
- list - list
- watch - watch
{% if env == "staging" %}
- create
- delete
- update
{% endif %}
- apiGroups: - apiGroups:
- "*" - "*"
attributeRestrictions: null attributeRestrictions: null
@ -99,6 +109,11 @@ rules:
- get - get
- list - list
- watch - watch
{% if env == "staging" %}
- create
- delete
- update
{% endif %}
- apiGroups: - apiGroups:
- batch - batch
attributeRestrictions: null attributeRestrictions: null
@ -110,6 +125,11 @@ rules:
- get - get
- list - list
- watch - watch
{% if env == "staging" %}
- create
- delete
- update
{% endif %}
- apiGroups: - apiGroups:
- build.openshift.io - build.openshift.io
attributeRestrictions: null attributeRestrictions: null