Add more privileges to appowners on staging.
This commit is contained in:
parent
8dd920c9b2
commit
7bbb860d52
1 changed files with 20 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue