-
Notifications
You must be signed in to change notification settings - Fork 806
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add snapshot examples #210
Add snapshot examples #210
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The README is optional for this PR. We can add it later
deploy/kubernetes/controller.yaml
Outdated
@@ -23,6 +23,18 @@ rules: | |||
- apiGroups: [""] | |||
resources: ["events"] | |||
verbs: ["get", "list", "watch", "create", "update", "patch"] | |||
- apiGroups: ["snapshot.storage.k8s.io"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should create a separate clusterrole just for snapshotter, and tie it with the csi-controller-sa
service account. Refer to https://github.com/kubernetes-csi/external-snapshotter/blob/01bd7f356e6718dee87914232d287631655bef1d/deploy/kubernetes/rbac.yaml
@@ -0,0 +1,9 @@ | |||
apiVersion: snapshot.storage.k8s.io/v1alpha1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you create a separate dir snapshot
under examples/kubernetes
with all the necessary manifest files just for this use case? I am trying to modularize the examples so that user can just pick whichever example they care about. It will be great if you also add some README.md under the snapshot dir with some instructions about how to execute the example.
/cc @dkoshkin |
47edc23
to
80a9ef4
Compare
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: leakingtapan, tsmetana The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
…t/cherry-pick-209-to-release-4.10 [release-4.10] OCPBUGS-1804: UPSTREAM: 1398: Add resolver to handle custom endpoints
Added external snapshotter to the controller yaml, updated readme and deployment example.