Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages.txt
Original file line number Diff line number Diff line change
Expand Up @@ -708,6 +708,7 @@ kaniko
flux-image-automation-controller
openai
haproxy-ingress
tigera-operator
newrelic-prometheus-configurator
prometheus-nats-exporter
docker-credential-gcr
Expand Down
47 changes: 47 additions & 0 deletions tigera-operator.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
package:
name: tigera-operator
version: 1.30.2
epoch: 0
description: Kubernetes operator for installing Calico and Calico Enterprise
copyright:
- license: Apache-2.0

environment:
contents:
packages:
- busybox
- ca-certificates-bundle
- build-base
- go
- git

pipeline:
- uses: git-checkout
with:
repository: https://github.com/tigera/operator
tag: v${{package.version}}
expected-commit: 708b1141a692ddb03a46d7726f9c920c195f50d9

- runs: |
PACKAGE_NAME=github.com/tigera/operator
ARCH=$(go env GOARCH)
BINDIR=build/_output/bin
GIT_VERSION=$(git describe --tags --dirty --always --abbrev=12)
if [ "${ARCH}" = "amd64" ]; then
CGO_ENABLED=1
GOEXPERIMENT=boringcrypto
TAGS="osusergo,netgo"
else
CGO_ENABLED=0
fi
echo "Building operator for ${ARCH} with CGO_ENABLED=${CGO_ENABLED} GOEXPERIMENT=${GOEXPERIMENT} TAGS=${TAGS}"
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
install -Dm755 build/_output/bin/operator-$(go env GOARCH) "${{targets.destdir}}"/usr/bin/operator

update:
enabled: true
github:
identifier: tigera/operator
use-tag: true
strip-prefix: v
tag-filter: v