Allow appowners to create pods in MirrorManager
Ref: https://discussion.fedoraproject.org/t/openshift-permissions-for-appowners/133816 Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
This commit is contained in:
parent
7c3e93ce27
commit
33c98f7467
3 changed files with 19 additions and 3 deletions
|
@ -52,6 +52,7 @@
|
||||||
- abompard
|
- abompard
|
||||||
- nphilipp
|
- nphilipp
|
||||||
- adrian
|
- adrian
|
||||||
|
allow_pod_creation: true
|
||||||
tags:
|
tags:
|
||||||
- apply-appowners
|
- apply-appowners
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
---
|
---
|
||||||
allow_fas_db: false
|
allow_fas_db: false
|
||||||
allow_iad2: true
|
allow_iad2: true
|
||||||
|
allow_pod_creation: false
|
||||||
|
|
||||||
egress_policy_template: "{{roles_path}}/openshift/project/templates/egresspolicy.yml"
|
egress_policy_template: "{{roles_path}}/openshift/project/templates/egresspolicy.yml"
|
||||||
|
|
||||||
|
|
|
@ -17,9 +17,6 @@ rules:
|
||||||
resources:
|
resources:
|
||||||
- endpoints
|
- endpoints
|
||||||
- persistentvolumeclaims
|
- persistentvolumeclaims
|
||||||
- pods
|
|
||||||
- pods/attach
|
|
||||||
- pods/exec
|
|
||||||
- replicationcontrollers
|
- replicationcontrollers
|
||||||
- serviceaccounts
|
- serviceaccounts
|
||||||
- services
|
- services
|
||||||
|
@ -32,6 +29,23 @@ rules:
|
||||||
- delete
|
- delete
|
||||||
- update
|
- update
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
# Permissions for pods
|
||||||
|
- apiGroups:
|
||||||
|
- "*"
|
||||||
|
attributeRestrictions: null
|
||||||
|
resources:
|
||||||
|
- pods
|
||||||
|
- pods/attach
|
||||||
|
- pods/exec
|
||||||
|
verbs:
|
||||||
|
- get
|
||||||
|
- list
|
||||||
|
- watch
|
||||||
|
{% if env == "staging" or allow_pod_creation %}
|
||||||
|
- create
|
||||||
|
- delete
|
||||||
|
- update
|
||||||
|
{% endif %}
|
||||||
- apiGroups:
|
- apiGroups:
|
||||||
- "*"
|
- "*"
|
||||||
attributeRestrictions: null
|
attributeRestrictions: null
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue