Skip to content
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

Merge https://github.com/kubernetes-csi/csi-driver-nfs:master into master #118

Merged
merged 52 commits into from Jun 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
1302b43
feat: add csi-snapshotter sidecar and external-snapshotter
wozniakjan Mar 17, 2023
aeb0a8d
feat: add SnapshotClass and VolumeSnapshot example
wozniakjan Mar 18, 2023
ce66bf8
feat: implement volume snapshots
wozniakjan Mar 17, 2023
8694d47
test: copy volume from snapshot unit tests
wozniakjan Mar 26, 2023
6881ee5
chore: go mod
wozniakjan Mar 18, 2023
3f5c566
Merge pull request #430 from wozniakjan/snapshots_with_tarballs
k8s-ci-robot Apr 8, 2023
847601b
feat: enable securityContext.seccompProfile, set system-cluster-critical
andyzhangx Apr 8, 2023
fa6a1e7
Merge pull request #437 from andyzhangx/add-seccompProfile
andyzhangx Apr 9, 2023
5fb09a1
change the storageclass configuration method in the test file
umagnus Apr 13, 2023
da976fd
Merge pull request #438 from umagnus/change-test-sc
k8s-ci-robot Apr 14, 2023
5eed83f
fix: set ClusterFirstWithHostNet as default dnsPolicy
andyzhangx Apr 29, 2023
d0bc147
Merge pull request #440 from andyzhangx/dnspolicy-fix
andyzhangx Apr 30, 2023
75a4774
chore: upgrade csi sidecar container images
andyzhangx Apr 30, 2023
cb70169
Merge pull request #441 from andyzhangx/upgrade-sidecar-images2
k8s-ci-robot Apr 30, 2023
76187a6
chore: add dependabot
andyzhangx May 5, 2023
e2bc76a
Merge pull request #442 from andyzhangx/add-dependabot
andyzhangx May 5, 2023
921d186
chore(deps): bump github/codeql-action from 1 to 2
dependabot[bot] May 5, 2023
f70acd4
chore(deps): bump sigs.k8s.io/yaml from 1.2.0 to 1.3.0
dependabot[bot] May 5, 2023
fc99ace
Merge pull request #443 from kubernetes-csi/dependabot/github_actions…
k8s-ci-robot May 5, 2023
0c69793
Merge pull request #444 from kubernetes-csi/dependabot/go_modules/sig…
k8s-ci-robot May 5, 2023
cf10754
chore(deps): bump actions/setup-go from 2 to 4
dependabot[bot] May 5, 2023
eb5b685
chore(deps): bump golang.org/x/net from 0.7.0 to 0.9.0
dependabot[bot] May 5, 2023
4c9d768
Merge pull request #445 from kubernetes-csi/dependabot/github_actions…
k8s-ci-robot May 6, 2023
bfdac30
Merge pull request #446 from kubernetes-csi/dependabot/go_modules/gol…
k8s-ci-robot May 6, 2023
078e12a
chore(deps): bump google.golang.org/protobuf from 1.27.1 to 1.30.0
dependabot[bot] May 8, 2023
f4de069
Merge pull request #447 from kubernetes-csi/dependabot/go_modules/goo…
k8s-ci-robot May 9, 2023
b555128
chore(deps): bump github.com/onsi/gomega from 1.10.1 to 1.27.6
dependabot[bot] May 9, 2023
5a9bdfb
Merge pull request #448 from kubernetes-csi/dependabot/go_modules/git…
k8s-ci-robot May 10, 2023
f03e837
Use dl.k8s.io instead of hardcoded GCS URIs
stmcginnis May 11, 2023
3b66756
Merge pull request #450 from stmcginnis/dl.k8s.io
k8s-ci-robot May 12, 2023
6900c86
chore: upgrade snapshot version and refine snapshot deployment
andyzhangx May 14, 2023
28091cf
test: fix yamllint errors
andyzhangx May 14, 2023
1e35718
test: verify snapshot install script
andyzhangx May 14, 2023
a29206f
Merge pull request #451 from andyzhangx/refine-snapshot-deployment
andyzhangx May 28, 2023
8db2f84
chore: upgrade csi-snapshot to v6.2.2
andyzhangx May 29, 2023
1cf5dec
Merge pull request #453 from andyzhangx/upgrade-snapshot-6.2.2
andyzhangx May 29, 2023
03f8741
doc: cut v4.3.0 release
andyzhangx May 29, 2023
b6576e9
doc: use latest version for master branch
andyzhangx May 29, 2023
50345ed
Merge pull request #452 from andyzhangx/cut-v4.3.0
andyzhangx Jun 1, 2023
f010c16
chore: add snapshot resource limits
andyzhangx Jun 1, 2023
d19f3fa
Merge pull request #458 from andyzhangx/snapshot-limits
k8s-ci-robot Jun 1, 2023
dc621b8
chore: switch master branch version
andyzhangx Jun 3, 2023
cb330e6
bugfix: correct snapshot path when using share parameter
wozniakjan Jun 5, 2023
8eb52e1
Merge pull request #461 from wozniakjan/fix_snapshot_subpath
k8s-ci-robot Jun 7, 2023
8cee281
chore: forbid invalid parameters in snapshot storage class
andyzhangx Jun 7, 2023
9af6a6e
Merge pull request #462 from andyzhangx/forbid-invalid-parameters
k8s-ci-robot Jun 7, 2023
965d845
doc: cut v4.4.0 release
andyzhangx Jun 7, 2023
a9e9fa0
doc: use latest version for master branch
andyzhangx Jun 7, 2023
862cb03
Merge pull request #463 from andyzhangx/cut-v4.4.0
andyzhangx Jun 7, 2023
8ffef9e
chore(deps): bump actions/checkout from 2 to 3
dependabot[bot] Jun 16, 2023
d89ed66
Merge pull request #466 from kubernetes-csi/dependabot/github_actions…
k8s-ci-robot Jun 17, 2023
02ce99e
Merge https://github.com/kubernetes-csi/csi-driver-nfs:master into ma…
Jun 19, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
20 changes: 20 additions & 0 deletions .github/dependabot.yaml
@@ -0,0 +1,20 @@
version: 2
updates:
- package-ecosystem: gomod
directory: "/"
schedule:
interval: daily
labels:
- "area/dependency"
- "release-note-none"
- "ok-to-test"
open-pull-requests-limit: 1
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
labels:
- "area/dependency"
- "release-note-none"
- "ok-to-test"
open-pull-requests-limit: 1
6 changes: 3 additions & 3 deletions .github/workflows/codeql-analysis.yml
Expand Up @@ -38,7 +38,7 @@ jobs:

steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
uses: actions/setup-go@v4
with:
go-version: ^1.18
id: go
Expand All @@ -48,7 +48,7 @@ jobs:

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
Expand All @@ -63,4 +63,4 @@ jobs:
make all
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
uses: github/codeql-action/analyze@v2
2 changes: 1 addition & 1 deletion .github/workflows/codespell.yml
Expand Up @@ -8,7 +8,7 @@ jobs:
name: Check for spelling errors
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: codespell-project/actions-codespell@master
with:
check_filenames: true
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/darwin.yaml
Expand Up @@ -8,12 +8,12 @@ jobs:
runs-on: macos-latest
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
uses: actions/setup-go@v4
with:
go-version: ^1.16
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Run unit tests
run: |
go version
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/linux.yaml
Expand Up @@ -11,13 +11,13 @@ jobs:
steps:

- name: Set up Go 1.x
uses: actions/setup-go@v2
uses: actions/setup-go@v4
with:
go-version: ^1.17
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Build Test
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pluto.yaml
Expand Up @@ -11,7 +11,7 @@ jobs:
steps:

- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3

# https://pluto.docs.fairwinds.com/advanced/#display-options
- name: Download pluto
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/shellcheck.yaml
Expand Up @@ -16,7 +16,7 @@ jobs:
name: Shellcheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Run ShellCheck
uses: ludeeus/action-shellcheck@master
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/static.yaml
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v3
uses: actions/setup-go@v4
with:
go-version: ^1.19
- uses: actions/checkout@master
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/trivy.yaml
Expand Up @@ -13,7 +13,7 @@ jobs:
uses: actions/checkout@v3

