Skip to content

Commit

Permalink
allow konflux-core team to manage workspaces CRD (#4691)
Browse files Browse the repository at this point in the history
Signed-off-by: Francesco Ilario <filario@redhat.com>
  • Loading branch information
filariow authored Oct 14, 2024
1 parent 0f168fa commit 0a4ce91
Show file tree
Hide file tree
Showing 9 changed files with 36 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ kind: Kustomization
resources:
- ../../base/
- route.yaml
- ../../team
images:
- name: quay.io/konflux-workspaces/workspaces-server
newTag: v0.1.0-alpha7
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../../base/
- ../../team
images:
- name: quay.io/konflux-workspaces/workspaces-server
newTag: v0.1.0-alpha7
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../../base/
- ../../team
images:
- name: quay.io/konflux-workspaces/workspaces-server
newTag: v0.1.0-alpha7
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../../base/
- ../../team
images:
- name: quay.io/konflux-workspaces/workspaces-server
newTag: v0.1.0-alpha7
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ kind: Kustomization
resources:
- ../../base/
- route.yaml
- ../../team
images:
- name: quay.io/konflux-workspaces/workspaces-server
newTag: v0.1.0-alpha7
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../../base/server/config/crd/

- ../../team
5 changes: 5 additions & 0 deletions components/workspaces/team/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- workspaces-team-role.yaml
- workspaces-team-rolebinding.yaml
12 changes: 12 additions & 0 deletions components/workspaces/team/workspaces-team-role.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: workspaces-service-maintainer
rules:
- apiGroups:
- workspaces.konflux-ci.dev
resources:
- '*'
verbs:
- '*'
13 changes: 13 additions & 0 deletions components/workspaces/team/workspaces-team-rolebinding.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: workspaces-service-maintainer
subjects:
- kind: Group
apiGroup: rbac.authorization.k8s.io
name: konflux-core
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: workspaces-service-maintainer

0 comments on commit 0a4ce91

Please sign in to comment.