-
Notifications
You must be signed in to change notification settings - Fork 290
/
Copy pathistio-pilot-discovery-1.20.yaml
64 lines (58 loc) · 1.81 KB
/
istio-pilot-discovery-1.20.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
package:
name: istio-pilot-discovery-1.20
version: 1.20.3
epoch: 0
description: Istio controller
copyright:
- license: Apache-2.0
dependencies:
provides:
- istio-pilot-discovery=1.20
environment:
contents:
packages:
- busybox
- ca-certificates-bundle
- go
environment:
CGO_ENABLED: "0"
pipeline:
- uses: git-checkout
with:
repository: https://github.com/istio/istio
tag: ${{package.version}}
expected-commit: 692e556046b48ebc471205211c68a2c69e74a321
- uses: go/build
with:
packages: ./pilot/cmd/pilot-discovery
output: pilot-discovery
# istio default ldflags: https://github.com/istio/istio/blob/master/Makefile.core.mk#L210
ldflags: "-extldflags -static -s -w"
# istio default stanard tags: https://github.com/istio/istio/blob/master/Makefile.core.mk#L242
tags: "disable_pgv,vtprotobuf"
- runs: |
mkdir -p ${{targets.destdir}}/var/lib/istio/envoy
cp ./tools/packaging/common/envoy_bootstrap.json \
${{targets.destdir}}/var/lib/istio/envoy/envoy_bootstrap_tmpl.json
cp ./tools/packaging/common/gcp_envoy_bootstrap.json \
${{targets.destdir}}/var/lib/istio/envoy/gcp_envoy_bootstrap_tmpl.json
subpackages:
- name: ${{package.name}}-compat
pipeline:
- runs: |
# link /usr/local/bin/pilot-discovery -> /usr/bin/pilot-discovery to match
# what the Istio Helm charts may expect.
mkdir -p ${{targets.subpkgdir}}/usr/local/bin
ln -sf /usr/bin/pilot-discovery ${{targets.subpkgdir}}/usr/local/bin/pilot-discovery
dependencies:
provides:
- istio-discovery-compat=1.20
update:
enabled: true
ignore-regex-patterns:
- "-rc"
- "-beta"
github:
identifier: istio/istio
tag-filter-prefix: 1.20.
use-tag: true