- name: Install go
uses: actions/setup-go@v3
uses: actions/setup-go@v4
with:
go-version: ^1.19

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/windows.yaml
Expand Up @@ -11,11 +11,11 @@ jobs:
runs-on: ${{ matrix.platform }}
steps:
- name: Install Go
uses: actions/setup-go@v2
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go }}
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Run Windows Unit Tests
run: |
go version
Expand Down
3 changes: 1 addition & 2 deletions Makefile
Expand Up @@ -27,7 +27,7 @@ include release-tools/build.make

GIT_COMMIT = $(shell git rev-parse HEAD)
BUILD_DATE = $(shell date -u +"%Y-%m-%dT%H:%M:%SZ")
IMAGE_VERSION ?= v4.2.0
IMAGE_VERSION ?= v4.4.0
LDFLAGS = -X ${PKG}/pkg/nfs.driverVersion=${IMAGE_VERSION} -X ${PKG}/pkg/nfs.gitCommit=${GIT_COMMIT} -X ${PKG}/pkg/nfs.buildDate=${BUILD_DATE}
EXT_LDFLAGS = -s -w -extldflags "-static"
# Use a custom version for E2E tests if we are testing in CI
Expand Down Expand Up @@ -147,7 +147,6 @@ e2e-bootstrap: install-helm
OUTPUT_TYPE=registry $(MAKE) container push
helm install csi-driver-nfs ./charts/latest/csi-driver-nfs --namespace kube-system --wait --timeout=15m -v=5 --debug \
${E2E_HELM_OPTIONS} \
--set controller.dnsPolicy=ClusterFirstWithHostNet \
--set controller.logLevel=8 \
--set node.logLevel=8

