Skip to content

Commit

Permalink
Add endpoint as part of ClusterRole rule
Browse files Browse the repository at this point in the history
endpoint is missing as part of ClusterRole rule.
This in turn throws a error when gluster-block pod is provisioned.

So, add ClusterRole to perform read/write with endpoint.

Note: endpoint is added in glusterblock-provisioner as part of
the PR: kubernetes-retired/external-storage#957

Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1723366

Signed-off-by: Saravanakumar <sarumuga@redhat.com>
  • Loading branch information
SaravanaStorageNetwork committed Jun 26, 2019
1 parent 7a88100 commit 66a9300
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions deploy/kube-templates/glusterblock-provisioner.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ items:
- apiGroups: [""]
resources: ["routes"]
verbs: ["get", "list"]
- apiGroups: [""]
resources: ["endpoints"]
verbs: ["get", "list", "watch", "create", "update", "patch"]
- apiVersion: v1
kind: ServiceAccount
metadata:
Expand Down
3 changes: 3 additions & 0 deletions deploy/ocp-templates/glusterblock-provisioner.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ items:
- apiGroups: [""]
resources: ["routes"]
verbs: ["get", "list"]
- apiGroups: [""]
resources: ["endpoints"]
verbs: ["get", "list", "watch", "create", "update", "patch"]
- apiVersion: v1
kind: ServiceAccount
metadata:
Expand Down

0 comments on commit 66a9300

Please sign in to comment.