build: add NFS provisioner RBAC to generated artifacts

Signed-off-by: Niels de Vos <ndevos@ibm.com>
This commit is contained in:
Niels de Vos
2024-01-26 17:02:05 +01:00
committed by mergify[bot]
parent 6b13352c9b
commit a6466fb1ca
3 changed files with 27 additions and 16 deletions

View File

@ -1,8 +1,10 @@
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: nfs-csi-provisioner
#
# /!\ DO NOT MODIFY THIS FILE
#
# This file has been automatically generated by Ceph-CSI yamlgen.
# The source for the contents can be found in the api/deploy directory, make
# your modifications there.
#
---
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
@ -51,25 +53,26 @@ rules:
- apiGroups: ["snapshot.storage.k8s.io"]
resources: ["volumesnapshots"]
verbs: ["get", "list"]
---
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: nfs-csi-provisioner-role
name: "nfs-csi-provisioner-role"
subjects:
- kind: ServiceAccount
name: nfs-csi-provisioner
namespace: default
name: "nfs-csi-provisioner"
namespace: "default"
roleRef:
kind: ClusterRole
name: nfs-external-provisioner-runner
apiGroup: rbac.authorization.k8s.io
---
kind: Role
apiVersion: rbac.authorization.k8s.io/v1
metadata:
# replace with non-default namespace name
namespace: default
namespace: "default"
name: nfs-external-provisioner-cfg
rules:
# remove this once we stop supporting v1.0.0
@ -79,18 +82,17 @@ rules:
- apiGroups: ["coordination.k8s.io"]
resources: ["leases"]
verbs: ["get", "watch", "list", "delete", "update", "create"]
---
kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: nfs-csi-provisioner-role-cfg
# replace with non-default namespace name
namespace: default
name: "nfs-csi-provisioner-role-cfg"
namespace: "default"
subjects:
- kind: ServiceAccount
name: nfs-csi-provisioner
# replace with non-default namespace name
namespace: default
name: "nfs-csi-provisioner"
namespace: "default"
roleRef:
kind: Role
name: nfs-external-provisioner-cfg