Skip to content

Commit e0e3bf5

Browse files
Merge pull request #38 from dfajmon/rebase-v1.19.1
STOR-2585: Rebase to upstream v1.19.1 for OCP 4.21
2 parents 366f286 + 75e6053 commit e0e3bf5

File tree

2,760 files changed

+182496
-66650
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,760 files changed

+182496
-66650
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ include release-tools/build.make
2929
GIT_COMMIT := $(shell git rev-parse HEAD)
3030
REGISTRY ?= andyzhangx
3131
REGISTRY_NAME := $(shell echo $(REGISTRY) | sed "s/.azurecr.io//g")
32-
IMAGE_VERSION ?= v1.18.0
32+
IMAGE_VERSION ?= v1.19.1
3333
VERSION ?= latest
3434
# Use a custom version for E2E tests if we are testing in CI
3535
ifdef CI

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ This driver allows Kubernetes to access [SMB](https://wiki.wireshark.org/SMB) se
1313
|Driver Version | supported k8s version | supported [Windows csi-proxy](https://github.com/kubernetes-csi/csi-proxy) version |
1414
|---------------|-----------------------|-------------------------------------|
1515
|master branch | 1.21+ | v0.2.2+ |
16+
|v1.19.1 | 1.21+ | v0.2.2+ |
1617
|v1.18.0 | 1.21+ | v0.2.2+ |
1718
|v1.17.0 | 1.21+ | v0.2.2+ |
18-
|v1.16.0 | 1.21+ | v0.2.2+ |
1919

2020
### Driver parameters
2121
Please refer to `smb.csi.k8s.io` [driver parameters](./docs/driver-parameters.md)

charts/README.md

Lines changed: 60 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,12 @@
1111
- `--set linux.kubelet="/var/snap/microk8s/common/var/lib/kubelet"` - sets correct path to microk8s kubelet even though a user has a folder link to it.
1212

1313
### install a specific version
14+
> [!IMPORTANT]
15+
> Starting from version `1.18.0`, the prefix `v` is removed from hlem chart release so they are in line with [semver](https://semver.org). Therefore, when upgrading, refer to version `1.18.0` instead of `v1.18.0`.
1416
1517
```console
1618
helm repo add csi-driver-smb https://raw.githubusercontent.com/kubernetes-csi/csi-driver-smb/master/charts
17-
helm install csi-driver-smb csi-driver-smb/csi-driver-smb --namespace kube-system --version v1.18.0
19+
helm install csi-driver-smb csi-driver-smb/csi-driver-smb --namespace kube-system --version v1.19.1
1820
```
1921

2022
### install driver with customized driver name, deployment name
@@ -51,13 +53,13 @@ The following table lists the configurable parameters of the latest SMB CSI Driv
5153
| `image.smb.repository` | csi-driver-smb docker image | `gcr.io/k8s-staging-sig-storage/smbplugin` |
5254
| `image.smb.tag` | csi-driver-smb docker image tag | `canary` |
5355
| `image.smb.pullPolicy` | csi-driver-smb image pull policy | `IfNotPresent` |
54-
| `image.csiProvisioner.tag` | csi-provisioner docker image tag | `v5.2.0` |
56+
| `image.csiProvisioner.tag` | csi-provisioner docker image tag | `v5.3.0` |
5557
| `image.csiProvisioner.pullPolicy` | csi-provisioner image pull policy | `IfNotPresent` |
5658
| `image.livenessProbe.repository` | liveness-probe docker image | `/livenessprobe` |
57-
| `image.livenessProbe.tag` | liveness-probe docker image tag | `v2.15.0` |
59+
| `image.livenessProbe.tag` | liveness-probe docker image tag | `v2.17.0` |
5860
| `image.livenessProbe.pullPolicy` | liveness-probe image pull policy | `IfNotPresent` |
5961
| `image.nodeDriverRegistrar.repository` | csi-node-driver-registrar docker image | `/csi-node-driver-registrar` |
60-
| `image.nodeDriverRegistrar.tag` | csi-node-driver-registrar docker image tag | `v2.13.0` |
62+
| `image.nodeDriverRegistrar.tag` | csi-node-driver-registrar docker image tag | `v2.15.0` |
6163
| `image.nodeDriverRegistrar.pullPolicy` | csi-node-driver-registrar image pull policy | `IfNotPresent` |
6264
| `imagePullSecrets` | Specify docker-registry secret names as an array | `[]` (does not add image pull secrets to deployed pods) |
6365
| `serviceAccount.create` | whether create service account of csi-smb-controller | `true` |
@@ -125,6 +127,7 @@ The following table lists the configurable parameters of the latest SMB CSI Driv
125127
| `windows.resources.smb.requests.cpu` | smb-csi-driver cpu requests limits | `10m` |
126128
| `windows.resources.smb.requests.memory` | smb-csi-driver memory requests limits | `20Mi` |
127129
| `windows.kubelet` | configure kubelet directory path on Windows agent node | `'C:\var\lib\kubelet'` |
130+
| `storageClasses` | create multiple storage classes | `[]` | |
128131

129132
### Csi Proxy support on windows
130133
> if you have set `windows.useHostProcessContainers` as `true`, csi-proxy is not needed by CSI driver.
@@ -145,6 +148,59 @@ The following table lists the configurable parameters of the latest CSI-proxy Dr
145148
| `image.csiproxy.tag` | csiproxy docker image tag | `v1.1.2` |
146149
| `image.csiproxy.pullPolicy` | csiproxy image pull policy | `IfNotPresent` |
147150

151+
## Create multiple storage classes
152+
153+
- create multiple storage classes with different configurations using the `storageClasses` parameter:
154+
155+
```yaml
156+
storageClasses:
157+
- name: smb-csi
158+
annotations:
159+
storageclass.kubernetes.io/is-default-class: "true"
160+
parameters:
161+
source: "//smb-server.default.svc.cluster.local/share"
162+
# if csi.storage.k8s.io/provisioner-secret is provided, will create a sub directory
163+
# with PV name under source
164+
csi.storage.k8s.io/provisioner-secret-name: smbcreds
165+
csi.storage.k8s.io/provisioner-secret-namespace: default
166+
csi.storage.k8s.io/node-stage-secret-name: smbcreds
167+
csi.storage.k8s.io/node-stage-secret-namespace: default
168+
reclaimPolicy: Delete
169+
volumeBindingMode: Immediate
170+
allowVolumeExpansion: true
171+
mountOptions:
172+
- dir_mode=0777
173+
- file_mode=0777
174+
- noperm
175+
- mfsymlinks
176+
- cache=strict
177+
- noserverino # required to prevent data corruption
178+
- name: smb-csi-retain
179+
parameters:
180+
source: "//smb-server.default.svc.cluster.local/share"
181+
# if csi.storage.k8s.io/provisioner-secret is provided, will create a sub directory
182+
# with PV name under source
183+
csi.storage.k8s.io/provisioner-secret-name: smbcreds
184+
csi.storage.k8s.io/provisioner-secret-namespace: default
185+
csi.storage.k8s.io/node-stage-secret-name: smbcreds
186+
csi.storage.k8s.io/node-stage-secret-namespace: default
187+
reclaimPolicy: Retain
188+
volumeBindingMode: Immediate
189+
allowVolumeExpansion: true
190+
mountOptions:
191+
- dir_mode=0777
192+
- file_mode=0777
193+
- noperm
194+
- mfsymlinks
195+
- cache=strict
196+
- noserverino # required to prevent data corruption
197+
```
198+
199+
- install with custom values:
200+
```console
201+
helm install csi-driver-smb csi-driver-smb/csi-driver-smb --namespace kube-system -f custom-values.yaml
202+
```
203+
148204
## troubleshooting
149205

150206
- Add `--wait -v=5 --debug` in `helm install` command to get detailed error

0 commit comments

Comments
 (0)