mirror of https://github.com/kubernetes/kops.git
Allow snapshot controller to create volumesnapshotcontent
For using dynamic provisioning of volumesnapshot the snapshot-controller has to be able to create volumesnapshotcontent objects at the cluster level. When deploying the snapshot-controller as a kops addon the controller is not able to create volumesnapshotcontent object because it lacks the create permission. This PR adds the create permission for the content objects, which should be the default according to https://github.com/kubernetes-csi/external-snapshotter/blob/v6.0.1/deploy/kubernetes/snapshot-controller/rbac-snapshot-controller.yaml
This commit is contained in:
parent
5ea0839e17
commit
858bdbacfd
|
|
@ -1074,6 +1074,7 @@ rules:
|
|||
resources:
|
||||
- volumesnapshotcontents
|
||||
verbs:
|
||||
- create
|
||||
- get
|
||||
- list
|
||||
- watch
|
||||
|
|
@ -1280,4 +1281,4 @@ metadata:
|
|||
snapshot.storage.kubernetes.io/is-default-class: "true"
|
||||
driver: ebs.csi.aws.com
|
||||
deletionPolicy: Delete
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
|
|
|||
Loading…
Reference in New Issue