Skip to content

Commit 0a928c4

Browse files
committed
feat: update to Ganesha 6.2 and Fedora 40
Using self-compiled ntirpc and including libacl (introduced within Ganesha 5)
1 parent 175acac commit 0a928c4

File tree

11 files changed

+22
-20
lines changed

11 files changed

+22
-20
lines changed

.github/workflows/docker-build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
registry: ghcr.io
3939
username: ${{ github.repository_owner }}
4040
password: ${{ secrets.GITHUB_TOKEN }}
41-
41+
4242
- name: Lower case owner
4343
id: owner
4444
run: |
@@ -53,4 +53,4 @@ jobs:
5353
platforms: linux/amd64,linux/arm64,linux/ppc64le,linux/s390x
5454
push: true
5555
# keep tag in sync with deploy/base/Dockerfile:GANESHA_VERSION
56-
tags: ghcr.io/${{ steps.owner.outputs.repo-owner }}/nfs-ganesha:V4.0.8
56+
tags: ghcr.io/${{ steps.owner.outputs.repo-owner }}/nfs-ganesha:V6.2

charts/nfs-server-provisioner/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
apiVersion: v1
2-
appVersion: 4.0.8
2+
appVersion: 6.2
33
description: nfs-server-provisioner is an out-of-tree dynamic provisioner for Kubernetes. You can use it to quickly & easily deploy shared storage that works almost anywhere.
44
name: nfs-server-provisioner
55
version: 1.8.0

