From 04aca76e18c5ea74e36105a6025c994fa3f86c4b Mon Sep 17 00:00:00 2001 From: Batuhan Apaydin Date: Fri, 9 Jun 2023 01:36:21 +0300 Subject: [PATCH] add thanos-operator Signed-off-by: Batuhan Apaydin Co-authored-by: Furkan Turkal Signed-off-by: Batuhan Apaydin --- haproxy-ingress.yaml | 2 +- packages.txt | 1 + thanos-operator.yaml | 52 ++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 54 insertions(+), 1 deletion(-) create mode 100644 thanos-operator.yaml diff --git a/haproxy-ingress.yaml b/haproxy-ingress.yaml index 35ec29ef087..1e5882c516b 100644 --- a/haproxy-ingress.yaml +++ b/haproxy-ingress.yaml @@ -49,7 +49,7 @@ subpackages: description: "Compatibility package to place binaries in the location expected by upstream start.sh script" pipeline: - runs: | - # The helm chart expects the kiam binaries to be in / instead of /usr/bin + # The helm chart expects the haproxy-ingress-compat binaries to be in / instead of /usr/bin mkdir -p "${{targets.subpkgdir}}" ln -sf /usr/bin/haproxy-ingress-controller ${{targets.subpkgdir}}/haproxy-ingress-controller diff --git a/packages.txt b/packages.txt index f0b7366fde2..bb2ae357ecb 100644 --- a/packages.txt +++ b/packages.txt @@ -742,6 +742,7 @@ lua-cjson lmdb libsrt yajl +thanos-operator crun modsecurity ingress-nginx diff --git a/thanos-operator.yaml b/thanos-operator.yaml new file mode 100644 index 00000000000..10ae26a7351 --- /dev/null +++ b/thanos-operator.yaml @@ -0,0 +1,52 @@ +package: + name: thanos-operator + version: 0.3.7 + epoch: 0 + description: Kubernetes operator for deploying Thanos + copyright: + - license: Apache-2.0 + +environment: + contents: + packages: + - busybox + - ca-certificates-bundle + - go + +pipeline: + - uses: git-checkout + with: + repository: https://github.com/banzaicloud/thanos-operator + tag: ${{package.version}} + expected-commit: 7b87b4f89dee6454ae46e9579b9a98d6d7a5e550 + + - runs: | + # Address CVE-2022-21698 GHSA-69ch-w2m2-3vjp GHSA-69cg-p879-7622 + go get github.com/prometheus/client_golang@v1.11.1 + go get golang.org/x/text@v0.3.8 + go get golang.org/x/net@v0.7.0 + + go mod tidy + + go build -o bin/manager main.go + mkdir -p ${{targets.destdir}}/usr/bin + install -Dm755 ./bin/manager ${{targets.destdir}}/usr/bin/manager + + - uses: strip + +subpackages: + - name: "thanos-operator-compat" + description: "Compatibility package to place binaries in the location expected by upstream helm charts" + pipeline: + - runs: | + # The helm chart expects the thanos-operator binaries to be in / instead of /usr/bin + mkdir -p "${{targets.subpkgdir}}" + ln -sf /usr/bin/manager ${{targets.subpkgdir}}/manager + - uses: strip + +update: + enabled: true + ignore-regex-patterns: + - "pkg/sdk/*" + github: + identifier: banzaicloud/thanos-operator