Skip to content
Open
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
50 changes: 25 additions & 25 deletions deploy/provisioner-sa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,56 +7,56 @@ metadata:
---
#ClusterRole with minimum permissions required for ibmcloud-object-storage-plugin
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1beta1
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: ibmcloud-object-storage-plugin
rules:
- apiGroups: [""]
resources: ["persistentvolumeclaims"]
verbs: ["get", "list", "watch", "update"]
- apiGroups: [""]
resources: ["persistentvolumes"]
verbs: ["get", "list", "watch", "create", "delete"]
- apiGroups: ["storage.k8s.io"]
resources: ["storageclasses"]
verbs: ["list", "watch"]
- apiGroups: [""]
resources: ["events"]
verbs: ["list", "watch", "create"]
- apiGroups: [""]
resources: ["persistentvolumeclaims"]
verbs: ["get", "list", "watch", "update"]
- apiGroups: [""]
resources: ["persistentvolumes"]
verbs: ["get", "list", "watch", "create", "delete"]
- apiGroups: ["storage.k8s.io"]
resources: ["storageclasses"]
verbs: ["list", "watch"]
- apiGroups: [""]
resources: ["events"]
verbs: ["list", "watch", "create"]
---
#ClusterRole for giving read secrets permission to ibmcloud-object-storage-plugin
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1beta1
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: ibmcloud-object-storage-secret-reader
rules:
- apiGroups: [""]
resources: ["secrets"]
verbs: ["get"]
- apiGroups: [""]
resources: ["secrets"]
verbs: ["get"]
---
#ClusterRoleBinding for binding ClusterRole "ibmcloud-object-storage-plugin"
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1beta1
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: ibmcloud-object-storage-plugin
subjects:
- kind: ServiceAccount
name: ibmcloud-object-storage-plugin
namespace: kube-system
- kind: ServiceAccount
name: ibmcloud-object-storage-plugin
namespace: kube-system
roleRef:
kind: ClusterRole
name: ibmcloud-object-storage-plugin
apiGroup: rbac.authorization.k8s.io
---
#ClusterRoleBinding for binding ClusterRole "ibmcloud-object-storage-secret-reader"
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1beta1
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: ibmcloud-object-storage-secret-reader
subjects:
- kind: ServiceAccount
name: ibmcloud-object-storage-plugin
namespace: kube-system
- kind: ServiceAccount
name: ibmcloud-object-storage-plugin
namespace: kube-system
roleRef:
kind: ClusterRole
name: ibmcloud-object-storage-secret-reader
Expand Down