Skip to content

Commit

Permalink
feat: remove k8s cluster role (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrejpetras authored Aug 21, 2024
1 parent accf425 commit e338a7c
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 128 deletions.
55 changes: 0 additions & 55 deletions src/main/helm/crds/datas.onecx.tkit.org-v1.yml

This file was deleted.

12 changes: 0 additions & 12 deletions src/main/helm/templates/operator-cluster-role-binding.yaml

This file was deleted.

12 changes: 0 additions & 12 deletions src/main/helm/templates/operator-cluster-role.yaml

This file was deleted.

43 changes: 0 additions & 43 deletions src/main/helm/templates/product-cluster-role-binding.yaml

This file was deleted.

11 changes: 11 additions & 0 deletions src/main/helm/templates/role-binding.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: {{ .Release.Name }}-{{ .Values.app.name }}-role-binding
roleRef:
kind: Role
apiGroup: rbac.authorization.k8s.io
name: {{ .Release.Name }}-{{ .Values.app.name }}-role
subjects:
- kind: ServiceAccount
name: {{ .Release.Name }}-{{ .Values.app.name }}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
kind: Role
metadata:
name: {{ .Release.Name }}-{{ .Values.app.name }}-cluster-role
name: {{ .Release.Name }}-{{ .Values.app.name }}-role
rules:
- apiGroups:
- "onecx.tkit.org"
Expand Down
4 changes: 0 additions & 4 deletions src/main/helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,10 @@ app:
fieldPath: metadata.namespace
serviceAccount:
enabled: true

operator:
keycloak:
client:
enabled: true
spec:
kcConfig:
defaultClientScopes: [ ocx-ws:write, ocx-pm-assignment:write, ocx-tn:write, ocx-th:write ]

# Values: JOSDK_WATCH_CURRENT, JOSDK_ALL_NAMESPACES or comma separated list of namespaces
watchNamespaces: "JOSDK_WATCH_CURRENT"

0 comments on commit e338a7c

Please sign in to comment.