Skip to content

Commit

Permalink
Improve in-namespace admin powerz
Browse files Browse the repository at this point in the history
  • Loading branch information
funkypenguin committed Dec 19, 2020
1 parent 6655290 commit 9678718
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/fission-all/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: fission-all
version: 1.8.1-pre29
version: 1.8.1-pre30
description: Fission is a fast serverless framework for Kubernetes.
keywords:
- fission
Expand Down
15 changes: 14 additions & 1 deletion charts/fission-all/templates/rbac/namespace-isolation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ rules:
kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: fission-namespace-admin
name: fission-namespace-k8s-admin
namespace: {{ .Release.Namespace }}
subjects:
- kind: ServiceAccount
Expand All @@ -22,6 +22,19 @@ roleRef:
name: admin
apiGroup: rbac.authorization.k8s.io
---
kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: fission-namespace-admin
namespace: {{ .Release.Namespace }}
subjects:
- kind: ServiceAccount
name: fission-svc
roleRef:
kind: Role
name: fission-namespace-admin
apiGroup: rbac.authorization.k8s.io
---
# The fission controller needs to look at the CRDs
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1beta1
Expand Down

0 comments on commit 9678718

Please sign in to comment.