Add coordination access to controller cluster role
This commit is contained in:
@@ -136,3 +136,15 @@ rules:
|
|||||||
- get
|
- get
|
||||||
- list
|
- list
|
||||||
- watch
|
- watch
|
||||||
|
- apiGroups:
|
||||||
|
- coordination.k8s.io
|
||||||
|
resources:
|
||||||
|
- leases
|
||||||
|
verbs:
|
||||||
|
- get
|
||||||
|
- create
|
||||||
|
- update
|
||||||
|
- patch
|
||||||
|
- delete
|
||||||
|
- list
|
||||||
|
- watch
|
||||||
|
|||||||
@@ -4,16 +4,16 @@ metadata:
|
|||||||
name: truenas-csi
|
name: truenas-csi
|
||||||
namespace: truenas-csi
|
namespace: truenas-csi
|
||||||
resources:
|
resources:
|
||||||
- CSIDriver.yaml
|
- node-cluster-role.yaml
|
||||||
- nfs-storage-class.yaml
|
|
||||||
- controller-deployment.yaml
|
|
||||||
- controller-binding.yaml
|
|
||||||
- node-binding.yaml
|
|
||||||
- config.yaml
|
- config.yaml
|
||||||
|
- nfs-storage-class.yaml
|
||||||
- iscsi-storage-class.yaml
|
- iscsi-storage-class.yaml
|
||||||
- namespace.yaml
|
- namespace.yaml
|
||||||
- controller-service-account.yaml
|
- controller-service-account.yaml
|
||||||
- controller-cluster-role.yaml
|
- controller-cluster-role.yaml
|
||||||
- node-service-account.yaml
|
- node-binding.yaml
|
||||||
- node-cluster-role.yaml
|
|
||||||
- node-deamonset.yaml
|
- node-deamonset.yaml
|
||||||
|
- CSIDriver.yaml
|
||||||
|
- controller-deployment.yaml
|
||||||
|
- controller-binding.yaml
|
||||||
|
- node-service-account.yaml
|
||||||
|
|||||||
@@ -25,6 +25,7 @@ func controllerClusterRole() rbac.ClusterRole {
|
|||||||
kube.PolicyRule(kube.APIGroupSnapshot, kube.ResourceVolumeSnapshotContents, kube.VerbsAll()),
|
kube.PolicyRule(kube.APIGroupSnapshot, kube.ResourceVolumeSnapshotContents, kube.VerbsAll()),
|
||||||
kube.PolicyRule(kube.APIGroupSnapshot, kube.ResourceVolumeSnapshotContentsStatus, kube.VerbsMutate()),
|
kube.PolicyRule(kube.APIGroupSnapshot, kube.ResourceVolumeSnapshotContentsStatus, kube.VerbsMutate()),
|
||||||
kube.PolicyRule(kube.APIGroupSnapshot, kube.ResourceVolumeSnapshotClases, kube.VerbsRead()),
|
kube.PolicyRule(kube.APIGroupSnapshot, kube.ResourceVolumeSnapshotClases, kube.VerbsRead()),
|
||||||
|
kube.PolicyRule(kube.APIGroupCoordination, kube.ResourceLeases, kube.VerbsAll()),
|
||||||
}
|
}
|
||||||
return kube.ClusterRole(root.TrueNAS_CSI+"-controller-role", rules)
|
return kube.ClusterRole(root.TrueNAS_CSI+"-controller-role", rules)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user