charts/nfs-server-provisioner/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ their default values.
5757
|:-------------------------------|:----------------------------------------------------------------------------------------------------------------|:---------------------------------------------------------|
5858
| `extraArgs` | [Additional command line arguments](https://github.com/kubernetes-incubator/external-storage/blob/HEAD/nfs/docs/deployment.md#arguments) | `{}`
5959
| `imagePullSecrets` | Specify image pull secrets | `nil` (does not add image pull secrets to deployed pods) |
60-
| `image.repository` | The image repository to pull from | `registry.k8s.io/sig-storage/nfs-provisioner:v4.0.8` |
61-
| `image.tag` | The image tag to pull | `v4.0.8` |
60+
| `image.repository` | The image repository to pull from | `registry.k8s.io/sig-storage/nfs-provisioner:v6.2` |
61+
| `image.tag` | The image tag to pull | `v6.2` |
6262
| `image.digest` | The image digest to pull, this option has precedence over `image.tag` | `nil` |
6363
| `image.pullPolicy` | Image pull policy | `IfNotPresent` |
6464
| `service.type` | service type | `ClusterIP` |

charts/nfs-server-provisioner/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ replicaCount: 1
88

99
image:
1010
repository: registry.k8s.io/sig-storage/nfs-provisioner
11-
tag: v4.0.8
11+
tag: v6.2
1212
# digest:
1313
pullPolicy: IfNotPresent
1414

deploy/base/Dockerfile

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
# arm64 architectures.
1919
#
2020
# List of Fedora versions: https://en.wikipedia.org/wiki/Fedora_version_history#Version_history
21-
ARG FEDORA_VERSION=36
21+
ARG FEDORA_VERSION=40
2222

2323

2424

@@ -42,22 +42,23 @@ RUN dnf install -y \
4242
libblkid-devel \
4343
libnfsidmap-devel \
4444
libnsl2-devel \
45-
libntirpc-devel \
4645
libuuid-devel \
4746
ninja-build \
4847
patch \
4948
userspace-rcu-devel \
50-
xfsprogs-devel
49+
xfsprogs-devel \
50+
libacl-devel
5151

5252
# Clone specific version of ganesha
5353
# Keep version in sync with .github/workflows/docker-build.yml
54-
ARG GANESHA_VERSION=V4.0.8
54+
ARG GANESHA_VERSION=V6.2
5555
RUN git clone --branch ${GANESHA_VERSION} --recurse-submodules https://github.com/nfs-ganesha/nfs-ganesha
5656
WORKDIR /nfs-ganesha
57+
5758
RUN mkdir -p /usr/local \
5859
&& cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local \
5960
-DBUILD_CONFIG=vfs_only -DUSE_FSAL_GLUSTER=OFF -DUSE_FSAL_RGW=OFF \
60-
-DUSE_RADOS_RECOV=OFF -DRADOS_URLS=OFF -DUSE_SYSTEM_NTIRPC=ON \
61+
-DUSE_RADOS_RECOV=OFF -DRADOS_URLS=OFF -DUSE_SYSTEM_NTIRPC=OFF \
6162
-G Ninja src/ \
6263
&& sed -i 's|@SYSSTATEDIR@/lib/nfs/ganesha|/export|' src/include/config-h.in.cmake \
6364
&& ninja \
@@ -77,12 +78,12 @@ RUN microdnf install -y \
7778
jemalloc \
7879
libblkid \
7980
libnfsidmap \
80-
libntirpc \
8181
libuuid \
8282
nfs-utils \
8383
rpcbind \
8484
userspace-rcu \
8585
xfsprogs \
86+
libacl \
8687
&& microdnf clean all
8788

8889
RUN mkdir -p /var/run/dbus \

deploy/docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# limitations under the License.
1414

1515
# Update only after new version of deploy/base/Dockerfile change has built
16-
ARG GANESHA_VERSION=V4.0.8
16+
ARG GANESHA_VERSION=V6.2
1717

1818

1919
FROM ghcr.io/kubernetes-sigs/nfs-ganesha:${GANESHA_VERSION}

deploy/kubernetes/deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ spec:
6363
serviceAccount: nfs-provisioner
6464
containers:
6565
- name: nfs-provisioner
66-
image: registry.k8s.io/sig-storage/nfs-provisioner:v4.0.8
66+
image: registry.k8s.io/sig-storage/nfs-provisioner:v6.2
6767
ports:
6868
- name: nfs
6969
containerPort: 2049

deploy/kubernetes/pod.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ spec:
1111
serviceAccount: nfs-provisioner
1212
containers:
1313
- name: nfs-provisioner
14-
image: registry.k8s.io/sig-storage/nfs-provisioner:v4.0.8
14+
image: registry.k8s.io/sig-storage/nfs-provisioner:v6.2
1515
ports:
1616
- name: nfs
1717
containerPort: 2049

deploy/kubernetes/statefulset.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ spec:
6363
terminationGracePeriodSeconds: 10
6464
containers:
6565
- name: nfs-provisioner
66-
image: registry.k8s.io/sig-storage/nfs-provisioner:v4.0.8
66+
image: registry.k8s.io/sig-storage/nfs-provisioner:v6.2
6767
ports:
6868
- name: nfs
6969
containerPort: 2049

docs/deployment.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ $ make container
2929
If you are running in Kubernetes, it will pull the image from GCR for you. Or you can do it yourself.
3030

3131
```
32-
$ docker pull registry.k8s.io/sig-storage/nfs-provisioner:v4.0.8
32+
$ docker pull registry.k8s.io/sig-storage/nfs-provisioner:v6.2
3333
```
3434

3535
## Deploying the provisioner
@@ -87,15 +87,15 @@ You may want to specify the hostname the NFS server exports from, i.e. the serve
8787
$ docker run --cap-add DAC_READ_SEARCH --cap-add SYS_RESOURCE \
8888
--security-opt seccomp:deploy/docker/nfs-provisioner-seccomp.json \
8989
-v $HOME/.kube:/.kube:Z \
90-
registry.k8s.io/sig-storage/nfs-provisioner:v4.0.8 \
90+
registry.k8s.io/sig-storage/nfs-provisioner:v6.2 \
9191
-provisioner=example.com/nfs \
9292
-kubeconfig=/.kube/config
9393
```
9494
or
9595
```
9696
$ docker run --cap-add DAC_READ_SEARCH --cap-add SYS_RESOURCE \
9797
--security-opt seccomp:deploy/docker/nfs-provisioner-seccomp.json \
98-
registry.k8s.io/sig-storage/nfs-provisioner:v4.0.8 \
98+
registry.k8s.io/sig-storage/nfs-provisioner:v6.2 \
9999
-provisioner=example.com/nfs \
100100
-master=http://172.17.0.1:8080
101101
```
@@ -110,7 +110,7 @@ With the two above options, the run command will look something like this.
110110
$ docker run --privileged \
111111
-v $HOME/.kube:/.kube:Z \
112112
-v /xfs:/export:Z \
113-
registry.k8s.io/sig-storage/nfs-provisioner:v4.0.8 \
113+
registry.k8s.io/sig-storage/nfs-provisioner:v6.2 \
114114
-provisioner=example.com/nfs \
115115
-kubeconfig=/.kube/config \
116116
-enable-xfs-quota=true

0 commit comments

Comments
 (0)