Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: clusters-service-viewer-role
name: clusters-service-secrets-role
namespace: {{ .Values.config.capi.clusters.namespace }}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: clusters-service-viewer-role
name: clusters-service-secrets-role
subjects:
- kind: ServiceAccount
name: {{ include "mccp.serviceAccountName" . }}
Expand All @@ -15,12 +15,12 @@ subjects:
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: clusters-service-viewer-role-default
name: clusters-service-secrets-role-default
namespace: {{ .Release.Namespace | quote }}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: clusters-service-viewer-role
name: clusters-service-secrets-role
subjects:
- kind: ServiceAccount
name: {{ include "mccp.serviceAccountName" . }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: clusters-service-viewer-role
name: clusters-service-secrets-role
rules:
- apiGroups: [""]
resources: ["secrets"]
verbs: ["get", "watch", "list"]
# create to create deploy key secrets
# read to read capi secrets like kubeconfig
verbs: ["create", "get", "watch", "list"]