Skip to content

Commit

Permalink
Add missing capability and clusterrole permission to enable tology aw…
Browse files Browse the repository at this point in the history
…areness scheduling
  • Loading branch information
Cheng Pan committed Oct 14, 2018
1 parent 6c0b632 commit 2873e0b
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 2873e0b

Please sign in to comment.