Skip to content

Commit 335d84b

Browse files
add tigera/operator
Signed-off-by: Batuhan Apaydin <[email protected]> Co-authored-by: Furkan Turkal <[email protected]>
1 parent a990edc commit 335d84b

File tree

2 files changed

+49
-0
lines changed

2 files changed

+49
-0
lines changed

packages.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -708,6 +708,7 @@ kaniko
708708
flux-image-automation-controller
709709
openai
710710
haproxy-ingress
711+
tigera-operator
711712
newrelic-prometheus-configurator
712713
prometheus-nats-exporter
713714
docker-credential-gcr

tigera-operator.yaml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
package:
2+
name: tigera-operator
3+
version: 1.30.2
4+
epoch: 0
5+
description: Kubernetes operator for installing Calico and Calico Enterprise
6+
copyright:
7+
- license: Apache-2.0
8+
9+
environment:
10+
contents:
11+
packages:
12+
- busybox
13+
- ca-certificates-bundle
14+
- build-base
15+
- go
16+
- git
17+
- openssh
18+
19+
pipeline:
20+
- uses: git-checkout
21+
with:
22+
repository: https://github.com/tigera/operator
23+
tag: v${{package.version}}
24+
expected-commit: 708b1141a692ddb03a46d7726f9c920c195f50d9
25+
26+
- runs: |
27+
PACKAGE_NAME=github.com/tigera/operator
28+
ARCH=$(go env GOARCH)
29+
BINDIR=build/_output/bin
30+
GIT_VERSION=$(git describe --tags --dirty --always --abbrev=12)
31+
if [ "${ARCH}" = "amd64" ]; then
32+
CGO_ENABLED=1
33+
GOEXPERIMENT=boringcrypto
34+
TAGS="osusergo,netgo"
35+
else
36+
CGO_ENABLED=0
37+
fi
38+
echo "Building operator for ${ARCH} with CGO_ENABLED=${CGO_ENABLED} GOEXPERIMENT=${GOEXPERIMENT} TAGS=${TAGS}"
39+
GOEXPERIMENT=${GOEXPERIMENT} GO111MODULE=on CGO_ENABLED=${CGO_ENABLED} go build -buildvcs=false -v -o ${BINDIR}/operator-${ARCH} -tags "${TAGS}" -ldflags "-X ${PACKAGE_NAME}/version.VERSION=${GIT_VERSION} -s -w" ./main.go
40+
install -Dm755 build/_output/bin/operator-$(go env GOARCH) "${{targets.destdir}}"/usr/bin/operator
41+
42+
update:
43+
enabled: true
44+
github:
45+
identifier: tigera/operator
46+
use-tag: true
47+
strip-prefix: v
48+
tag-filter: v

0 commit comments

Comments
 (0)