-
Notifications
You must be signed in to change notification settings - Fork 312
/
Copy pathkube-vip.yaml
58 lines (51 loc) · 1.4 KB
/
kube-vip.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
package:
name: kube-vip
version: "0.8.9"
epoch: 5
description: Kubernetes Control Plane Virtual IP and Load-Balancer
copyright:
- license: Apache-2.0
environment:
environment:
CGO_ENABLED: "0"
pipeline:
- uses: git-checkout
with:
expected-commit: 19e660d4a692fab29f407214b452f48d9a65425e
repository: https://github.com/kube-vip/kube-vip
tag: v${{package.version}}
- uses: go/bump
with:
deps: |-
golang.org/x/crypto@v0.35.0
golang.org/x/oauth2@v0.27.0
golang.org/x/net@v0.36.0
- uses: go/build
with:
ldflags: -X=main.Version=${{package.version}} -X=main.Build=$(git rev-parse HEAD) -extldflags -static
output: kube-vip
packages: .
subpackages:
- name: "${{package.name}}-compat"
# https://github.com/kube-vip/kube-vip/blob/2872256a89a1e39b62c9518728ec22e2f33af4eb/Dockerfile#L19
description: "Compatibility package to place binaries in the location expected by upstream Dockerfile"
pipeline:
- runs: |
mkdir -p "${{targets.subpkgdir}}"
ln -sf /usr/bin/kube-vip ${{targets.subpkgdir}}/kube-vip
update:
enabled: true
github:
identifier: kube-vip/kube-vip
strip-prefix: v
test:
environment:
contents:
packages:
- ${{package.name}}-compat
pipeline:
- runs: |
kube-vip -h
/kube-vip -h
kube-vip version
kube-vip --help