Skip to content

Commit

Permalink
fix: rbac update
Browse files Browse the repository at this point in the history
  • Loading branch information
Twwy committed Jul 26, 2023
1 parent 0ff5368 commit 329434b
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,3 @@ metadata:
name: appmanager-operator-account
imagePullSecrets:
- name: {{ .Values.server.docker.secret }}


24 changes: 24 additions & 0 deletions chart/sreworks-chart/charts/appmanager/templates/rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,16 @@ rules:
verbs: ["list","get"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: sreworks-base-role
namespace: {{ .Release.Namespace }}
rules:
- apiGroups: ["*"]
resources: ["secrets"]
verbs: ["get", "list", "create", "update", "delete"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: appmanager-operator-leader-election-rolebinding
Expand Down Expand Up @@ -328,6 +338,20 @@ roleRef:
kind: ClusterRole
name: sreworks-base-role
subjects:
- kind: ServiceAccount
name: default
namespace: {{ .Release.Namespace }}
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: sreworks-base-rolebinding
namespace: {{ .Release.Namespace }}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: sreworks-base-role
subjects:
- kind: ServiceAccount
name: default
namespace: {{ .Release.Namespace }}
Expand Down

0 comments on commit 329434b

Please sign in to comment.