Skip to content

Commit a0d602a

Browse files
committed
feat: update to Ganesha 6.5 and Fedora 41
Using self-compiled ntirpc and including libacl (introduced within Ganesha 5)
1 parent 141cde1 commit a0d602a

File tree

11 files changed

+25
-24
lines changed

11 files changed

+25
-24
lines changed

.github/workflows/docker-build.yml

Lines changed: 3 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,5 @@ 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.5
57+

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.5
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.5` |
61+
| `image.tag` | The image tag to pull | `v6.5` |
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.5
1212
# digest:
1313
pullPolicy: IfNotPresent
1414

deploy/base/Dockerfile

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +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
22-
23-
21+
ARG FEDORA_VERSION=41
2422

2523
FROM registry.fedoraproject.org/fedora:${FEDORA_VERSION} AS build
2624

@@ -42,22 +40,23 @@ RUN dnf install -y \
4240
libblkid-devel \
4341
libnfsidmap-devel \
4442
libnsl2-devel \
45-
libntirpc-devel \
4643
libuuid-devel \
4744
ninja-build \
4845
patch \
4946
userspace-rcu-devel \
50-
xfsprogs-devel
47+
xfsprogs-devel \
48+
libacl-devel
5149

5250
# Clone specific version of ganesha
5351
# Keep version in sync with .github/workflows/docker-build.yml
54-
ARG GANESHA_VERSION=V4.0.8
52+
ARG GANESHA_VERSION=V6.5
5553
RUN git clone --branch ${GANESHA_VERSION} --recurse-submodules https://github.com/nfs-ganesha/nfs-ganesha
5654
WORKDIR /nfs-ganesha
55+
5756
RUN mkdir -p /usr/local \
5857
&& cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local \
5958
-DBUILD_CONFIG=vfs_only -DUSE_FSAL_GLUSTER=OFF -DUSE_FSAL_RGW=OFF \
60-
-DUSE_RADOS_RECOV=OFF -DRADOS_URLS=OFF -DUSE_SYSTEM_NTIRPC=ON \
59+
-DUSE_RADOS_RECOV=OFF -DRADOS_URLS=OFF -DUSE_SYSTEM_NTIRPC=OFF \
6160
-G Ninja src/ \
6261
&& sed -i 's|@SYSSTATEDIR@/lib/nfs/ganesha|/export|' src/include/config-h.in.cmake \
6362
&& ninja \
@@ -77,12 +76,12 @@ RUN microdnf install -y \
7776
jemalloc \
7877
libblkid \
7978
libnfsidmap \
80-
libntirpc \
8179
libuuid \
8280
nfs-utils \
8381
rpcbind \
8482
userspace-rcu \
8583
xfsprogs \
84+
libacl \
8685
&& microdnf clean all
8786

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

deploy/docker/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
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.5
17+
ARG GH_ORGANIZATION=kubernetes-sigs
1718

18-
19-
FROM ghcr.io/kubernetes-sigs/nfs-ganesha:${GANESHA_VERSION}
19+
FROM ghcr.io/${GH_ORGANIZATION}/nfs-ganesha:${GANESHA_VERSION}
2020

2121
ARG binary=nfs-provisioner
2222
COPY ${binary} /nfs-provisioner

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.5
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.5
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.5
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.5
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.5 \
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.5 \
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.5 \
114114
-provisioner=example.com/nfs \
115115
-kubeconfig=/.kube/config \
116116
-enable-xfs-quota=true

0 commit comments

Comments
 (0)