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:
Aurélien Bompard 2024-10-16 12:20:52 +02:00
parent 7c3e93ce27
commit 33c98f7467
No known key found for this signature in database
GPG key ID: 31584CFEB9BF64AD
3 changed files with 19 additions and 3 deletions

View file

@ -52,6 +52,7 @@
- abompard - abompard
- nphilipp - nphilipp
- adrian - adrian
allow_pod_creation: true
tags: tags:
- apply-appowners - apply-appowners

View file

@ -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"

View file

@ -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