Skip to content

Commit

Permalink
Merge pull request #14415 from pospispa/bugzilla1457092-Dynamic-provi…
Browse files Browse the repository at this point in the history
…sioning-failed-when-zone-is-not-specified-in-the-StorageClass-incorrect-scc-permissions-for-pv-controller

Merged by openshift-bot
  • Loading branch information
OpenShift Bot authored Jun 3, 2017
2 parents 663ad03 + 54b994c commit 90592c5
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pkg/cmd/server/bootstrappolicy/infra_sa_policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,13 @@ func init() {
Verbs: sets.NewString("get"),
Resources: sets.NewString("secrets"),
},
// Cinder provisioner needs to get list of nodes in order
// to get list of available zones in the cluster in order to choose a zone
// in case it's not configured in corresponding Storage Class
{
Verbs: sets.NewString("list", "watch"),
Resources: sets.NewString("nodes"),
},
},
},
)
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 @@ -3161,6 +3161,14 @@ items:
- secrets
verbs:
- get
- apiGroups:
- ""
attributeRestrictions: null
resources:
- nodes
verbs:
- list
- watch
- apiVersion: v1
kind: ClusterRole
metadata:
Expand Down

0 comments on commit 90592c5

Please sign in to comment.