feat: Add pods/portforward permissions (#1809)

Signed-off-by: Anatolii Bazko <abazko@redhat.com>
pull/1810/head
Anatolii Bazko 2024-02-05 17:21:49 +01:00 committed by GitHub
parent aaa157b54c
commit 1ae01423c1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
8 changed files with 63 additions and 2 deletions

View File

@ -77,7 +77,7 @@ metadata:
operators.operatorframework.io/project_layout: go.kubebuilder.io/v3
repository: https://github.com/eclipse-che/che-operator
support: Eclipse Foundation
name: eclipse-che.v7.81.0-832.next
name: eclipse-che.v7.82.0-835.next
namespace: placeholder
spec:
apiservicedefinitions: {}
@ -806,6 +806,14 @@ spec:
- get
- list
- watch
- apiGroups:
- ""
resources:
- pods/portforward
verbs:
- get
- list
- create
- apiGroups:
- workspace.devfile.io
resources:
@ -1240,7 +1248,7 @@ spec:
minKubeVersion: 1.19.0
provider:
name: Eclipse Foundation
version: 7.81.0-832.next
version: 7.82.0-835.next
webhookdefinitions:
- admissionReviewVersions:
- v1

View File

@ -343,6 +343,14 @@ rules:
- get
- list
- watch
- apiGroups:
- ''
resources:
- pods/portforward
verbs:
- get
- list
- create
- apiGroups:
- workspace.devfile.io
resources:

View File

@ -8745,6 +8745,14 @@ rules:
- get
- list
- watch
- apiGroups:
- ""
resources:
- pods/portforward
verbs:
- get
- list
- create
- apiGroups:
- workspace.devfile.io
resources:

View File

@ -343,6 +343,14 @@ rules:
- get
- list
- watch
- apiGroups:
- ""
resources:
- pods/portforward
verbs:
- get
- list
- create
- apiGroups:
- workspace.devfile.io
resources:

View File

@ -8745,6 +8745,14 @@ rules:
- get
- list
- watch
- apiGroups:
- ""
resources:
- pods/portforward
verbs:
- get
- list
- create
- apiGroups:
- workspace.devfile.io
resources:

View File

@ -343,6 +343,14 @@ rules:
- get
- list
- watch
- apiGroups:
- ""
resources:
- pods/portforward
verbs:
- get
- list
- create
- apiGroups:
- workspace.devfile.io
resources:

View File

@ -343,6 +343,14 @@ rules:
- get
- list
- watch
- apiGroups:
- ""
resources:
- pods/portforward
verbs:
- get
- list
- create
- apiGroups:
- workspace.devfile.io
resources:

View File

@ -208,6 +208,11 @@ func (s *CheServerReconciler) getUserCommonPolicies() []rbacv1.PolicyRule {
Resources: []string{"pods/log"},
Verbs: []string{"get", "list", "watch"},
},
{
APIGroups: []string{""},
Resources: []string{"pods/portforward"},
Verbs: []string{"get", "list", "create"},
},
{
APIGroups: []string{""},
Resources: []string{"secrets"},