Skip to content

Commit

Permalink
Added Helm charts for resource watching for qlkube
Browse files Browse the repository at this point in the history
  • Loading branch information
GabriFila committed May 27, 2021
1 parent 2b9f080 commit 0c7fad3
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 0 deletions.
1 change: 1 addition & 0 deletions deploy/crownlabs/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ qlkube:
replicaCount: 1
image:
repository: crownlabs/qlkube
rbacResourcesName: crownlabs-qlkube
ingress:
hostname: qlkube.crownlabs.example.com

Expand Down
23 changes: 23 additions & 0 deletions qlkube/deploy/qlkube/templates/clusterrole.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: {{ .Values.rbacResourcesName }}
labels: {{- include "qlkube.labels" . | nindent 4 }}
rules:
- apiGroups:
- crownlabs.polito.it
resources:
- instances
- instances/status
- instancesnapshots
- instancesnapshots/status
- templates
- templates/status
- workspaces
- workspaces/status
- tenants
- tenants/status
verbs:
- get
- list
- watch
14 changes: 14 additions & 0 deletions qlkube/deploy/qlkube/templates/clusterrolesbindings.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: {{ .Values.rbacResourcesName }}
labels:
{{- include "qlkube.labels" . | nindent 4 }}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: {{ .Values.rbacResourcesName }}
subjects:
- kind: ServiceAccount
name: {{ include "qlkube.fullname" . }}
namespace: {{ .Release.Namespace }}
2 changes: 2 additions & 0 deletions qlkube/deploy/qlkube/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,5 @@ resources:
requests:
cpu: 100m
memory: 250Mi

rbacResourcesName: crownlabs-qlkube

0 comments on commit 0c7fad3

Please sign in to comment.