Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…-csi-driver into support-aznfs-EiT
  • Loading branch information
cvvz committed Oct 11, 2024
2 parents 08aafdc + 3adba10 commit b5b50fc
Show file tree
Hide file tree
Showing 2,458 changed files with 303,597 additions and 182,313 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/static.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ jobs:
- name: Set up Go 1.x
uses: actions/setup-go@v5
with:
go-version: ^1.19
go-version: 1.23.0
- uses: actions/checkout@master
- name: Run linter
uses: golangci/golangci-lint-action@v6
with:
version: v1.54
args: -E=gofmt,unused,ineffassign,revive,misspell,exportloopref,asciicheck,bodyclose,depguard,dogsled,dupl,durationcheck,errname,forbidigo -D=staticcheck --timeout=30m0s
version: v1.60
args: -E=gofmt,unused,ineffassign,revive,misspell,copyloopvar,asciicheck,bodyclose,depguard,dogsled,dupl,durationcheck,errname,forbidigo -D=staticcheck --timeout=30m0s
2 changes: 1 addition & 1 deletion .github/workflows/trivy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- name: Set up Go 1.x
uses: actions/setup-go@v5
with:
go-version: 1.22.4
go-version: 1.23.1
id: go

- name: Checkout code
Expand Down
3 changes: 3 additions & 0 deletions .trivyignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
CVE-2024-34156
CVE-2024-34158
CVE-2024-34155
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ unit-test:

.PHONY: sanity-test
sanity-test: azurefile
go test -v -timeout=10m ./test/sanity
go test -v -timeout=30m ./test/sanity

.PHONY: e2e-test
e2e-test:
Expand Down Expand Up @@ -233,8 +233,8 @@ create-metrics-svc:

