-
Notifications
You must be signed in to change notification settings - Fork 312
/
Copy pathkubernetes-csi-driver-nfs.yaml
72 lines (66 loc) · 2.05 KB
/
kubernetes-csi-driver-nfs.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
package:
name: kubernetes-csi-driver-nfs
version: 4.10.0
epoch: 3
description: This driver allows Kubernetes to access NFS server on Linux node
copyright:
- license: Apache-2.0
dependencies:
runtime:
- coreutils
- efs-utils
- libcap
# https://github.com/kubernetes-csi/csi-driver-nfs/blob/b68ee7181160b12717c80c53667e2d33bf1edc7b/Dockerfile#L21
- mount
- umount
- util-linux-misc
pipeline:
- uses: git-checkout
with:
repository: https://github.com/kubernetes-csi/csi-driver-nfs
tag: v${{package.version}}
expected-commit: 360cff75fa82720bbcc1eaba1194215d2937e750
- uses: go/bump
with:
deps: |-
golang.org/x/oauth2@v0.27.0
golang.org/x/net@v0.36.0
- uses: go/build
with:
go-package: go
packages: ./cmd/nfsplugin
ldflags: |
-X github.com/kubernetes-csi/csi-driver-nfs/pkg/nfs.driverVersion=${{package.version}}
-X github.com/kubernetes-csi/csi-driver-nfs/pkg/nfs.gitCommit=$(git rev-parse --short=8 HEAD)
-X github.com/kubernetes-csi/csi-driver-nfs/pkg/nfs.buildDate=$(date -u -d "@${SOURCE_DATE_EPOCH:-$(date +%s)}" "+%Y-%m-%dT%H:%M:%SZ")
output: nfsplugin
subpackages:
- name: ${{package.name}}-compat
description: "Compatibility package for matching with the upstream Dockerfile"
pipeline:
- runs: |
mkdir -p "${{targets.contextdir}}"/
ln -sf /usr/bin/nfsplugin "${{targets.contextdir}}"/nfsplugin
test:
environment:
contents:
packages:
- ${{package.name}}
pipeline:
- runs: |
test "$(readlink /nfsplugin)" = "/usr/bin/nfsplugin"
/nfsplugin --help
update:
enabled: true
github:
identifier: kubernetes-csi/csi-driver-nfs
strip-prefix: v
test:
pipeline:
- runs: |
nfsplugin --help
- runs: |
mkdir -p /csi
nfsplugin -v=5 --endpoint="unix:///csi/csi.sock" --nodeid="node-000000" > output.log 2>&1 &
sleep 1
grep "Listening for connections" output.log