Skip to content

Commit

Permalink
Allow volume controller to list+watch StorageClass instances.
Browse files Browse the repository at this point in the history
  • Loading branch information
jsafrane committed Aug 2, 2016
1 parent e70997f commit 5f9c005
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/cmd/server/bootstrappolicy/infra_sa_policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -506,6 +506,12 @@ func init() {
Verbs: sets.NewString("create", "update", "patch"),
Resources: sets.NewString("events"),
},
// PersistentVolumeController.syncClaim() -> provisionClaim()
{
APIGroups: []string{extensions.GroupName},
Verbs: sets.NewString("list", "watch"),
Resources: sets.NewString("storageclasses"),
},
},
},
)
Expand Down
8 changes: 8 additions & 0 deletions test/testdata/bootstrappolicy/bootstrap_cluster_roles.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2660,6 +2660,14 @@ items:
- create
- patch
- update
- apiGroups:
- extensions
attributeRestrictions: null
resources:
- storageclasses
verbs:
- list
- watch
- apiVersion: v1
kind: ClusterRole
metadata:
Expand Down

0 comments on commit 5f9c005

Please sign in to comment.