Skip to content

Commit

Permalink
Merge pull request #61 from leakingtapan/topology-test
Browse files Browse the repository at this point in the history
Add missing capability and clusterrole permission to enable topology awareness scheduling
  • Loading branch information
bertinatto authored Oct 18, 2018
2 parents fa5a43c + 2873e0b commit 3188c64
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
3 changes: 3 additions & 0 deletions deploy/kubernetes/v1.12+/node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ rules:
- apiGroups: ["storage.k8s.io"]
resources: ["volumeattachments"]
verbs: ["get", "list", "watch", "update"]
- apiGroups: ["csi.storage.k8s.io"]
resources: ["csinodeinfos"]
verbs: ["get", "list", "watch", "update"]

---

Expand Down
6 changes: 6 additions & 0 deletions deploy/kubernetes/v1.12+/provisioner.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ rules:
- apiGroups: [""]
resources: ["secrets"]
verbs: ["get", "list"]
- apiGroups: [""]
resources: ["nodes"]
verbs: ["get", "list", "watch"]
- apiGroups: [""]
resources: ["persistentvolumes"]
verbs: ["get", "list", "watch", "create", "delete"]
Expand All @@ -36,6 +39,9 @@ rules:
- apiGroups: ["snapshot.storage.k8s.io"]
resources: ["volumesnapshotcontents"]
verbs: ["get", "list"]
- apiGroups: ["csi.storage.k8s.io"]
resources: ["csinodeinfos"]
verbs: ["get", "list", "watch"]

---

Expand Down
7 changes: 7 additions & 0 deletions pkg/driver/identity.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,13 @@ func (d *Driver) GetPluginCapabilities(ctx context.Context, req *csi.GetPluginCa
},
},
},
{
Type: &csi.PluginCapability_Service_{
Service: &csi.PluginCapability_Service{
Type: csi.PluginCapability_Service_ACCESSIBILITY_CONSTRAINTS,
},
},
},
},
}

Expand Down

0 comments on commit 3188c64

Please sign in to comment.