forked from wolfi-dev/os
-
Notifications
You must be signed in to change notification settings - Fork 0
/
kubernetes-csi-driver-hostpath.yaml
61 lines (52 loc) · 1.4 KB
/
kubernetes-csi-driver-hostpath.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
package:
name: kubernetes-csi-driver-hostpath
version: 1.15.0
epoch: 1
description: A sample (non-production) CSI Driver that creates a local directory as a volume on a single node
copyright:
- license: Apache-2.0
environment:
contents:
packages:
- build-base
- busybox
- ca-certificates-bundle
- go
pipeline:
- uses: git-checkout
with:
repository: https://github.com/kubernetes-csi/csi-driver-host-path.git
tag: v${{package.version}}
expected-commit: a785248f2709f55ed461e3da6c59d39152dace41
- uses: go/bump
with:
deps: k8s.io/[email protected] k8s.io/[email protected]
- uses: go/build
with:
packages: ./cmd/hostpathplugin
output: hostpathplugin
ldflags: -s -w -X main.version=${{package.version}}
vendor: "true"
update:
enabled: true
github:
identifier: kubernetes-csi/csi-driver-host-path
strip-prefix: v
test:
environment:
contents:
packages:
- curl
- kubernetes-csi-livenessprobe
pipeline:
- uses: test/kwok/cluster
runs: |
hostpathplugin --version
hostpathplugin --help
- runs: |
mkdir -p /csi
hostpathplugin --v=5 --endpoint="unix:///csi/csi.sock" --nodeid="node-000000" &
sleep 5
livenessprobe --csi-address /csi/csi.sock --health-port 9898 &
sleep 5
curl -Lk localhost:9898/healthz