diff --git a/packages.txt b/packages.txt index 39add453bbe..0b4b5c1f51b 100644 --- a/packages.txt +++ b/packages.txt @@ -708,6 +708,7 @@ kaniko flux-image-automation-controller openai haproxy-ingress +tigera-operator newrelic-prometheus-configurator prometheus-nats-exporter docker-credential-gcr diff --git a/tigera-operator.yaml b/tigera-operator.yaml new file mode 100644 index 00000000000..ae82577f392 --- /dev/null +++ b/tigera-operator.yaml @@ -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