Skip to content

Commit eacf219

Browse files
authored
Add missing permission to snapshot controller. (#89)
1 parent 81c48d4 commit eacf219

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

controllers/resources.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,12 @@ var (
277277
{
278278
APIGroups: []string{"snapshot.storage.k8s.io"},
279279
Resources: []string{"volumesnapshots/status"},
280-
Verbs: []string{"update"},
280+
Verbs: []string{"update", "patch"},
281+
},
282+
{
283+
APIGroups: []string{"snapshot.storage.k8s.io"},
284+
Resources: []string{"volumesnapshotcontents/status"},
285+
Verbs: []string{"update", "patch"},
281286
},
282287
},
283288
}
@@ -308,11 +313,6 @@ var (
308313
Resources: []string{"volumesnapshotcontents"},
309314
Verbs: []string{"create", "get", "list", "watch", "update", "patch", "delete"},
310315
},
311-
{
312-
APIGroups: []string{"snapshot.storage.k8s.io"},
313-
Resources: []string{"volumesnapshotcontents/status"},
314-
Verbs: []string{"update"},
315-
},
316316
},
317317
}
318318
}

0 commit comments

Comments
 (0)