.PHONY: install-smb-provisioner
install-smb-provisioner:
kubectl delete secret smbcreds --ignore-not-found
kubectl create secret generic smbcreds --from-literal azurestorageaccountname=USERNAME --from-literal azurestorageaccountkey="PASSWORD"
kubectl delete secret smbcreds -n default --ignore-not-found
kubectl create secret generic smbcreds -n default --from-literal azurestorageaccountname=USERNAME --from-literal azurestorageaccountkey="PASSWORD"
ifdef TEST_WINDOWS
kubectl apply -f deploy/example/smb-provisioner/smb-server-lb.yaml
else
Expand Down
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,20 @@
[![Artifact Hub](https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/azurefile-csi-driver)](https://artifacthub.io/packages/search?repo=azurefile-csi-driver)

### About
This driver allows Kubernetes to access [Azure File](https://docs.microsoft.com/en-us/azure/storage/files/storage-files-introduction) volume using smb and nfs protocols, csi plugin name: `file.csi.azure.com`
This driver allows Kubernetes to access [Azure File](https://docs.microsoft.com/en-us/azure/storage/files/storage-files-introduction) volume using smb and nfs protocols, csi plugin name: `file.csi.azure.com`.
> Please be aware that this driver only permits the mounting of SMB file shares using key-based (NTLM v2) authentication, and therefore does not support the maximum security profile of Azure File share settings. On the other hand, mounting NFS file shares does not require key-based authentication.
Disclaimer: Deploying this driver manually is not an officially supported Microsoft product. For a fully managed and supported experience on Kubernetes, use [AKS with the managed Azure file csi driver](https://learn.microsoft.com/azure/aks/azure-files-csi).
Disclaimer: Deploying this driver manually is not an officially supported Microsoft product. For a fully managed and supported experience on Kubernetes, use [AKS with the managed Azure File CSI driver](https://learn.microsoft.com/azure/aks/azure-files-csi).

### Project status: GA

### Container Images & Kubernetes Compatibility:
|Driver Version |Image | supported k8s version |
|----------------|---------------------------------------------------------- |-----------------------|
|master branch |mcr.microsoft.com/k8s/csi/azurefile-csi:latest | 1.21+ |
|v1.30.2 |mcr.microsoft.com/oss/kubernetes-csi/azurefile-csi:v1.30.2 | 1.21+ |
|v1.29.5 |mcr.microsoft.com/oss/kubernetes-csi/azurefile-csi:v1.29.5 | 1.21+ |
|v1.28.10 |mcr.microsoft.com/oss/kubernetes-csi/azurefile-csi:v1.28.10 | 1.21+ |
|v1.30.5 |mcr.microsoft.com/oss/kubernetes-csi/azurefile-csi:v1.30.5 | 1.21+ |
|v1.29.7 |mcr.microsoft.com/oss/kubernetes-csi/azurefile-csi:v1.29.7 | 1.21+ |
|v1.28.12 |mcr.microsoft.com/oss/kubernetes-csi/azurefile-csi:v1.28.12 | 1.21+ |

### Driver parameters
Please refer to [driver parameters](./docs/driver-parameters.md)
Expand Down
32 changes: 16 additions & 16 deletions charts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
### install a specific version
```console
helm repo add azurefile-csi-driver https://raw.githubusercontent.com/kubernetes-sigs/azurefile-csi-driver/master/charts
helm install azurefile-csi-driver azurefile-csi-driver/azurefile-csi-driver --namespace kube-system --version v1.30.2
helm install azurefile-csi-driver azurefile-csi-driver/azurefile-csi-driver --namespace kube-system --version v1.30.5
```

### install on RedHat/CentOS
Expand Down Expand Up @@ -56,20 +56,20 @@ The following table lists the configurable parameters of the latest Azure File C
| `feature.enableVolumeMountGroup` | indicates whether enabling VOLUME_MOUNT_GROUP | `true` |
| `feature.fsGroupPolicy` | CSIDriver FSGroupPolicy value | `ReadWriteOnceWithFSType`(available values: `ReadWriteOnceWithFSType`, `File`, `None`) |
| `image.baseRepo` | base repository of driver images | `mcr.microsoft.com` |
| `image.azurefile.repository` | azurefile-csi-driver docker image | `/oss/kubernetes-csi/azurefile-csi` |
| `image.azurefile.tag` | azurefile-csi-driver docker image tag | `` |
| `image.azurefile.repository` | azurefile-csi-driver container image | `/oss/kubernetes-csi/azurefile-csi` |
| `image.azurefile.tag` | azurefile-csi-driver container image tag | `` |
| `image.azurefile.pullPolicy` | azurefile-csi-driver image pull policy | `IfNotPresent` |
| `image.csiProvisioner.repository` | csi-provisioner docker image | `/oss/kubernetes-csi/csi-provisioner` |
| `image.csiProvisioner.tag` | csi-provisioner docker image tag | `v4.0.1` |
| `image.csiProvisioner.repository` | csi-provisioner container image | `/oss/kubernetes-csi/csi-provisioner` |
| `image.csiProvisioner.tag` | csi-provisioner container image tag | `v5.1.0` |
| `image.csiProvisioner.pullPolicy` | csi-provisioner image pull policy | `IfNotPresent` |
| `image.csiResizer.repository` | csi-resizer docker image | `/oss/kubernetes-csi/csi-resizer` |
| `image.csiResizer.tag` | csi-resizer docker image tag | `v1.10.1` |
| `image.csiResizer.repository` | csi-resizer container image | `/oss/kubernetes-csi/csi-resizer` |
| `image.csiResizer.tag` | csi-resizer container image tag | `v1.12.0` |
| `image.csiResizer.pullPolicy` | csi-resizer image pull policy | `IfNotPresent` |
| `image.livenessProbe.repository` | liveness-probe docker image | `/oss/kubernetes-csi/livenessprobe` |
| `image.livenessProbe.tag` | liveness-probe docker image tag | `v2.12.0` |
| `image.livenessProbe.repository` | liveness-probe container image | `/oss/kubernetes-csi/livenessprobe` |
| `image.livenessProbe.tag` | liveness-probe container image tag | `v2.14.0` |
| `image.livenessProbe.pullPolicy` | liveness-probe image pull policy | `IfNotPresent` |
| `image.nodeDriverRegistrar.repository` | csi-node-driver-registrar docker image | `/oss/kubernetes-csi/csi-node-driver-registrar` |
| `image.nodeDriverRegistrar.tag` | csi-node-driver-registrar docker image tag | `v2.10.1` |
| `image.nodeDriverRegistrar.repository` | csi-node-driver-registrar container image | `/oss/kubernetes-csi/csi-node-driver-registrar` |
| `image.nodeDriverRegistrar.tag` | csi-node-driver-registrar container image tag | `v2.12.0` |
| `image.nodeDriverRegistrar.pullPolicy` | csi-node-driver-registrar image pull policy | `IfNotPresent` |
| `imagePullSecrets` | Specify docker-registry secret names as an array | [] (does not add image pull secrets to deployed pods) |
| `customLabels` | Custom labels to add into metadata | `{}` |
Expand Down Expand Up @@ -126,11 +126,11 @@ The following table lists the configurable parameters of the latest Azure File C
| `node.logLevel` | node driver log level |`5` |
| `node.enableAznfsMount` | enable [AZNFS mount helper](https://github.com/Azure/AZNFS-mount/) for NFS protocol | true
| `snapshot.enabled` | whether enable snapshot feature | `false` |
| `snapshot.image.csiSnapshotter.repository` | csi-snapshotter docker image | `/oss/kubernetes-csi/csi-snapshotter` |
| `snapshot.image.csiSnapshotter.tag` | csi-snapshotter docker image tag | `v7.0.2` |
| `snapshot.image.csiSnapshotter.repository` | csi-snapshotter container image | `/oss/kubernetes-csi/csi-snapshotter` |
| `snapshot.image.csiSnapshotter.tag` | csi-snapshotter container image tag | `v8.1.0` |
| `snapshot.image.csiSnapshotter.pullPolicy` | csi-snapshotter image pull policy | `IfNotPresent` |
| `snapshot.image.csiSnapshotController.repository` | snapshot-controller docker image | `/oss/kubernetes-csi/snapshot-controller` |
| `snapshot.image.csiSnapshotController.tag` | snapshot-controller docker image tag | `v7.0.2` |
| `snapshot.image.csiSnapshotController.repository` | snapshot-controller container image | `/oss/kubernetes-csi/snapshot-controller` |
| `snapshot.image.csiSnapshotController.tag` | snapshot-controller container image tag | `v8.1.0` |
| `snapshot.image.csiSnapshotController.pullPolicy` | snapshot-controller image pull policy | `IfNotPresent` |
| `snapshot.snapshotController.name` | snapshot controller name | `csi-snapshot-controller` |
| `snapshot.snapshotController.replicas` | the replicas of snapshot-controller | `2` |
Expand Down Expand Up @@ -167,7 +167,7 @@ The following table lists the configurable parameters of the latest Azure File C
| `linux.resources.azurefile.requests.memory` | azurefile memory requests | 20Mi |
| `windows.enabled` | whether enable windows feature | `true` |
| `windows.dsName` | name of driver daemonset on windows |`csi-azurefile-node-win` |
| `windows.useHostProcessContainers` | whether deploy driver daemonset with host process containers on windows | `false` |
| `windows.useHostProcessContainers` | whether deploy driver daemonset with HostProcess containers on windows | `true` |
| `windows.kubelet` | configure kubelet directory path on Windows agent node | `'C:\var\lib\kubelet'` |
| `windows.kubeconfig` | configure kubeconfig path on Windows agent node | `` (empty, use InClusterConfig by default) |
| `windows.enableRegistrationProbe` | enable [kubelet-registration-probe](https://github.com/kubernetes-csi/node-driver-registrar#health-check-with-an-exec-probe) on windows driver config | `true`
Expand Down
Loading

0 comments on commit b5b50fc

Please sign in to comment.