Skip to content

Commit

Permalink
chore: add clusterroles for tasks and builds to admin and edit
Browse files Browse the repository at this point in the history
  • Loading branch information
shreddedbacon committed Dec 6, 2023
1 parent 30b573f commit 8e75d2c
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 2 deletions.
4 changes: 2 additions & 2 deletions charts/lagoon-build-deploy/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ kubeVersion: ">= 1.23.0-0"

type: application

version: 0.26.2
version: 0.26.3

appVersion: v0.15.4

annotations:
artifacthub.io/changes: |
- kind: changed
description: update remote-controller to v0.15.4
description: added clusterroles for tasks and builds
28 changes: 28 additions & 0 deletions charts/lagoon-build-deploy/templates/clusterrolebinding.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,31 @@ roleRef:
kind: ClusterRole
name: cluster-admin
apiGroup: rbac.authorization.k8s.io
---
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: {{ include "lagoon-build-deploy.fullname" . }}-builds
labels:
{{- include "lagoon-build-deploy.labels" . | nindent 4 }}
# Add these permissions to the "admin" and "edit" default roles.
rbac.authorization.k8s.io/aggregate-to-admin: "true"
rbac.authorization.k8s.io/aggregate-to-edit: "true"
rules:
- apiGroups: ["crd.lagoon.sh"]
resources: ["lagoonbuilds"]
verbs: ["*"]
---
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: {{ include "lagoon-build-deploy.fullname" . }}-tasks
labels:
{{- include "lagoon-build-deploy.labels" . | nindent 4 }}
# Add these permissions to the "admin" and "edit" default roles.
rbac.authorization.k8s.io/aggregate-to-admin: "true"
rbac.authorization.k8s.io/aggregate-to-edit: "true"
rules:
- apiGroups: ["crd.lagoon.sh"]
resources: ["lagoontasks"]
verbs: ["*"]

0 comments on commit 8e75d2c

Please sign in to comment.