-
Notifications
You must be signed in to change notification settings - Fork 48
STOR-2263: Enable csi resize and inline volume support for smb csi driver #358
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| kind: ClusterRoleBinding | ||
| apiVersion: rbac.authorization.k8s.io/v1 | ||
| metadata: | ||
| name: smb-csi-driver-binding | ||
| subjects: | ||
| - kind: ServiceAccount | ||
| name: smb-csi-driver-node-sa | ||
| namespace: ${NODE_NAMESPACE} | ||
| roleRef: | ||
| kind: ClusterRole | ||
| name: smb-csi-driver-role | ||
| apiGroup: rbac.authorization.k8s.io |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| # SMB CSI inline volume needs the get/list permission for secrets | ||
| kind: ClusterRole | ||
| apiVersion: rbac.authorization.k8s.io/v1 | ||
| metadata: | ||
| name: smb-csi-driver-role | ||
| rules: | ||
| - apiGroups: [""] | ||
| resources: ["secrets"] | ||
| verbs: ["get", "list"] | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| # Generated file. Do not edit. Update using "make update". | ||
| # | ||
| # Loaded from overlays/samba/base/csi-driver-cluster-role-binding.yaml | ||
| # | ||
| # | ||
|
|
||
| apiVersion: rbac.authorization.k8s.io/v1 | ||
| kind: ClusterRoleBinding | ||
| metadata: | ||
| name: smb-csi-driver-binding | ||
| roleRef: | ||
| apiGroup: rbac.authorization.k8s.io | ||
| kind: ClusterRole | ||
| name: smb-csi-driver-role | ||
| subjects: | ||
| - kind: ServiceAccount | ||
| name: smb-csi-driver-node-sa | ||
| namespace: ${NODE_NAMESPACE} |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| # Generated file. Do not edit. Update using "make update". | ||
| # | ||
| # Loaded from overlays/samba/base/csi-driver-cluster-role.yaml | ||
| # | ||
| # | ||
| # SMB CSI inline volume needs the get/list permission for secrets | ||
|
|
||
| apiVersion: rbac.authorization.k8s.io/v1 | ||
| kind: ClusterRole | ||
| metadata: | ||
| name: smb-csi-driver-role | ||
| rules: | ||
| - apiGroups: | ||
| - "" | ||
| resources: | ||
| - secrets | ||
| verbs: | ||
| - get | ||
| - list |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| # Generated file. Do not edit. Update using "make update". | ||
| # | ||
| # Loaded from base/rbac/main_resizer_binding.yaml | ||
| # because it's needed by controller sidecar common/sidecars/resizer.yaml | ||
| # | ||
| # | ||
|
|
||
| apiVersion: rbac.authorization.k8s.io/v1 | ||
| kind: ClusterRoleBinding | ||
| metadata: | ||
| name: smb-csi-main-resizer-binding | ||
| roleRef: | ||
| apiGroup: rbac.authorization.k8s.io | ||
| kind: ClusterRole | ||
| name: openshift-csi-main-resizer-role | ||
| subjects: | ||
| - kind: ServiceAccount | ||
| name: smb-csi-driver-controller-sa | ||
| namespace: ${NODE_NAMESPACE} |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| # Generated file. Do not edit. Update using "make update". | ||
| # | ||
| # Loaded from base/rbac/storageclass_reader_resizer_binding.yaml | ||
| # because it's needed by controller sidecar common/sidecars/resizer.yaml | ||
| # | ||
| # | ||
|
|
||
| apiVersion: rbac.authorization.k8s.io/v1 | ||
| kind: ClusterRoleBinding | ||
| metadata: | ||
| name: smb-csi-storageclass-reader-resizer-binding | ||
| roleRef: | ||
| apiGroup: rbac.authorization.k8s.io | ||
| kind: ClusterRole | ||
| name: openshift-csi-resizer-storageclass-reader-role | ||
| subjects: | ||
| - kind: ServiceAccount | ||
| name: smb-csi-driver-controller-sa | ||
| namespace: ${NODE_NAMESPACE} |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -13,8 +13,8 @@ DriverInfo: | |
| block: false | ||
| exec: true | ||
| volumeLimits: false | ||
| controllerExpansion: false | ||
| nodeExpansion: false | ||
| controllerExpansion: true | ||
| nodeExpansion: true | ||
| snapshotDataSource: false | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: this CSI driver doesn't support
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hm... We follow upstream commit here.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. upstream did wrong copy/paste. :-)
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is not show-stopper for this PR, right? (we'll try to fix it upstream first, and then bring this one-line change to our downstream)
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yeah. not show stopper.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @gnufied @mpatlasov Good catch, thank you! I'll try to fix it upstream firstly and cherry-pick it back to make it correct. Out of curious the e2e passed so does it mean the nodeExpansion tests seems could not catch the incorrect config? Will do some research on the resize e2e tests later. |
||
| RWX: true | ||
| pvcDataSource: true | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.