Expand Down
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -12,9 +12,9 @@ This is a repository for [NFS](https://en.wikipedia.org/wiki/Network_File_System
|driver version | supported k8s version | status |
|----------------|-----------------------|--------|
|master branch | 1.21+ | GA |
|v4.4.0 | 1.21+ | GA |
|v4.3.0 | 1.21+ | GA |
|v4.2.0 | 1.21+ | GA |
|v4.1.0 | 1.20+ | GA |
|v4.0.0 | 1.20+ | GA |

### Install driver on a Kubernetes cluster
> [install NFS CSI driver on microk8s](https://microk8s.io/docs/nfs)
Expand Down
12 changes: 6 additions & 6 deletions charts/README.md
Expand Up @@ -15,7 +15,7 @@
### install a specific version
```console
helm repo add csi-driver-nfs https://raw.githubusercontent.com/kubernetes-csi/csi-driver-nfs/master/charts
helm install csi-driver-nfs csi-driver-nfs/csi-driver-nfs --namespace kube-system --version v4.2.0
helm install csi-driver-nfs csi-driver-nfs/csi-driver-nfs --namespace kube-system --version v4.4.0
```

### install driver with customized driver name, deployment name
Expand Down Expand Up @@ -51,21 +51,21 @@ The following table lists the configurable parameters of the latest NFS CSI Driv
| `image.nfs.tag` | csi-driver-nfs image tag | `latest` |
| `image.nfs.pullPolicy` | csi-driver-nfs image pull policy | `IfNotPresent` |
| `image.csiProvisioner.repository` | csi-provisioner docker image | `registry.k8s.io/sig-storage/csi-provisioner` |
| `image.csiProvisioner.tag` | csi-provisioner docker image tag | `v3.3.0` |
| `image.csiProvisioner.tag` | csi-provisioner docker image tag | `v3.5.0` |
| `image.csiProvisioner.pullPolicy` | csi-provisioner image pull policy | `IfNotPresent` |
| `image.livenessProbe.repository` | liveness-probe docker image | `registry.k8s.io/sig-storage/livenessprobe` |
| `image.livenessProbe.tag` | liveness-probe docker image tag | `v2.8.0` |
| `image.livenessProbe.tag` | liveness-probe docker image tag | `v2.10.0` |
| `image.livenessProbe.pullPolicy` | liveness-probe image pull policy | `IfNotPresent` |
| `image.nodeDriverRegistrar.repository` | csi-node-driver-registrar docker image | `registry.k8s.io/sig-storage/csi-node-driver-registrar` |
| `image.nodeDriverRegistrar.tag` | csi-node-driver-registrar docker image tag | `v2.6.2` |
| `image.nodeDriverRegistrar.tag` | csi-node-driver-registrar docker image tag | `v2.8.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) |
| `serviceAccount.create` | whether create service account of csi-nfs-controller | `true` |
| `rbac.create` | whether create rbac of csi-nfs-controller | `true` |
| `controller.replicas` | replica number of csi-nfs-controller | `1` |
| `controller.runOnMaster` | run controller on master node(deprecated on k8s 1.25+) |`false` |
| `controller.runOnControlPlane` | run controller on control plane node |`false` |
| `controller.dnsPolicy` | dnsPolicy of controller driver, available values: `Default`, `ClusterFirstWithHostNet`, `ClusterFirst` | `Default` |
| `controller.dnsPolicy` | dnsPolicy of controller driver, available values: `Default`, `ClusterFirstWithHostNet`, `ClusterFirst` | `ClusterFirstWithHostNet` |
| `controller.defaultOnDeletePolicy` | default policy for deleting subdirectory when deleting a volume, available values: `delete`, `retain` | `delete` |
| `controller.logLevel` | controller driver log level |`5` |
| `controller.workingMountDir` | working directory for provisioner to mount nfs shares temporarily | `/tmp` |
Expand All @@ -82,7 +82,7 @@ The following table lists the configurable parameters of the latest NFS CSI Driv
| `controller.resources.nfs.requests.cpu` | csi-driver-nfs cpu requests limits | 10m |
| `controller.resources.nfs.requests.memory` | csi-driver-nfs memory requests limits | 20Mi |
| `node.name` | driver node daemonset name | `csi-nfs-node`
| `node.dnsPolicy` | dnsPolicy of driver node daemonset, available values: `Default`, `ClusterFirstWithHostNet`, `ClusterFirst` |
| `node.dnsPolicy` | dnsPolicy of driver node daemonset, available values: `Default`, `ClusterFirstWithHostNet`, `ClusterFirst` |`ClusterFirstWithHostNet`
| `node.maxUnavailable` | `maxUnavailable` value of driver node daemonset | `1`
| `node.logLevel` | node driver log level |`5` |
| `node.livenessProbe.healthPort ` | the health check port for liveness probe |`29653` |
Expand Down
36 changes: 27 additions & 9 deletions charts/index.yaml
@@ -1,9 +1,27 @@
apiVersion: v1
entries:
csi-driver-nfs:
- apiVersion: v1
appVersion: v4.4.0
created: "2023-06-07T08:29:18.915849236Z"
description: CSI NFS Driver for Kubernetes
digest: 8433b702987079bd2209921e22db7b038bfff760d50b85755e72684ee6c60721
name: csi-driver-nfs
urls:
- https://raw.githubusercontent.com/kubernetes-csi/csi-driver-nfs/master/charts/v4.4.0/csi-driver-nfs-v4.4.0.tgz
version: v4.4.0
- apiVersion: v1
appVersion: v4.3.0
created: "2023-06-07T08:29:18.915120822Z"
description: CSI NFS Driver for Kubernetes
digest: 1aef5dec52a6c433dbed2e361bed0ab1fdd6792f845eccb99b7dc7f193c2a71e
name: csi-driver-nfs
urls:
- https://raw.githubusercontent.com/kubernetes-csi/csi-driver-nfs/master/charts/v4.3.0/csi-driver-nfs-v4.3.0.tgz
version: v4.3.0
- apiVersion: v1
appVersion: v4.2.0
created: "2023-02-19T03:06:17.779651726Z"
created: "2023-06-07T08:29:18.91443514Z"
description: CSI NFS Driver for Kubernetes
digest: e702f6c9be35f2649f5736ca5fcdc40ab1c6a235f41e7fb2472d208e8a5ebf47
name: csi-driver-nfs
Expand All @@ -12,7 +30,7 @@ entries:
version: v4.2.0
- apiVersion: v1
appVersion: v4.1.0
created: "2023-02-19T03:06:17.779230713Z"
created: "2023-06-07T08:29:18.913997153Z"
description: CSI NFS Driver for Kubernetes
digest: b2baa2f129976cf2981c8873290aac509aa3c5937ffc319fbf69fbe3271c23eb
name: csi-driver-nfs
Expand All @@ -21,7 +39,7 @@ entries:
version: v4.1.0
- apiVersion: v1
appVersion: v4.0.0
created: "2023-02-19T03:06:17.778817545Z"
created: "2023-06-07T08:29:18.913508212Z"
description: CSI NFS Driver for Kubernetes
digest: 3145fd12225a639908b14675c8ae1f272bc0e57ffa2895b6f17411486a24229d
name: csi-driver-nfs
Expand All @@ -30,7 +48,7 @@ entries:
version: v4.0.0
- apiVersion: v1
appVersion: v3.1.0
created: "2023-02-19T03:06:17.778410591Z"
created: "2023-06-07T08:29:18.913089943Z"
description: CSI NFS Driver for Kubernetes
digest: 7e51bb9188b013195cafc265102fa365de9ec5513780e1dfc5363289f811a4d9
name: csi-driver-nfs
Expand All @@ -39,7 +57,7 @@ entries:
version: v3.1.0
- apiVersion: v1
appVersion: v3.0.0
created: "2023-02-19T03:06:17.778027388Z"
created: "2023-06-07T08:29:18.912648344Z"
description: CSI NFS Driver for Kubernetes
digest: 44406231cd5cdada1c62a0541b93b4f5d5a70ccc8c50b33553a8692fe6cfae96
name: csi-driver-nfs
Expand All @@ -48,7 +66,7 @@ entries:
version: v3.0.0
- apiVersion: v1
appVersion: v2.0.0
created: "2023-02-19T03:06:17.777605366Z"
created: "2023-06-07T08:29:18.911647961Z"
description: CSI NFS Driver for Kubernetes
digest: 1a32c6fc016526fe19a0c9e0dfbe83d0ddde67ced533bb5f5d24d713f706c613
name: csi-driver-nfs
Expand All @@ -57,11 +75,11 @@ entries:
version: v2.0.0
- apiVersion: v1
appVersion: latest
created: "2023-02-19T03:06:17.777385954Z"
created: "2023-06-07T08:29:18.91113186Z"
description: CSI NFS Driver for Kubernetes
digest: 16549e803dcdcf624e6dffeaff63cea7cfde0447651cc188060d5f2801f21c9f
digest: 7e41d0f60dce722ae616b9caf8999d8271750b1a762c809ef1929f57756d2f3f
name: csi-driver-nfs
urls:
- https://raw.githubusercontent.com/kubernetes-csi/csi-driver-nfs/master/charts/latest/csi-driver-nfs-v0.0.0.tgz
version: v0.0.0
generated: "2023-02-19T03:06:17.776802428Z"
generated: "2023-06-07T08:29:18.910267239Z"
Binary file modified charts/latest/csi-driver-nfs-v0.0.0.tgz
Binary file not shown.