Skip to content

Commit

Permalink
Add k8s deployment permissions for dagster (#2683)
Browse files Browse the repository at this point in the history
  • Loading branch information
ravenac95 authored Dec 28, 2024
1 parent 7abe9a5 commit 3c1b6d3
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ops/helm-charts/oso-dagster/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: oso-dagster
description: Extension of the dagster template

type: application
version: 0.6.0
version: 0.7.0
appVersion: "1.0.0"
dependencies:
- name: dagster
Expand Down
8 changes: 8 additions & 0 deletions ops/helm-charts/oso-dagster/templates/rbac.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: dagster-scaler-role
rules:
- apiGroups: ["apps"] # API group for deployments
resources: ["deployments"] # Specific subresource for scaling
verbs: ["get", "update", "list", "patch", "watch"]
12 changes: 12 additions & 0 deletions ops/helm-charts/oso-dagster/templates/role-binding.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: dagster-scaler-role-binding
subjects:
- kind: ServiceAccount
name: {{ .Values.dagster.global.serviceAccountName }}
namespace: {{ .Release.Namespace }}
roleRef:
kind: Role
name: dagster-scaler-role
apiGroup: rbac.authorization.k8s.io

0 comments on commit 3c1b6d3

Please sign in to comment.