From fc8cc878bbc412ac0946c066206599a14dfefbb6 Mon Sep 17 00:00:00 2001 From: Kazuki Suda Date: Sun, 8 Feb 2026 15:37:38 +0900 Subject: [PATCH 1/2] Move away from Bazel --- .bazelrc | 7 - .bazelversion | 1 - .dockerignore | 5 + .github/workflows/check.yaml | 18 +- .github/workflows/release.yaml | 16 +- .gitignore | 5 +- .golangci.yaml | 70 + .golangci.yml | 58 - BUILD | 4 - Dockerfile | 66 + Makefile | 46 +- README.md | 18 +- WORKSPACE | 89 - cmd/sciuro/BUILD.bazel | 54 - gazelle.bzl | 1625 ------------------- internal/alert/BUILD.bazel | 39 - internal/node/BUILD.bazel | 45 - k8s_rules.patch | 14 - manifests/BUILD.bazel | 22 - manifests/namespaced/BUILD.bazel | 43 - manifests/namespaced/deployment.yaml | 2 +- manifests/namespaced/kustomization.yaml | 9 + manifests/non-namespaced/BUILD.bazel | 25 - manifests/non-namespaced/kustomization.yaml | 6 + tools/bazel | 75 - tools/ci.bazelrc | 9 - tools/print-workspace-status | 3 - 27 files changed, 205 insertions(+), 2169 deletions(-) delete mode 100644 .bazelrc delete mode 100644 .bazelversion create mode 100644 .dockerignore create mode 100644 .golangci.yaml delete mode 100644 .golangci.yml delete mode 100644 BUILD create mode 100644 Dockerfile delete mode 100644 WORKSPACE delete mode 100644 cmd/sciuro/BUILD.bazel delete mode 100644 gazelle.bzl delete mode 100644 internal/alert/BUILD.bazel delete mode 100644 internal/node/BUILD.bazel delete mode 100644 k8s_rules.patch delete mode 100644 manifests/BUILD.bazel delete mode 100644 manifests/namespaced/BUILD.bazel create mode 100644 manifests/namespaced/kustomization.yaml delete mode 100644 manifests/non-namespaced/BUILD.bazel create mode 100644 manifests/non-namespaced/kustomization.yaml delete mode 100755 tools/bazel delete mode 100644 tools/ci.bazelrc delete mode 100755 tools/print-workspace-status diff --git a/.bazelrc b/.bazelrc deleted file mode 100644 index 446b159..0000000 --- a/.bazelrc +++ /dev/null @@ -1,7 +0,0 @@ -run --workspace_status_command="./tools/print-workspace-status" - -build --define repo=changeme --define namespace=node-remediation -test --define repo=changeme --define namespace=node-remediation -run --define repo=changeme --define namespace=node-remediation - -try-import %workspace%/user.bazelrc diff --git a/.bazelversion b/.bazelversion deleted file mode 100644 index 1e20ec3..0000000 --- a/.bazelversion +++ /dev/null @@ -1 +0,0 @@ -5.4.0 \ No newline at end of file diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..c444777 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,5 @@ +*.md +Makefile +/img +/out +Dockerfile diff --git a/.github/workflows/check.yaml b/.github/workflows/check.yaml index 7dce44b..008d9ce 100644 --- a/.github/workflows/check.yaml +++ b/.github/workflows/check.yaml @@ -9,26 +9,14 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - uses: bazel-contrib/setup-bazel@0.14.0 - with: - bazelisk-cache: true - repository-cache: true - - run: bazel --bazelrc=tools/ci.bazelrc build //... + - run: make build lint: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: actions/setup-go@v5 - with: - go-version: stable - - name: golangci-lint - uses: golangci/golangci-lint-action@v6 + - run: make check test: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - uses: bazel-contrib/setup-bazel@0.14.0 - with: - bazelisk-cache: true - repository-cache: true - - run: bazel --bazelrc=tools/ci.bazelrc test //... + - run: make test diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 9156821..263ac55 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -17,17 +17,15 @@ jobs: fetch-depth: 0 - run: | git fetch --tags --force - - uses: bazel-contrib/setup-bazel@0.14.0 - with: - bazelisk-cache: true - repository-cache: true - - run: bazel --bazelrc=tools/ci.bazelrc run //manifests:stable > stable.yaml - - run: bazel --bazelrc=tools/ci.bazelrc run //manifests:cluster > cluster.yaml - - name: Release + - run: make build + - run: make manifests + - name: Push image + run: make push + - name: Release manifests uses: softprops/action-gh-release@v1 with: files: | - stable.yaml - cluster.yaml + out/stable.yaml + out/cluster.yaml env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.gitignore b/.gitignore index 7aa7ab9..e2e7327 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1 @@ -cmd/sciuro/sciuro -vendor -build -/bazel* +/out diff --git a/.golangci.yaml b/.golangci.yaml new file mode 100644 index 0000000..d4e4e6b --- /dev/null +++ b/.golangci.yaml @@ -0,0 +1,70 @@ +version: "2" +run: + modules-download-mode: readonly +linters: + enable: + - bodyclose + - contextcheck + - copyloopvar + - decorder + - dogsled + - errorlint + - gochecknoinits + - goconst + - gocritic + - godox + - goprintffuncname + - gosec + - misspell + - nakedret + - prealloc + - revive + - staticcheck + - unconvert + - unparam + settings: + gocritic: + disabled-checks: + - commentFormatting + - exitAfterDefer + - hugeParam + - ifElseChain + - rangeValCopy + - unnecessaryBlock + enabled-tags: + - diagnostic + - experimental + - opinionated + - performance + - style + godox: + keywords: + - HACK + - XXX + misspell: + locale: US + ignore-rules: + - clas + exclusions: + generated: lax + presets: + - comments + - common-false-positives + - legacy + - std-error-handling + paths: + - third_party$ + - builtin$ + - examples$ +formatters: + enable: + - goimports + settings: + gofmt: + simplify: true + exclusions: + generated: lax + paths: + - third_party$ + - builtin$ + - examples$ diff --git a/.golangci.yml b/.golangci.yml deleted file mode 100644 index 2a9bf8c..0000000 --- a/.golangci.yml +++ /dev/null @@ -1,58 +0,0 @@ -run: - timeout: 5m - modules-download-mode: readonly - -linters: - enable: - - bodyclose - - contextcheck - - copyloopvar - - decorder - - dogsled - - errcheck - - errorlint - - gochecknoinits - - goconst - - gocritic - - godox - - goimports - - goprintffuncname - - gosec - - gosimple - - govet - - ineffassign - - misspell - - nakedret - - prealloc - - revive - - staticcheck - - stylecheck - - typecheck - - unconvert - - unparam - - unused -linters-settings: - gocritic: - enabled-tags: - - diagnostic - - experimental - - opinionated - - performance - - style - disabled-checks: - - commentFormatting - - exitAfterDefer - - hugeParam - - ifElseChain - - rangeValCopy - - unnecessaryBlock - gofmt: - simplify: true - misspell: - locale: US - ignore-words: - - clas - godox: - keywords: - - HACK - - XXX diff --git a/BUILD b/BUILD deleted file mode 100644 index 868b1f0..0000000 --- a/BUILD +++ /dev/null @@ -1,4 +0,0 @@ -load("@bazel_gazelle//:def.bzl", "gazelle") - -# gazelle:prefix github.com/cloudflare/sciuro -gazelle(name = "gazelle") diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..f1c19f3 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,66 @@ +# https://hub.docker.com/layers/library/alpine/3.18.3/images/sha256-c5c5fda71656f28e49ac9c5416b3643eaa6a108a8093151d6d1afc9463be8e33 +FROM docker.io/alpine@sha256:c5c5fda71656f28e49ac9c5416b3643eaa6a108a8093151d6d1afc9463be8e33 AS alpine-base + +FROM docker.io/golang:1.23.0 AS base +WORKDIR /work +COPY go.mod go.sum ./ +RUN go mod download +COPY . . + +FROM base AS test +RUN --mount=type=cache,target=/root/.cache/go-build \ + go test ./... + +FROM base AS test-coverage +RUN --mount=type=cache,target=/root/.cache/go-build \ + go test -coverprofile=/coverage.txt -mod=readonly -covermode=atomic ./... + +FROM scratch AS export-test-coverage +COPY --from=test-coverage /coverage.txt / + +FROM docker.io/golangci/golangci-lint:v2.8.0 AS golangci-lint +FROM base AS check +COPY --from=golangci-lint /usr/bin/golangci-lint /usr/bin/ +RUN --mount=type=cache,target=/root/.cache/go-build \ + --mount=type=cache,target=/go/pkg/mod \ + --mount=type=cache,target=/root/.cache/golangci-lint \ + golangci-lint run ./... + +FROM base AS dep-update +RUN --mount=type=cache,target=/root/.cache/go-build \ + --mount=type=cache,target=/go/pkg/mod \ + set -x && \ + go get -u ./... && \ + go mod tidy + +FROM scratch AS export-dep-update +COPY --from=dep-update /work/go.mod /work/go.sum / + +FROM registry.k8s.io/kustomize/kustomize:v5.8.0 AS kustomize +FROM alpine-base AS build-manifests +ARG TAG +COPY --from=kustomize /app/kustomize /usr/local/bin/ +WORKDIR /work +COPY manifests ./manifests +RUN set -x && \ + cd manifests/namespaced && \ + kustomize edit set image docker.io/cloudflare/sciuro:${TAG} && \ + kustomize build >/stable.yaml +RUN set -x && \ + cd manifests/non-namespaced && \ + kustomize build >/cluster.yaml + +FROM scratch AS export-manifests +COPY --from=build-manifests /stable.yaml /cluster.yaml / + +FROM base AS build +RUN --mount=type=cache,target=/root/.cache/go-build \ + --mount=type=cache,target=/go/pkg/mod \ + CGO_ENABLED=0 go build -o /sciuro cmd/sciuro/main.go + +FROM scratch AS export +COPY --from=build /sciuro / + +FROM alpine-base +COPY --from=build /sciuro / +ENTRYPOINT ["/sciuro"] diff --git a/Makefile b/Makefile index 5edc8db..4afb8d2 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,8 @@ -PROJECT = sciuro -MODULE = github.com/cloudflare/$(PROJECT) +TAG := $(shell git describe --tags --always --dirty) +IMG ?= docker.io/cloudflare/sciuro:$(TAG) + +DOCKER_BUILD ?= docker build --progress=plain +OUTPUT_DIR ?= out .PHONY: default default: build; @@ -7,41 +10,40 @@ default: build; .PHONY: clean clean: @echo cleaning build targets - @rm -rf bin coverage.txt - -.PHONY: clean-bazel -clean-bazel: - @echo cleaning bazel build targets - @./tools/bazel clean + @rm -rf $(OUTPUT_DIR) .PHONY: check check: @echo running checks - # TODO: Not well incorporated into bazel - @golangcilint run ./... - -.PHONY: dep-fix -dep-fix: - @echo fixing dependencies - @./tools/bazel run //:gazelle -- fix + @$(DOCKER_BUILD) --target check . .PHONY: dep-update -dep-update: go.sum +dep-update: @echo updating dependencies - @go mod tidy - @./tools/bazel run //:gazelle -- update-repos -from_file=go.mod -prune=true -to_macro=gazelle.bzl%deps + @$(DOCKER_BUILD) --target export-dep-update --output . . .PHONY: test test: - @echo unit testing with Bazel - @./tools/bazel test //... + @echo unit testing + $(DOCKER_BUILD) --target test . .PHONY: test-coverage test-coverage: @echo unit testing with coverage - @go test -coverprofile=coverage.txt -mod=readonly -covermode=atomic $(MODULE)/... + $(DOCKER_BUILD) --target export-test-coverage --output $(OUTPUT_DIR) . .PHONY: build build: @echo building cmds and images - @./tools/bazel build //cmd/... + @$(DOCKER_BUILD) --target export --output $(OUTPUT_DIR) . + @$(DOCKER_BUILD) -t $(IMG) . + +.PHONY: manifests +manifests: + @echo generating manifests + @$(DOCKER_BUILD) --build-arg TAG=$(TAG) --target export-manifests --output $(OUTPUT_DIR) . + +.PHONY: push +push: + @echo pushing images + @docker push $(IMG) diff --git a/README.md b/README.md index c1c69eb..c6f119e 100644 --- a/README.md +++ b/README.md @@ -190,14 +190,22 @@ $ kubectl get node worker01 -o json | jq '.status.conditions[] | select(.type | ``` # Building -Sciuro is built and tested with [bazel](https://bazel.build/). To run tests: +To run tests: ``` make test ``` -To build and push images, define the docker repository base with the run of the -manifests targets: +To build images: ``` -bazel run --define repo=quay.io/myrepo //manifests:cluster > /tmp/cluster.yaml -bazel run --define repo=quay.io/myrepo //manifests:stable > /tmp/stable.yaml +make build +``` + +To push images: +``` +make push +``` + +To generate manifests: +``` +make manifests ``` diff --git a/WORKSPACE b/WORKSPACE deleted file mode 100644 index 80b9f73..0000000 --- a/WORKSPACE +++ /dev/null @@ -1,89 +0,0 @@ -load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository") -load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") - -http_archive( - name = "io_bazel_rules_go", - sha256 = "d93ef02f1e72c82d8bb3d5169519b36167b33cf68c252525e3b9d3d5dd143de7", - urls = [ - "https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.49.0/rules_go-v0.49.0.zip", - "https://github.com/bazelbuild/rules_go/releases/download/v0.49.0/rules_go-v0.49.0.zip", - ], -) - -http_archive( - name = "bazel_gazelle", - integrity = "sha256-12v3pg/YsFBEQJDfooN6Tq+YKeEWVhjuNdzspcvfWNU=", - urls = [ - "https://mirror.bazel.build/github.com/bazelbuild/bazel-gazelle/releases/download/v0.37.0/bazel-gazelle-v0.37.0.tar.gz", - "https://github.com/bazelbuild/bazel-gazelle/releases/download/v0.37.0/bazel-gazelle-v0.37.0.tar.gz", - ], -) - -http_archive( - name = "io_bazel_rules_docker", - sha256 = "b1e80761a8a8243d03ebca8845e9cc1ba6c82ce7c5179ce2b295cd36f7e394bf", - urls = ["https://github.com/bazelbuild/rules_docker/releases/download/v0.25.0/rules_docker-v0.25.0.tar.gz"], -) - -http_archive( - name = "io_bazel_rules_k8s", - patch_args = ["-p1"], - patches = ["//:k8s_rules.patch"], - sha256 = "ce5b9bc0926681e2e7f2147b49096f143e6cbc783e71bc1d4f36ca76b00e6f4a", - strip_prefix = "rules_k8s-0.7", - urls = ["https://github.com/bazelbuild/rules_k8s/archive/refs/tags/v0.7.tar.gz"], -) - -load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies") - -go_rules_dependencies() - -go_register_toolchains(version = "1.23.5") - -load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies") -load("//:gazelle.bzl", "deps") - -gazelle_dependencies() - -# gazelle:repository_macro gazelle.bzl%deps -deps() - -load( - "@io_bazel_rules_docker//repositories:repositories.bzl", - container_repositories = "repositories", -) - -container_repositories() - -load( - "@io_bazel_rules_docker//go:image.bzl", - _go_image_repos = "repositories", -) - -_go_image_repos() - -load("@io_bazel_rules_docker//repositories:deps.bzl", container_deps = "deps") - -container_deps() - -load( - "@io_bazel_rules_docker//container:container.bzl", - "container_pull", -) - -# https://hub.docker.com/layers/library/alpine/3.18.3/images/sha256-c5c5fda71656f28e49ac9c5416b3643eaa6a108a8093151d6d1afc9463be8e33 -container_pull( - name = "alpinebase", - digest = "sha256:c5c5fda71656f28e49ac9c5416b3643eaa6a108a8093151d6d1afc9463be8e33", - registry = "docker.io", - repository = "alpine", -) - -load("@io_bazel_rules_k8s//k8s:k8s.bzl", "k8s_defaults", "k8s_repositories") - -k8s_repositories() - -k8s_defaults( - name = "k8s_deploy", - image_chroot = "$(repo)", -) diff --git a/cmd/sciuro/BUILD.bazel b/cmd/sciuro/BUILD.bazel deleted file mode 100644 index 11492cb..0000000 --- a/cmd/sciuro/BUILD.bazel +++ /dev/null @@ -1,54 +0,0 @@ -load("@io_bazel_rules_docker//go:image.bzl", "go_image") -load("@io_bazel_rules_go//go:def.bzl", "go_library") - -go_library( - name = "sciuro", - srcs = ["main.go"], - importpath = "github.com/cloudflare/sciuro/cmd/sciuro", - visibility = ["//visibility:private"], - deps = [ - "//internal/alert", - "//internal/node", - "@com_github_caarlos0_env_v9//:env", - "@com_github_prometheus_alertmanager//cli", - "@io_k8s_api//core/v1:core", - "@io_k8s_sigs_controller_runtime//pkg/client/config", - "@io_k8s_sigs_controller_runtime//pkg/controller", - "@io_k8s_sigs_controller_runtime//pkg/handler", - "@io_k8s_sigs_controller_runtime//pkg/log", - "@io_k8s_sigs_controller_runtime//pkg/log/zap", - "@io_k8s_sigs_controller_runtime//pkg/manager", - "@io_k8s_sigs_controller_runtime//pkg/manager/signals", - "@io_k8s_sigs_controller_runtime//pkg/metrics", - "@io_k8s_sigs_controller_runtime//pkg/source", - ], -) - -go_image( - name = "image", - embed = [":sciuro"], - pure = "on", - visibility = ["//visibility:public"], -) - -go_library( - name = "sciuro_lib", - srcs = ["main.go"], - importpath = "github.com/cloudflare/sciuro/cmd/sciuro", - visibility = ["//visibility:private"], - deps = [ - "//internal/alert", - "//internal/node", - "@com_github_caarlos0_env_v9//:env", - "@io_k8s_api//core/v1:core", - "@io_k8s_sigs_controller_runtime//pkg/client/config", - "@io_k8s_sigs_controller_runtime//pkg/controller", - "@io_k8s_sigs_controller_runtime//pkg/handler", - "@io_k8s_sigs_controller_runtime//pkg/log", - "@io_k8s_sigs_controller_runtime//pkg/log/zap", - "@io_k8s_sigs_controller_runtime//pkg/manager", - "@io_k8s_sigs_controller_runtime//pkg/manager/signals", - "@io_k8s_sigs_controller_runtime//pkg/metrics", - "@io_k8s_sigs_controller_runtime//pkg/source", - ], -) diff --git a/gazelle.bzl b/gazelle.bzl deleted file mode 100644 index 800ed24..0000000 --- a/gazelle.bzl +++ /dev/null @@ -1,1625 +0,0 @@ -load("@bazel_gazelle//:deps.bzl", "go_repository") - -def deps(): - go_repository( - name = "co_honnef_go_tools", - importpath = "honnef.co/go/tools", - sum = "h1:UoveltGrhghAA7ePc+e+QYDHXrBps2PqFZiHkGR/xK8=", - version = "v0.0.1-2020.1.4", - ) - go_repository( - name = "com_github_alecthomas_kingpin_v2", - importpath = "github.com/alecthomas/kingpin/v2", - sum = "h1:f48lwail6p8zpO1bC4TxtqACaGqHYA22qkHjHpqDjYY=", - version = "v2.4.0", - ) - go_repository( - name = "com_github_alecthomas_template", - importpath = "github.com/alecthomas/template", - sum = "h1:JYp7IbQjafoB+tBA3gMyHYHrpOtNuDiK/uB5uXxq5wM=", - version = "v0.0.0-20190718012654-fb15b899a751", - ) - go_repository( - name = "com_github_alecthomas_units", - importpath = "github.com/alecthomas/units", - sum = "h1:mimo19zliBX/vSQ6PWWSL9lK8qwHozUj03+zLoEB8O0=", - version = "v0.0.0-20240927000941-0f3dac36c52b", - ) - go_repository( - name = "com_github_antlr4_go_antlr_v4", - importpath = "github.com/antlr4-go/antlr/v4", - sum = "h1:SqQKkuVZ+zWkMMNkjy5FZe5mr5WURWnlpmOuzYWrPrQ=", - version = "v4.13.1", - ) - go_repository( - name = "com_github_armon_go_metrics", - importpath = "github.com/armon/go-metrics", - sum = "h1:hR91U9KYmb6bLBYLQjyM+3j+rcd/UhE+G78SFnF8gJA=", - version = "v0.4.1", - ) - go_repository( - name = "com_github_armon_go_radix", - importpath = "github.com/armon/go-radix", - sum = "h1:BUAU3CGlLvorLI26FmByPp2eC2qla6E1Tw+scpcg/to=", - version = "v0.0.0-20180808171621-7fddfc383310", - ) - go_repository( - name = "com_github_armon_go_socks5", - importpath = "github.com/armon/go-socks5", - sum = "h1:0CwZNZbxp69SHPdPJAN/hZIm0C4OItdklCFmMRWYpio=", - version = "v0.0.0-20160902184237-e75332964ef5", - ) - go_repository( - name = "com_github_asaskevich_govalidator", - importpath = "github.com/asaskevich/govalidator", - sum = "h1:DklsrG3dyBCFEj5IhUbnKptjxatkF07cF2ak3yi77so=", - version = "v0.0.0-20230301143203-a9d515a09cc2", - ) - go_repository( - name = "com_github_aws_aws_sdk_go", - importpath = "github.com/aws/aws-sdk-go", - sum = "h1:cSg4pvZ3m8dgYcgqB97MrcdjUmZ1BeMYKUxMMB89IPk=", - version = "v1.55.6", - ) - go_repository( - name = "com_github_beorn7_perks", - importpath = "github.com/beorn7/perks", - sum = "h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM=", - version = "v1.0.1", - ) - go_repository( - name = "com_github_bgentry_speakeasy", - importpath = "github.com/bgentry/speakeasy", - sum = "h1:ByYyxL9InA1OWqxJqqp2A5pYHUrCiAL6K3J+LKSsQkY=", - version = "v0.1.0", - ) - go_repository( - name = "com_github_blang_semver_v4", - importpath = "github.com/blang/semver/v4", - sum = "h1:1PFHFE6yCCTv8C1TeyNNarDzntLi7wMI5i/pzqYIsAM=", - version = "v4.0.0", - ) - go_repository( - name = "com_github_burntsushi_toml", - importpath = "github.com/BurntSushi/toml", - sum = "h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ=", - version = "v0.3.1", - ) - go_repository( - name = "com_github_burntsushi_xgb", - importpath = "github.com/BurntSushi/xgb", - sum = "h1:1BDTz0u9nC3//pOCMdNH+CiXJVYJh5UQNCOBG7jbELc=", - version = "v0.0.0-20160522181843-27f122750802", - ) - go_repository( - name = "com_github_caarlos0_env_v9", - importpath = "github.com/caarlos0/env/v9", - sum = "h1:SI6JNsOA+y5gj9njpgybykATIylrRMklbs5ch6wO6pc=", - version = "v9.0.0", - ) - go_repository( - name = "com_github_cenkalti_backoff_v4", - importpath = "github.com/cenkalti/backoff/v4", - sum = "h1:MyRJ/UdXutAwSAT+s3wNd7MfTIcy71VQueUuFK343L8=", - version = "v4.3.0", - ) - go_repository( - name = "com_github_census_instrumentation_opencensus_proto", - importpath = "github.com/census-instrumentation/opencensus-proto", - sum = "h1:glEXhBS5PSLLv4IXzLA5yPRVX4bilULVyxxbrfOtDAk=", - version = "v0.2.1", - ) - go_repository( - name = "com_github_cespare_xxhash_v2", - importpath = "github.com/cespare/xxhash/v2", - sum = "h1:UL815xU9SqsFlibzuggzjXhog7bL6oX9BbNZnL2UFvs=", - version = "v2.3.0", - ) - go_repository( - name = "com_github_chzyer_logex", - importpath = "github.com/chzyer/logex", - sum = "h1:Swpa1K6QvQznwJRcfTfQJmTE72DqScAa40E+fbHEXEE=", - version = "v1.1.10", - ) - go_repository( - name = "com_github_chzyer_readline", - importpath = "github.com/chzyer/readline", - sum = "h1:fY5BOSpyZCqRo5OhCuC+XN+r/bBCmeuuJtjz+bCNIf8=", - version = "v0.0.0-20180603132655-2972be24d48e", - ) - go_repository( - name = "com_github_chzyer_test", - importpath = "github.com/chzyer/test", - sum = "h1:q763qf9huN11kDQavWsoZXJNW3xEE4JJyHa5Q25/sd8=", - version = "v0.0.0-20180213035817-a1ea475d72b1", - ) - go_repository( - name = "com_github_circonus_labs_circonus_gometrics", - importpath = "github.com/circonus-labs/circonus-gometrics", - sum = "h1:C29Ae4G5GtYyYMm1aztcyj/J5ckgJm2zwdDajFbx1NY=", - version = "v2.3.1+incompatible", - ) - go_repository( - name = "com_github_circonus_labs_circonusllhist", - importpath = "github.com/circonus-labs/circonusllhist", - sum = "h1:TJH+oke8D16535+jHExHj4nQvzlZrj7ug5D7I/orNUA=", - version = "v0.1.3", - ) - go_repository( - name = "com_github_client9_misspell", - importpath = "github.com/client9/misspell", - sum = "h1:ta993UF76GwbvJcIo3Y68y/M3WxlpEHPWIGDkJYwzJI=", - version = "v0.3.4", - ) - go_repository( - name = "com_github_cncf_udpa_go", - importpath = "github.com/cncf/udpa/go", - sum = "h1:WBZRG4aNOuI15bLRrCgN8fCq8E5Xuty6jGbmSNEvSsU=", - version = "v0.0.0-20191209042840-269d4d468f6f", - ) - go_repository( - name = "com_github_coder_quartz", - importpath = "github.com/coder/quartz", - sum = "h1:hA2nI8uUA2fNN9uhXv2I4xZD4aHkA7oH3g2t03v4xf8=", - version = "v0.1.3", - ) - go_repository( - name = "com_github_coreos_go_systemd_v22", - importpath = "github.com/coreos/go-systemd/v22", - sum = "h1:RrqgGjYQKalulkV8NGVIfkXQf6YYmOyiJKk8iXXhfZs=", - version = "v22.5.0", - ) - go_repository( - name = "com_github_datadog_datadog_go", - importpath = "github.com/DataDog/datadog-go", - sum = "h1:qSG2N4FghB1He/r2mFrWKCaL7dXCilEuNEeAn20fdD4=", - version = "v3.2.0+incompatible", - ) - go_repository( - name = "com_github_datadog_zstd", - importpath = "github.com/DataDog/zstd", - sum = "h1:vUG4lAyuPCXO0TLbXvPv7EB7cNK1QV/luu55UHLrrn8=", - version = "v1.5.2", - ) - go_repository( - name = "com_github_davecgh_go_spew", - importpath = "github.com/davecgh/go-spew", - sum = "h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM=", - version = "v1.1.2-0.20180830191138-d8f796af33cc", - ) - go_repository( - name = "com_github_davecgh_go_xdr", - importpath = "github.com/davecgh/go-xdr", - sum = "h1:qg9VbHo1TlL0KDM0vYvBG9EY0X0Yku5WYIPoFWt8f6o=", - version = "v0.0.0-20161123171359-e6a2ba005892", - ) - go_repository( - name = "com_github_docker_go_units", - importpath = "github.com/docker/go-units", - sum = "h1:69rxXcBk27SvSaaxTtLh/8llcHD8vYHT7WSdRZ/jvr4=", - version = "v0.5.0", - ) - go_repository( - name = "com_github_emersion_go_sasl", - importpath = "github.com/emersion/go-sasl", - sum = "h1:OJyUGMJTzHTd1XQp98QTaHernxMYzRaOasRir9hUlFQ=", - version = "v0.0.0-20200509203442-7bfe0ed36a21", - ) - go_repository( - name = "com_github_emersion_go_smtp", - importpath = "github.com/emersion/go-smtp", - sum = "h1:7uVwagE8iPYE48WhNsng3RRpCUpFvNl39JGNSIyGVMY=", - version = "v0.21.3", - ) - go_repository( - name = "com_github_emicklei_go_restful_v3", - importpath = "github.com/emicklei/go-restful/v3", - sum = "h1:PJMDIM/ak7btuL8Ex0iYET9hxM3CI2sjZtzpL63nKAU=", - version = "v3.12.1", - ) - go_repository( - name = "com_github_envoyproxy_go_control_plane", - importpath = "github.com/envoyproxy/go-control-plane", - sum = "h1:rEvIZUSZ3fx39WIi3JkQqQBitGwpELBIYWeBVh6wn+E=", - version = "v0.9.4", - ) - go_repository( - name = "com_github_envoyproxy_protoc_gen_validate", - importpath = "github.com/envoyproxy/protoc-gen-validate", - sum = "h1:EQciDnbrYxy13PgWoY8AqoxGiPrpgBZ1R8UNe3ddc+A=", - version = "v0.1.0", - ) - go_repository( - name = "com_github_evanphx_json_patch", - importpath = "github.com/evanphx/json-patch", - sum = "h1:jBYDEEiFBPxA0v50tFdvOzQQTCvpL6mnFh5mB2/l16U=", - version = "v5.6.0+incompatible", - ) - go_repository( - name = "com_github_evanphx_json_patch_v5", - importpath = "github.com/evanphx/json-patch/v5", - sum = "h1:/8HVnzMq13/3x9TPvjG08wUGqBTmZBsCWzjTM0wiaDU=", - version = "v5.9.11", - ) - go_repository( - name = "com_github_fatih_color", - importpath = "github.com/fatih/color", - sum = "h1:DkWD4oS2D8LGGgTQ6IvwJJXSL5Vp2ffcQg58nFV38Ys=", - version = "v1.7.0", - ) - go_repository( - name = "com_github_felixge_httpsnoop", - importpath = "github.com/felixge/httpsnoop", - sum = "h1:NFTV2Zj1bL4mc9sqWACXbQFVBBg2W3GPvqp8/ESS2Wg=", - version = "v1.0.4", - ) - go_repository( - name = "com_github_fsnotify_fsnotify", - importpath = "github.com/fsnotify/fsnotify", - sum = "h1:dAwr6QBTBZIkG8roQaJjGof0pp0EeF+tNV7YBP3F/8M=", - version = "v1.8.0", - ) - go_repository( - name = "com_github_fxamacker_cbor_v2", - importpath = "github.com/fxamacker/cbor/v2", - sum = "h1:iM5WgngdRBanHcxugY4JySA0nk1wZorNOpTgCMedv5E=", - version = "v2.7.0", - ) - go_repository( - name = "com_github_go_gl_glfw", - importpath = "github.com/go-gl/glfw", - sum = "h1:QbL/5oDUmRBzO9/Z7Seo6zf912W/a6Sr4Eu0G/3Jho0=", - version = "v0.0.0-20190409004039-e6da0acd62b1", - ) - go_repository( - name = "com_github_go_gl_glfw_v3_3_glfw", - importpath = "github.com/go-gl/glfw/v3.3/glfw", - sum = "h1:WtGNWLvXpe6ZudgnXrq0barxBImvnnJoMEhXAzcbM0I=", - version = "v0.0.0-20200222043503-6f7a984d4dc4", - ) - go_repository( - name = "com_github_go_kit_kit", - importpath = "github.com/go-kit/kit", - sum = "h1:wDJmvq38kDhkVxi50ni9ykkdUr1PKgqKOoi01fa0Mdk=", - version = "v0.9.0", - ) - go_repository( - name = "com_github_go_kit_log", - importpath = "github.com/go-kit/log", - sum = "h1:DGJh0Sm43HbOeYDNnVZFl8BvcYVvjD5bqYJvp0REbwQ=", - version = "v0.1.0", - ) - go_repository( - name = "com_github_go_logfmt_logfmt", - importpath = "github.com/go-logfmt/logfmt", - sum = "h1:TrB8swr/68K7m9CcGut2g3UOihhbcbiMAYiuTXdEih4=", - version = "v0.5.0", - ) - go_repository( - name = "com_github_go_logr_logr", - importpath = "github.com/go-logr/logr", - sum = "h1:6pFjapn8bFcIbiKo3XT4j/BhANplGihG6tvd+8rYgrY=", - version = "v1.4.2", - ) - go_repository( - name = "com_github_go_logr_stdr", - importpath = "github.com/go-logr/stdr", - sum = "h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag=", - version = "v1.2.2", - ) - go_repository( - name = "com_github_go_logr_zapr", - importpath = "github.com/go-logr/zapr", - sum = "h1:XGdV8XW8zdwFiwOA2Dryh1gj2KRQyOOoNmBy4EplIcQ=", - version = "v1.3.0", - ) - go_repository( - name = "com_github_go_openapi_analysis", - importpath = "github.com/go-openapi/analysis", - sum = "h1:aGday7OWupfMs+LbmLZG4k0MYXIANxcuBTYUC03zFCU=", - version = "v0.23.0", - ) - go_repository( - name = "com_github_go_openapi_errors", - importpath = "github.com/go-openapi/errors", - sum = "h1:c4xY/OLxUBSTiepAg3j/MHuAv5mJhnf53LLMWFB+u/w=", - version = "v0.22.0", - ) - go_repository( - name = "com_github_go_openapi_jsonpointer", - importpath = "github.com/go-openapi/jsonpointer", - sum = "h1:YgdVicSA9vH5RiHs9TZW5oyafXZFc6+2Vc1rr/O9oNQ=", - version = "v0.21.0", - ) - go_repository( - name = "com_github_go_openapi_jsonreference", - importpath = "github.com/go-openapi/jsonreference", - sum = "h1:Rs+Y7hSXT83Jacb7kFyjn4ijOuVGSvOdF2+tg1TRrwQ=", - version = "v0.21.0", - ) - go_repository( - name = "com_github_go_openapi_loads", - importpath = "github.com/go-openapi/loads", - sum = "h1:ECPGd4jX1U6NApCGG1We+uEozOAvXvJSF4nnwHZ8Aco=", - version = "v0.22.0", - ) - go_repository( - name = "com_github_go_openapi_runtime", - importpath = "github.com/go-openapi/runtime", - sum = "h1:gpPPmWSNGo214l6n8hzdXYhPuJcGtziTOgUpvsFWGIQ=", - version = "v0.28.0", - ) - go_repository( - name = "com_github_go_openapi_spec", - importpath = "github.com/go-openapi/spec", - sum = "h1:LTVzPc3p/RzRnkQqLRndbAzjY0d0BCL72A6j3CdL9ZY=", - version = "v0.21.0", - ) - go_repository( - name = "com_github_go_openapi_strfmt", - importpath = "github.com/go-openapi/strfmt", - sum = "h1:nlUS6BCqcnAk0pyhi9Y+kdDVZdZMHfEKQiS4HaMgO/c=", - version = "v0.23.0", - ) - go_repository( - name = "com_github_go_openapi_swag", - importpath = "github.com/go-openapi/swag", - sum = "h1:vsEVJDUo2hPJ2tu0/Xc+4noaxyEffXNIs3cOULZ+GrE=", - version = "v0.23.0", - ) - go_repository( - name = "com_github_go_openapi_validate", - importpath = "github.com/go-openapi/validate", - sum = "h1:LdfDKwNbpB6Vn40xhTdNZAnfLECL81w+VX3BumrGD58=", - version = "v0.24.0", - ) - go_repository( - name = "com_github_go_stack_stack", - importpath = "github.com/go-stack/stack", - sum = "h1:5SgMzNM5HxrEjV0ww2lTmX6E2Izsfxas4+YHWRs3Lsk=", - version = "v1.8.0", - ) - go_repository( - name = "com_github_go_task_slim_sprig_v3", - importpath = "github.com/go-task/slim-sprig/v3", - sum = "h1:sUs3vkvUymDpBKi3qH1YSqBQk9+9D/8M2mN1vB6EwHI=", - version = "v3.0.0", - ) - go_repository( - name = "com_github_godbus_dbus_v5", - importpath = "github.com/godbus/dbus/v5", - sum = "h1:9349emZab16e7zQvpmsbtjc18ykshndd8y2PG3sgJbA=", - version = "v5.0.4", - ) - go_repository( - name = "com_github_gofrs_uuid", - importpath = "github.com/gofrs/uuid", - sum = "h1:3qXRTX8/NbyulANqlc0lchS1gqAVxRgsuW1YrTJupqA=", - version = "v4.4.0+incompatible", - ) - go_repository( - name = "com_github_gogo_protobuf", - importpath = "github.com/gogo/protobuf", - sum = "h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q=", - version = "v1.3.2", - ) - go_repository( - name = "com_github_golang_glog", - importpath = "github.com/golang/glog", - sum = "h1:VKtxabqXZkF25pY9ekfRL6a582T4P37/31XEstQ5p58=", - version = "v0.0.0-20160126235308-23def4e6c14b", - ) - go_repository( - name = "com_github_golang_groupcache", - importpath = "github.com/golang/groupcache", - sum = "h1:1r7pUrabqp18hOBcwBwiTsbnFeTZHV9eER/QT5JVZxY=", - version = "v0.0.0-20200121045136-8c9f03a8e57e", - ) - go_repository( - name = "com_github_golang_mock", - importpath = "github.com/golang/mock", - sum = "h1:l75CXGRSwbaYNpl/Z2X1XIIAMSCquvXgpVZDhwEIJsc=", - version = "v1.4.4", - ) - go_repository( - name = "com_github_golang_protobuf", - importpath = "github.com/golang/protobuf", - sum = "h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek=", - version = "v1.5.4", - ) - go_repository( - name = "com_github_golang_snappy", - importpath = "github.com/golang/snappy", - sum = "h1:yAGX7huGHXlcLOEtBnF4w7FQwA26wojNCwOYAEhLjQM=", - version = "v0.0.4", - ) - go_repository( - name = "com_github_google_btree", - importpath = "github.com/google/btree", - sum = "h1:CVpQJjYgC4VbzxeGVHfvZrv1ctoYCAI8vbl07Fcxlyg=", - version = "v1.1.3", - ) - go_repository( - name = "com_github_google_cel_go", - build_file_proto_mode = "disable_global", - # See https://github.com/bazel-contrib/bazel-gazelle/issues/890 - build_naming_convention = "go_default_library", - importpath = "github.com/google/cel-go", - sum = "h1:91ThhEZlBcE5rB2adBVXqvDoqdL8BG2oyhd0bK1I/r4=", - version = "v0.23.1", - ) - go_repository( - name = "com_github_google_gnostic_models", - build_file_proto_mode = "disable_global", - importpath = "github.com/google/gnostic-models", - sum = "h1:MU/8wDLif2qCXZmzncUQ/BOfxWfthHi63KqpoNbWqVw=", - version = "v0.6.9", - ) - go_repository( - name = "com_github_google_go_cmp", - importpath = "github.com/google/go-cmp", - sum = "h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI=", - version = "v0.6.0", - ) - go_repository( - name = "com_github_google_gofuzz", - importpath = "github.com/google/gofuzz", - sum = "h1:xRy4A+RhZaiKjJ1bPfwQ8sedCA+YS2YcCHW6ec7JMi0=", - version = "v1.2.0", - ) - go_repository( - name = "com_github_google_martian", - importpath = "github.com/google/martian", - sum = "h1:/CP5g8u/VJHijgedC/Legn3BAbAaWPgecwXBIDzw5no=", - version = "v2.1.0+incompatible", - ) - go_repository( - name = "com_github_google_martian_v3", - importpath = "github.com/google/martian/v3", - sum = "h1:pMen7vLs8nvgEYhywH3KDWJIJTeEr2ULsVWHWYHQyBs=", - version = "v3.0.0", - ) - go_repository( - name = "com_github_google_pprof", - importpath = "github.com/google/pprof", - sum = "h1:097atOisP2aRj7vFgYQBbFN4U4JNXUNYpxael3UzMyo=", - version = "v0.0.0-20241029153458-d1b30febd7db", - ) - go_repository( - name = "com_github_google_renameio", - importpath = "github.com/google/renameio", - sum = "h1:GOZbcHa3HfsPKPlmyPyN2KEohoMXOhdMbHrvbpl2QaA=", - version = "v0.1.0", - ) - go_repository( - name = "com_github_google_uuid", - importpath = "github.com/google/uuid", - sum = "h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0=", - version = "v1.6.0", - ) - go_repository( - name = "com_github_googleapis_gax_go_v2", - build_file_proto_mode = "disable_global", - importpath = "github.com/googleapis/gax-go/v2", - sum = "h1:sjZBwGj9Jlw33ImPtvFviGYvseOtDM7hkSKB7+Tv3SM=", - version = "v2.0.5", - ) - go_repository( - name = "com_github_gorilla_websocket", - importpath = "github.com/gorilla/websocket", - sum = "h1:PPwGk2jz7EePpoHN/+ClbZu8SPxiqlu12wZP/3sWmnc=", - version = "v1.5.0", - ) - go_repository( - name = "com_github_gregjones_httpcache", - importpath = "github.com/gregjones/httpcache", - sum = "h1:+ngKgrYPPJrOjhax5N+uePQ0Fh1Z7PheYoUI/0nzkPA=", - version = "v0.0.0-20190611155906-901d90724c79", - ) - go_repository( - name = "com_github_grpc_ecosystem_grpc_gateway_v2", - importpath = "github.com/grpc-ecosystem/grpc-gateway/v2", - sum = "h1:bkypFPDjIYGfCYD5mRBvpqxfYX1YCS1PXdKYWi8FsN0=", - version = "v2.20.0", - ) - go_repository( - name = "com_github_hashicorp_errwrap", - importpath = "github.com/hashicorp/errwrap", - sum = "h1:OxrOeh75EUXMY8TBjag2fzXGZ40LB6IKw45YeGUDY2I=", - version = "v1.1.0", - ) - go_repository( - name = "com_github_hashicorp_go_cleanhttp", - importpath = "github.com/hashicorp/go-cleanhttp", - sum = "h1:wvCrVc9TjDls6+YGAF2hAifE1E5U1+b4tH6KdvN3Gig=", - version = "v0.5.0", - ) - go_repository( - name = "com_github_hashicorp_go_immutable_radix", - importpath = "github.com/hashicorp/go-immutable-radix", - sum = "h1:DKHmCUm2hRBK510BaiZlwvpD40f8bJFeZnpfm2KLowc=", - version = "v1.3.1", - ) - go_repository( - name = "com_github_hashicorp_go_metrics", - importpath = "github.com/hashicorp/go-metrics", - sum = "h1:8mmPiIJkTPPEbAiV97IxdAGNdRdaWwVap1BU6elejKY=", - version = "v0.5.4", - ) - go_repository( - name = "com_github_hashicorp_go_msgpack_v2", - importpath = "github.com/hashicorp/go-msgpack/v2", - sum = "h1:4Ee8FTp834e+ewB71RDrQ0VKpyFdrKOjvYtnQ/ltVj0=", - version = "v2.1.2", - ) - go_repository( - name = "com_github_hashicorp_go_multierror", - importpath = "github.com/hashicorp/go-multierror", - sum = "h1:H5DkEtf6CXdFp0N0Em5UCwQpXMWke8IA0+lD48awMYo=", - version = "v1.1.1", - ) - go_repository( - name = "com_github_hashicorp_go_retryablehttp", - importpath = "github.com/hashicorp/go-retryablehttp", - sum = "h1:QlWt0KvWT0lq8MFppF9tsJGF+ynG7ztc2KIPhzRGk7s=", - version = "v0.5.3", - ) - go_repository( - name = "com_github_hashicorp_go_sockaddr", - importpath = "github.com/hashicorp/go-sockaddr", - sum = "h1:G+pTkSO01HpR5qCxg7lxfsFEZaG+C0VssTy/9dbT+Fw=", - version = "v1.0.7", - ) - go_repository( - name = "com_github_hashicorp_go_uuid", - importpath = "github.com/hashicorp/go-uuid", - sum = "h1:fv1ep09latC32wFoVwnqcnKJGnMSdBanPczbHAYm1BE=", - version = "v1.0.1", - ) - go_repository( - name = "com_github_hashicorp_golang_lru", - importpath = "github.com/hashicorp/golang-lru", - sum = "h1:dV3g9Z/unq5DpblPpw+Oqcv4dU/1omnb4Ok8iPY6p1c=", - version = "v1.0.2", - ) - go_repository( - name = "com_github_hashicorp_golang_lru_v2", - importpath = "github.com/hashicorp/golang-lru/v2", - sum = "h1:a+bsQ5rvGLjzHuww6tVxozPZFVghXaHOwFs4luLUK2k=", - version = "v2.0.7", - ) - go_repository( - name = "com_github_hashicorp_memberlist", - importpath = "github.com/hashicorp/memberlist", - sum = "h1:tQ1jOCypD0WvMemw/ZhhtH+PWpzcftQvgCorLu0hndk=", - version = "v0.5.3", - ) - go_repository( - name = "com_github_huandu_xstrings", - importpath = "github.com/huandu/xstrings", - sum = "h1:L18LIDzqlW6xN2rEkpdV8+oL/IXWJ1APd+vsdYy4Wdw=", - version = "v1.3.2", - ) - go_repository( - name = "com_github_ianlancetaylor_demangle", - importpath = "github.com/ianlancetaylor/demangle", - sum = "h1:UDMh68UUwekSh5iP2OMhRRZJiiBccgV7axzUG8vi56c=", - version = "v0.0.0-20181102032728-5e5cf60278f6", - ) - go_repository( - name = "com_github_imdario_mergo", - importpath = "github.com/imdario/mergo", - sum = "h1:3tnifQM4i+fbajXKBHXWEH+KvNHqojZ778UH75j3bGA=", - version = "v0.3.11", - ) - go_repository( - name = "com_github_inconshreveable_mousetrap", - importpath = "github.com/inconshreveable/mousetrap", - sum = "h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8=", - version = "v1.1.0", - ) - go_repository( - name = "com_github_jessevdk_go_flags", - importpath = "github.com/jessevdk/go-flags", - sum = "h1:Cvu5U8UGrLay1rZfv/zP7iLpSHGUZ/Ou68T0iX1bBK4=", - version = "v1.6.1", - ) - go_repository( - name = "com_github_jmespath_go_jmespath", - importpath = "github.com/jmespath/go-jmespath", - sum = "h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg=", - version = "v0.4.0", - ) - go_repository( - name = "com_github_jmespath_go_jmespath_internal_testify", - importpath = "github.com/jmespath/go-jmespath/internal/testify", - sum = "h1:shLQSRRSCCPj3f2gpwzGwWFoC7ycTf1rcQZHOlsJ6N8=", - version = "v1.5.1", - ) - go_repository( - name = "com_github_josharian_intern", - importpath = "github.com/josharian/intern", - sum = "h1:vlS4z54oSdjm0bgjRigI+G1HpF+tI+9rE5LLzOg8HmY=", - version = "v1.0.0", - ) - go_repository( - name = "com_github_jpillora_backoff", - importpath = "github.com/jpillora/backoff", - sum = "h1:uvFg412JmmHBHw7iwprIxkPMI+sGQ4kzOWsMeHnm2EA=", - version = "v1.0.0", - ) - go_repository( - name = "com_github_json_iterator_go", - importpath = "github.com/json-iterator/go", - sum = "h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM=", - version = "v1.1.12", - ) - go_repository( - name = "com_github_jstemmer_go_junit_report", - importpath = "github.com/jstemmer/go-junit-report", - sum = "h1:6QPYqodiu3GuPL+7mfx+NwDdp2eTkp9IfEUpgAwUN0o=", - version = "v0.9.1", - ) - go_repository( - name = "com_github_julienschmidt_httprouter", - importpath = "github.com/julienschmidt/httprouter", - sum = "h1:U0609e9tgbseu3rBINet9P48AI/D3oJs4dN7jwJOQ1U=", - version = "v1.3.0", - ) - go_repository( - name = "com_github_kimmachinegun_automemlimit", - importpath = "github.com/KimMachineGun/automemlimit", - sum = "h1:7G06p/dMSf7G8E6oq+f2uOPuVncFyIlDI/pBWK49u88=", - version = "v0.7.0", - ) - go_repository( - name = "com_github_kisielk_errcheck", - importpath = "github.com/kisielk/errcheck", - sum = "h1:e8esj/e4R+SAOwFwN+n3zr0nYeCyeweozKfO23MvHzY=", - version = "v1.5.0", - ) - go_repository( - name = "com_github_kisielk_gotool", - importpath = "github.com/kisielk/gotool", - sum = "h1:AV2c/EiW3KqPNT9ZKl07ehoAGi4C5/01Cfbblndcapg=", - version = "v1.0.0", - ) - go_repository( - name = "com_github_klauspost_compress", - importpath = "github.com/klauspost/compress", - sum = "h1:In6xLpyWOi1+C7tXUUWv2ot1QvBjxevKAaI6IXrJmUc=", - version = "v1.17.11", - ) - go_repository( - name = "com_github_konsorten_go_windows_terminal_sequences", - importpath = "github.com/konsorten/go-windows-terminal-sequences", - sum = "h1:CE8S1cTafDpPvMhIxNJKvHsGVBgn1xWYf1NbHQhywc8=", - version = "v1.0.3", - ) - go_repository( - name = "com_github_kr_logfmt", - importpath = "github.com/kr/logfmt", - sum = "h1:T+h1c/A9Gawja4Y9mFVWj2vyii2bbUNDw3kt9VxK2EY=", - version = "v0.0.0-20140226030751-b84e30acd515", - ) - go_repository( - name = "com_github_kr_pretty", - importpath = "github.com/kr/pretty", - sum = "h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE=", - version = "v0.3.1", - ) - go_repository( - name = "com_github_kr_pty", - importpath = "github.com/kr/pty", - sum = "h1:VkoXIwSboBpnk99O/KFauAEILuNHv5DVFKZMBN/gUgw=", - version = "v1.1.1", - ) - go_repository( - name = "com_github_kr_text", - importpath = "github.com/kr/text", - sum = "h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=", - version = "v0.2.0", - ) - go_repository( - name = "com_github_kylelemons_godebug", - importpath = "github.com/kylelemons/godebug", - sum = "h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc=", - version = "v1.1.0", - ) - go_repository( - name = "com_github_mailru_easyjson", - importpath = "github.com/mailru/easyjson", - sum = "h1:PrnmzHw7262yW8sTBwxi1PdJA3Iw/EKBa8psRf7d9a4=", - version = "v0.9.0", - ) - go_repository( - name = "com_github_masterminds_goutils", - importpath = "github.com/Masterminds/goutils", - sum = "h1:5nUrii3FMTL5diU80unEVvNevw1nH4+ZV4DSLVJLSYI=", - version = "v1.1.1", - ) - go_repository( - name = "com_github_masterminds_semver_v3", - importpath = "github.com/Masterminds/semver/v3", - sum = "h1:hLg3sBzpNErnxhQtUy/mmLR2I9foDujNK030IGemrRc=", - version = "v3.1.1", - ) - go_repository( - name = "com_github_masterminds_sprig_v3", - importpath = "github.com/Masterminds/sprig/v3", - sum = "h1:n6EPaDyLSvCEa3frruQvAiHuNp2dhBlMSmkEr+HuzGc=", - version = "v3.2.1", - ) - go_repository( - name = "com_github_mattn_go_colorable", - importpath = "github.com/mattn/go-colorable", - sum = "h1:UVL0vNpWh04HeJXV0KLcaT7r06gOH2l4OW6ddYRUIY4=", - version = "v0.0.9", - ) - go_repository( - name = "com_github_mattn_go_isatty", - importpath = "github.com/mattn/go-isatty", - sum = "h1:ns/ykhmWi7G9O+8a448SecJU3nSMBXJfqQkl0upE1jI=", - version = "v0.0.3", - ) - go_repository( - name = "com_github_matttproud_golang_protobuf_extensions", - importpath = "github.com/matttproud/golang_protobuf_extensions", - sum = "h1:mmDVorXM7PCGKw94cs5zkfA9PSy5pEvNWRP0ET0TIVo=", - version = "v1.0.4", - ) - go_repository( - name = "com_github_mdlayher_socket", - importpath = "github.com/mdlayher/socket", - sum = "h1:VZaqt6RkGkt2OE9l3GcC6nZkqD3xKeQLyfleW/uBcos=", - version = "v0.5.1", - ) - go_repository( - name = "com_github_mdlayher_vsock", - importpath = "github.com/mdlayher/vsock", - sum = "h1:pC1mTJTvjo1r9n9fbm7S1j04rCgCzhCOS5DY0zqHlnQ=", - version = "v1.2.1", - ) - go_repository( - name = "com_github_miekg_dns", - importpath = "github.com/miekg/dns", - sum = "h1:8M5aAw6OMZfFXTT7K5V0Eu5YiiL8l7nUAkyN6C9YwaY=", - version = "v1.1.63", - ) - go_repository( - name = "com_github_mitchellh_cli", - importpath = "github.com/mitchellh/cli", - sum = "h1:OxRIeJXpAMztws/XHlN2vu6imG5Dpq+j61AzAX5fLng=", - version = "v1.1.5", - ) - go_repository( - name = "com_github_mitchellh_copystructure", - importpath = "github.com/mitchellh/copystructure", - sum = "h1:Laisrj+bAB6b/yJwB5Bt3ITZhGJdqmxquMKeZ+mmkFQ=", - version = "v1.0.0", - ) - go_repository( - name = "com_github_mitchellh_go_wordwrap", - importpath = "github.com/mitchellh/go-wordwrap", - sum = "h1:TLuKupo69TCn6TQSyGxwI1EblZZEsQ0vMlAFQflz0v0=", - version = "v1.0.1", - ) - go_repository( - name = "com_github_mitchellh_mapstructure", - importpath = "github.com/mitchellh/mapstructure", - sum = "h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyuac5Z2hdY=", - version = "v1.5.0", - ) - go_repository( - name = "com_github_mitchellh_reflectwalk", - importpath = "github.com/mitchellh/reflectwalk", - sum = "h1:9D+8oIskB4VJBN5SFlmc27fSlIBZaov1Wpk/IfikLNY=", - version = "v1.0.0", - ) - go_repository( - name = "com_github_moby_spdystream", - importpath = "github.com/moby/spdystream", - sum = "h1:7r0J1Si3QO/kjRitvSLVVFUjxMEb/YLj6S9FF62JBCU=", - version = "v0.5.0", - ) - go_repository( - name = "com_github_modern_go_concurrent", - importpath = "github.com/modern-go/concurrent", - sum = "h1:TRLaZ9cD/w8PVh93nsPXa1VrQ6jlwL5oN8l14QlcNfg=", - version = "v0.0.0-20180306012644-bacd9c7ef1dd", - ) - go_repository( - name = "com_github_modern_go_reflect2", - importpath = "github.com/modern-go/reflect2", - sum = "h1:xBagoLtFs94CBntxluKeaWgTMpvLxC4ur3nMaC9Gz0M=", - version = "v1.0.2", - ) - go_repository( - name = "com_github_montanaflynn_stats", - importpath = "github.com/montanaflynn/stats", - sum = "h1:etflOAAHORrCC44V+aR6Ftzort912ZU+YLiSTuV8eaE=", - version = "v0.7.1", - ) - go_repository( - name = "com_github_munnerz_goautoneg", - importpath = "github.com/munnerz/goautoneg", - sum = "h1:C3w9PqII01/Oq1c1nUAm88MOHcQC9l5mIlSMApZMrHA=", - version = "v0.0.0-20191010083416-a7dc8b61c822", - ) - go_repository( - name = "com_github_mwitkow_go_conntrack", - build_file_proto_mode = "disable_global", - importpath = "github.com/mwitkow/go-conntrack", - sum = "h1:KUppIJq7/+SVif2QVs3tOP0zanoHgBEVAwHxUSIzRqU=", - version = "v0.0.0-20190716064945-2f068394615f", - ) - go_repository( - name = "com_github_mxk_go_flowrate", - importpath = "github.com/mxk/go-flowrate", - sum = "h1:y5//uYreIhSUg3J1GEMiLbxo1LJaP8RfCpH6pymGZus=", - version = "v0.0.0-20140419014527-cca7078d478f", - ) - go_repository( - name = "com_github_niemeyer_pretty", - importpath = "github.com/niemeyer/pretty", - sum = "h1:fD57ERR4JtEqsWbfPhv4DMiApHyliiK5xCTNVSPiaAs=", - version = "v0.0.0-20200227124842-a10e7caefd8e", - ) - go_repository( - name = "com_github_nytimes_gziphandler", - importpath = "github.com/NYTimes/gziphandler", - sum = "h1:ZUDjpQae29j0ryrS0u/B8HZfJBtBQHjqw2rQ2cqUQ3I=", - version = "v1.1.1", - ) - go_repository( - name = "com_github_oklog_run", - importpath = "github.com/oklog/run", - sum = "h1:GEenZ1cK0+q0+wsJew9qUg/DyD8k3JzYsZAi5gYi2mA=", - version = "v1.1.0", - ) - go_repository( - name = "com_github_oklog_ulid", - importpath = "github.com/oklog/ulid", - sum = "h1:EGfNDEx6MqHz8B3uNV6QAib1UR2Lm97sHi3ocA6ESJ4=", - version = "v1.3.1", - ) - go_repository( - name = "com_github_onsi_ginkgo_v2", - importpath = "github.com/onsi/ginkgo/v2", - sum = "h1:7rg/4f3rB88pb5obDgNZrNHrQ4e6WpjonchcpuBRnZM=", - version = "v2.21.0", - ) - go_repository( - name = "com_github_onsi_gomega", - importpath = "github.com/onsi/gomega", - sum = "h1:Cwbd75ZBPxFSuZ6T+rN/WCb/gOc6YgFBXLlZLhC7Ds4=", - version = "v1.35.1", - ) - go_repository( - name = "com_github_opentracing_opentracing_go", - importpath = "github.com/opentracing/opentracing-go", - sum = "h1:uEJPy/1a5RIPAJ0Ov+OIO8OxWu77jEv+1B0VhjKrZUs=", - version = "v1.2.0", - ) - go_repository( - name = "com_github_pascaldekloe_goe", - importpath = "github.com/pascaldekloe/goe", - sum = "h1:cBOtyMzM9HTpWjXfbbunk26uA6nG3a8n06Wieeh0MwY=", - version = "v0.1.0", - ) - go_repository( - name = "com_github_pbnjay_memory", - importpath = "github.com/pbnjay/memory", - sum = "h1:onHthvaw9LFnH4t2DcNVpwGmV9E1BkGknEliJkfwQj0=", - version = "v0.0.0-20210728143218-7b4eea64cf58", - ) - go_repository( - name = "com_github_peterbourgon_diskv", - importpath = "github.com/peterbourgon/diskv", - sum = "h1:UBdAOUP5p4RWqPBg048CAvpKN+vxiaj6gdUUzhl4XmI=", - version = "v2.0.1+incompatible", - ) - go_repository( - name = "com_github_philhofer_fwd", - importpath = "github.com/philhofer/fwd", - sum = "h1:bnDivRJ1EWPjUIRXV5KfORO897HTbpFAQddBdE8t7Gw=", - version = "v1.1.2", - ) - go_repository( - name = "com_github_pkg_errors", - importpath = "github.com/pkg/errors", - sum = "h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=", - version = "v0.9.1", - ) - go_repository( - name = "com_github_pmezard_go_difflib", - importpath = "github.com/pmezard/go-difflib", - sum = "h1:Jamvg5psRIccs7FGNTlIRMkT8wgtp5eCXdBlqhYGL6U=", - version = "v1.0.1-0.20181226105442-5d4384ee4fb2", - ) - go_repository( - name = "com_github_posener_complete", - importpath = "github.com/posener/complete", - sum = "h1:ccV59UEOTzVDnDUEFdT95ZzHVZ+5+158q8+SJb2QV5w=", - version = "v1.1.1", - ) - go_repository( - name = "com_github_pquerna_ffjson", - importpath = "github.com/pquerna/ffjson", - sum = "h1:xoIK0ctDddBMnc74udxJYBqlo9Ylnsp1waqjLsnef20=", - version = "v0.0.0-20190930134022-aa0246cd15f7", - ) - go_repository( - name = "com_github_prometheus_alertmanager", - build_file_proto_mode = "disable_global", - importpath = "github.com/prometheus/alertmanager", - sum = "h1:sLN+6HhZet8hrbmGHLAHWsTXgZSVCvq9Ix3U3wvivqc=", - version = "v0.28.0", - ) - go_repository( - name = "com_github_prometheus_client_golang", - build_file_proto_mode = "disable_global", - importpath = "github.com/prometheus/client_golang", - sum = "h1:cxppBPuYhUnsO6yo/aoRol4L7q7UFfdm+bR9r+8l63Y=", - version = "v1.20.5", - ) - go_repository( - name = "com_github_prometheus_client_model", - build_file_proto_mode = "disable_global", - importpath = "github.com/prometheus/client_model", - sum = "h1:ZKSh/rekM+n3CeS952MLRAdFwIKqeY8b62p8ais2e9E=", - version = "v0.6.1", - ) - go_repository( - name = "com_github_prometheus_common", - build_file_proto_mode = "disable_global", - importpath = "github.com/prometheus/common", - sum = "h1:xasJaQlnWAeyHdUBeGjXmutelfJHWMRr+Fg4QszZ2Io=", - version = "v0.62.0", - ) - go_repository( - name = "com_github_prometheus_common_assets", - importpath = "github.com/prometheus/common/assets", - sum = "h1:0P5OrzoHrYBOSM1OigWL3mY8ZvV2N4zIE/5AahrSrfM=", - version = "v0.2.0", - ) - go_repository( - name = "com_github_prometheus_common_sigv4", - importpath = "github.com/prometheus/common/sigv4", - sum = "h1:qoVebwtwwEhS85Czm2dSROY5fTo2PAPEVdDeppTwGX4=", - version = "v0.1.0", - ) - go_repository( - name = "com_github_prometheus_exporter_toolkit", - importpath = "github.com/prometheus/exporter-toolkit", - sum = "h1:Z02fYtbqTMy2i/f+xZ+UK5jy/bl1Ex3ndzh06T/Q9DQ=", - version = "v0.13.2", - ) - go_repository( - name = "com_github_prometheus_procfs", - importpath = "github.com/prometheus/procfs", - sum = "h1:YagwOFzUgYfKKHX6Dr+sHT7km/hxC76UB0learggepc=", - version = "v0.15.1", - ) - go_repository( - name = "com_github_rogpeppe_go_internal", - importpath = "github.com/rogpeppe/go-internal", - sum = "h1:KvO1DLK/DRN07sQ1LQKScxyZJuNnedQ5/wKSR38lUII=", - version = "v1.13.1", - ) - go_repository( - name = "com_github_rs_cors", - importpath = "github.com/rs/cors", - sum = "h1:eU3gRzXLRK57F5rKMGMZURNdIG4EoAmX8k94r9wXWHA=", - version = "v1.11.1", - ) - go_repository( - name = "com_github_ryanuber_columnize", - importpath = "github.com/ryanuber/columnize", - sum = "h1:C89EOx/XBWwIXl8wm8OPJBd7kPF25UfsK2X7Ph/zCAk=", - version = "v2.1.2+incompatible", - ) - go_repository( - name = "com_github_sean_seed", - importpath = "github.com/sean-/seed", - sum = "h1:nn5Wsu0esKSJiIVhscUtVbo7ada43DJhG55ua/hjS5I=", - version = "v0.0.0-20170313163322-e2103e2c3529", - ) - go_repository( - name = "com_github_sereal_sereal_go_sereal", - importpath = "github.com/Sereal/Sereal/Go/sereal", - sum = "h1:5kUcJJAKWWI82Xnp/CaU0eu5hLlHkmm9acjowSkwCd0=", - version = "v0.0.0-20231009093132-b9187f1a92c6", - ) - go_repository( - name = "com_github_shopspring_decimal", - importpath = "github.com/shopspring/decimal", - sum = "h1:abSATXmQEYyShuxI4/vyW3tV1MrKAJzCZ/0zLUXYbsQ=", - version = "v1.2.0", - ) - go_repository( - name = "com_github_shurcool_httpfs", - importpath = "github.com/shurcooL/httpfs", - sum = "h1:aqg5Vm5dwtvL+YgDpBcK1ITf3o96N/K7/wsRXQnUTEs=", - version = "v0.0.0-20230704072500-f1e31cf0ba5c", - ) - go_repository( - name = "com_github_shurcool_vfsgen", - importpath = "github.com/shurcooL/vfsgen", - sum = "h1:OfRzdxCzDhp+rsKWXuOO2I/quKMJ/+TQwVbIP/gltZg=", - version = "v0.0.0-20230704071429-0000e147ea92", - ) - go_repository( - name = "com_github_sirupsen_logrus", - importpath = "github.com/sirupsen/logrus", - sum = "h1:UBcNElsrwanuuMsnGSlYmtmgbb23qDR5dG+6X6Oo89I=", - version = "v1.6.0", - ) - go_repository( - name = "com_github_spf13_cast", - importpath = "github.com/spf13/cast", - sum = "h1:nFm6S0SMdyzrzcmThSipiEubIDy8WEXKNZ0UOgiRpng=", - version = "v1.3.1", - ) - go_repository( - name = "com_github_spf13_cobra", - importpath = "github.com/spf13/cobra", - sum = "h1:e5/vxKd/rZsfSJMUX1agtjeTDf+qv1/JdBF8gg5k9ZM=", - version = "v1.8.1", - ) - go_repository( - name = "com_github_spf13_pflag", - importpath = "github.com/spf13/pflag", - sum = "h1:jFzHGLGAlb3ruxLB8MhbI6A8+AQX/2eW4qeyNZXNp2o=", - version = "v1.0.6", - ) - go_repository( - name = "com_github_stoewer_go_strcase", - importpath = "github.com/stoewer/go-strcase", - sum = "h1:g0eASXYtp+yvN9fK8sH94oCIk0fau9uV1/ZdJ0AVEzs=", - version = "v1.3.0", - ) - go_repository( - name = "com_github_stretchr_objx", - importpath = "github.com/stretchr/objx", - sum = "h1:xuMeJ0Sdp5ZMRXx/aWO6RZxdr3beISkG5/G/aIRr3pY=", - version = "v0.5.2", - ) - go_repository( - name = "com_github_stretchr_testify", - importpath = "github.com/stretchr/testify", - sum = "h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA=", - version = "v1.10.0", - ) - go_repository( - name = "com_github_tinylib_msgp", - importpath = "github.com/tinylib/msgp", - sum = "h1:FCXC1xanKO4I8plpHGH2P7koL/RzZs12l/+r7vakfm0=", - version = "v1.1.8", - ) - go_repository( - name = "com_github_trivago_tgo", - importpath = "github.com/trivago/tgo", - sum = "h1:uaWH/XIy9aWYWpjm2CU3RpcqZXmX2ysQ9/Go+d9gyrM=", - version = "v1.0.7", - ) - go_repository( - name = "com_github_tv42_httpunix", - importpath = "github.com/tv42/httpunix", - sum = "h1:G3dpKMzFDjgEh2q1Z7zUUtKa8ViPtH+ocF0bE0g00O8=", - version = "v0.0.0-20150427012821-b75d8614f926", - ) - go_repository( - name = "com_github_x448_float16", - importpath = "github.com/x448/float16", - sum = "h1:qLwI1I70+NjRFUR3zs1JPUCgaCXSh3SW62uAKT1mSBM=", - version = "v0.8.4", - ) - go_repository( - name = "com_github_xdg_go_pbkdf2", - importpath = "github.com/xdg-go/pbkdf2", - sum = "h1:Su7DPu48wXMwC3bs7MCNG+z4FhcyEuz5dlvchbq0B0c=", - version = "v1.0.0", - ) - go_repository( - name = "com_github_xdg_go_scram", - importpath = "github.com/xdg-go/scram", - sum = "h1:FHX5I5B4i4hKRVRBCFRxq1iQRej7WO3hhBuJf+UUySY=", - version = "v1.1.2", - ) - go_repository( - name = "com_github_xdg_go_stringprep", - importpath = "github.com/xdg-go/stringprep", - sum = "h1:XLI/Ng3O1Atzq0oBs3TWm+5ZVgkq2aqdlvP9JtoZ6c8=", - version = "v1.0.4", - ) - go_repository( - name = "com_github_xhit_go_str2duration_v2", - importpath = "github.com/xhit/go-str2duration/v2", - sum = "h1:lxklc02Drh6ynqX+DdPyp5pCKLUQpRT8bp8Ydu2Bstc=", - version = "v2.1.0", - ) - go_repository( - name = "com_github_xlab_treeprint", - importpath = "github.com/xlab/treeprint", - sum = "h1:HzHnuAF1plUN2zGlAFHbSQP2qJ0ZAD3XF5XD7OesXRQ=", - version = "v1.2.0", - ) - go_repository( - name = "com_github_youmark_pkcs8", - importpath = "github.com/youmark/pkcs8", - sum = "h1:ilQV1hzziu+LLM3zUTJ0trRztfwgjqKnBWNtSRkbmwM=", - version = "v0.0.0-20240726163527-a2c0da244d78", - ) - go_repository( - name = "com_github_yuin_goldmark", - importpath = "github.com/yuin/goldmark", - sum = "h1:fVcFKWvrslecOb/tg+Cc05dkeYx540o0FuFt3nUVDoE=", - version = "v1.4.13", - ) - go_repository( - name = "com_google_cloud_go", - importpath = "cloud.google.com/go", - sum = "h1:Dg9iHVQfrhq82rUNu9ZxUDrJLaxFUe/HlCVaLyRruq8=", - version = "v0.65.0", - ) - go_repository( - name = "com_google_cloud_go_bigquery", - importpath = "cloud.google.com/go/bigquery", - sum = "h1:PQcPefKFdaIzjQFbiyOgAqyx8q5djaE7x9Sqe712DPA=", - version = "v1.8.0", - ) - go_repository( - name = "com_google_cloud_go_compute_metadata", - importpath = "cloud.google.com/go/compute/metadata", - sum = "h1:Tz+eQXMEqDIKRsmY3cHTL6FVaynIjX2QxYC4trgAKZc=", - version = "v0.3.0", - ) - go_repository( - name = "com_google_cloud_go_datastore", - importpath = "cloud.google.com/go/datastore", - sum = "h1:/May9ojXjRkPBNVrq+oWLqmWCkr4OU5uRY29bu0mRyQ=", - version = "v1.1.0", - ) - go_repository( - name = "com_google_cloud_go_pubsub", - importpath = "cloud.google.com/go/pubsub", - sum = "h1:ukjixP1wl0LpnZ6LWtZJ0mX5tBmjp1f8Sqer8Z2OMUU=", - version = "v1.3.1", - ) - go_repository( - name = "com_google_cloud_go_storage", - importpath = "cloud.google.com/go/storage", - sum = "h1:STgFzyU5/8miMl0//zKh2aQeTyeaUH3WN9bSUiJ09bA=", - version = "v1.10.0", - ) - go_repository( - name = "com_shuralyov_dmitri_gpu_mtl", - importpath = "dmitri.shuralyov.com/gpu/mtl", - sum = "h1:VpgP7xuJadIUuKccphEpTJnWhS2jkQyMt6Y7pJCD7fY=", - version = "v0.0.0-20190408044501-666a987793e9", - ) - go_repository( - name = "dev_cel_expr", - importpath = "cel.dev/expr", - sum = "h1:V354PbqIXr9IQdwy4SYA4xa0HXaWq1BUPAGzugBY5V4=", - version = "v0.19.2", - ) - go_repository( - name = "in_gopkg_alecthomas_kingpin_v2", - importpath = "gopkg.in/alecthomas/kingpin.v2", - sum = "h1:jMFz6MfLP0/4fUyZle81rXUoxOBFi19VUFKVDOQfozc=", - version = "v2.2.6", - ) - go_repository( - name = "in_gopkg_check_v1", - importpath = "gopkg.in/check.v1", - sum = "h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk=", - version = "v1.0.0-20201130134442-10cb98267c6c", - ) - go_repository( - name = "in_gopkg_errgo_v2", - importpath = "gopkg.in/errgo.v2", - sum = "h1:0vLT13EuvQ0hNvakwLuFZ/jYrLp5F3kcWHXdRggjCE8=", - version = "v2.1.0", - ) - go_repository( - name = "in_gopkg_evanphx_json_patch_v4", - importpath = "gopkg.in/evanphx/json-patch.v4", - sum = "h1:n6jtcsulIzXPJaxegRbvFNNrZDjbij7ny3gmSPG+6V4=", - version = "v4.12.0", - ) - go_repository( - name = "in_gopkg_inf_v0", - importpath = "gopkg.in/inf.v0", - sum = "h1:73M5CoZyi3ZLMOyDlQh031Cx6N9NDJ2Vvfl76EDAgDc=", - version = "v0.9.1", - ) - go_repository( - name = "in_gopkg_mgo_v2", - importpath = "gopkg.in/mgo.v2", - sum = "h1:VpOs+IwYnYBaFnrNAeB8UUWtL3vEUnzSCL1nVjPhqrw=", - version = "v2.0.0-20190816093944-a6b53ec6cb22", - ) - go_repository( - name = "in_gopkg_telebot_v3", - importpath = "gopkg.in/telebot.v3", - sum = "h1:uVDGjak9l824FN9YARWUHMsiNZnlohAVwUycw21k6t8=", - version = "v3.3.8", - ) - go_repository( - name = "in_gopkg_vmihailenco_msgpack_v2", - importpath = "gopkg.in/vmihailenco/msgpack.v2", - sum = "h1:gjPqo9orRVlSAH/065qw3MsFCDpH7fa1KpiizXyllY4=", - version = "v2.9.2", - ) - go_repository( - name = "in_gopkg_yaml_v2", - importpath = "gopkg.in/yaml.v2", - sum = "h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY=", - version = "v2.4.0", - ) - go_repository( - name = "in_gopkg_yaml_v3", - importpath = "gopkg.in/yaml.v3", - sum = "h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=", - version = "v3.0.1", - ) - go_repository( - name = "io_k8s_api", - build_file_proto_mode = "disable_global", - importpath = "k8s.io/api", - sum = "h1:f562zw9cy+GvXzXf0CKlVQ7yHJVYzLfL6JAS4kOAaOc=", - version = "v0.32.1", - ) - go_repository( - name = "io_k8s_apiextensions_apiserver", - importpath = "k8s.io/apiextensions-apiserver", - sum = "h1:S0Xlqt51qzzqjKPxfgX1xh4HBZE+p8KKBq+k2SWNOE0=", - version = "v0.32.0", - ) - go_repository( - name = "io_k8s_apimachinery", - build_file_proto_mode = "disable_global", - importpath = "k8s.io/apimachinery", - sum = "h1:683ENpaCBjma4CYqsmZyhEzrGz6cjn1MY/X2jB2hkZs=", - version = "v0.32.1", - ) - go_repository( - name = "io_k8s_apiserver", - importpath = "k8s.io/apiserver", - sum = "h1:VJ89ZvQZ8p1sLeiWdRJpRD6oLozNZD2+qVSLi+ft5Qs=", - version = "v0.32.0", - ) - go_repository( - name = "io_k8s_client_go", - build_file_proto_mode = "disable_global", - importpath = "k8s.io/client-go", - sum = "h1:otM0AxdhdBIaQh7l1Q0jQpmo7WOFIk5FFa4bg6YMdUU=", - version = "v0.32.1", - ) - go_repository( - name = "io_k8s_component_base", - importpath = "k8s.io/component-base", - sum = "h1:d6cWHZkCiiep41ObYQS6IcgzOUQUNpywm39KVYaUqzU=", - version = "v0.32.0", - ) - go_repository( - name = "io_k8s_gengo_v2", - importpath = "k8s.io/gengo/v2", - sum = "h1:cErOOTkQ3JW19o4lo91fFurouhP8NcoBvb7CkvhZZpk=", - version = "v2.0.0-20240826214909-a7b603a56eb7", - ) - go_repository( - name = "io_k8s_klog_v2", - importpath = "k8s.io/klog/v2", - sum = "h1:n9Xl7H1Xvksem4KFG4PYbdQCQxqc/tTUyrgXaOhHSzk=", - version = "v2.130.1", - ) - go_repository( - name = "io_k8s_kube_openapi", - importpath = "k8s.io/kube-openapi", - sum = "h1:hcha5B1kVACrLujCKLbr8XWMxCxzQx42DY8QKYJrDLg=", - version = "v0.0.0-20241212222426-2c72e554b1e7", - ) - go_repository( - name = "io_k8s_sigs_apiserver_network_proxy_konnectivity_client", - importpath = "sigs.k8s.io/apiserver-network-proxy/konnectivity-client", - sum = "h1:CPT0ExVicCzcpeN4baWEV2ko2Z/AsiZgEdwgcfwLgMo=", - version = "v0.31.0", - ) - go_repository( - name = "io_k8s_sigs_controller_runtime", - build_file_proto_mode = "disable_global", - importpath = "sigs.k8s.io/controller-runtime", - sum = "h1:JbGMAG/X94NeM3xvjenVUaBjy6Ui4Ogd/J5ZtjZnHaE=", - version = "v0.20.1", - ) - go_repository( - name = "io_k8s_sigs_json", - importpath = "sigs.k8s.io/json", - sum = "h1:gBQPwqORJ8d8/YNZWEjoZs7npUVDpVXUUOFfW6CgAqE=", - version = "v0.0.0-20241014173422-cfa47c3a1cc8", - ) - go_repository( - name = "io_k8s_sigs_structured_merge_diff_v4", - importpath = "sigs.k8s.io/structured-merge-diff/v4", - sum = "h1:nbCitCK2hfnhyiKo6uf2HxUPTCodY6Qaf85SbDIaMBk=", - version = "v4.5.0", - ) - go_repository( - name = "io_k8s_sigs_yaml", - importpath = "sigs.k8s.io/yaml", - sum = "h1:Mk1wCc2gy/F0THH0TAp1QYyJNzRm2KCLy3o5ASXVI5E=", - version = "v1.4.0", - ) - go_repository( - name = "io_k8s_utils", - importpath = "k8s.io/utils", - sum = "h1:sdbE21q2nlQtFh65saZY+rRM6x6aJJI8IUa1AmH/qa0=", - version = "v0.0.0-20241210054802-24370beab758", - ) - go_repository( - name = "io_opencensus_go", - importpath = "go.opencensus.io", - sum = "h1:LYy1Hy3MJdrCdMwwzxA/dRok4ejH+RwNGbuoD9fCjto=", - version = "v0.22.4", - ) - go_repository( - name = "io_opentelemetry_go_auto_sdk", - importpath = "go.opentelemetry.io/auto/sdk", - sum = "h1:cH53jehLUN6UFLY71z+NDOiNJqDdPRaXzTel0sJySYA=", - version = "v1.1.0", - ) - go_repository( - name = "io_opentelemetry_go_contrib_instrumentation_net_http_otelhttp", - importpath = "go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp", - sum = "h1:4K4tsIXefpVJtvA/8srF4V4y0akAoPHkIslgAkjixJA=", - version = "v0.53.0", - ) - go_repository( - name = "io_opentelemetry_go_otel", - importpath = "go.opentelemetry.io/otel", - sum = "h1:zRLXxLCgL1WyKsPVrgbSdMN4c0FMkDAskSTQP+0hdUY=", - version = "v1.34.0", - ) - go_repository( - name = "io_opentelemetry_go_otel_exporters_otlp_otlptrace", - importpath = "go.opentelemetry.io/otel/exporters/otlp/otlptrace", - sum = "h1:3Q/xZUyC1BBkualc9ROb4G8qkH90LXEIICcs5zv1OYY=", - version = "v1.28.0", - ) - go_repository( - name = "io_opentelemetry_go_otel_exporters_otlp_otlptrace_otlptracegrpc", - importpath = "go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc", - sum = "h1:qFffATk0X+HD+f1Z8lswGiOQYKHRlzfmdJm0wEaVrFA=", - version = "v1.27.0", - ) - go_repository( - name = "io_opentelemetry_go_otel_metric", - importpath = "go.opentelemetry.io/otel/metric", - sum = "h1:+eTR3U0MyfWjRDhmFMxe2SsW64QrZ84AOhvqS7Y+PoQ=", - version = "v1.34.0", - ) - go_repository( - name = "io_opentelemetry_go_otel_sdk", - importpath = "go.opentelemetry.io/otel/sdk", - sum = "h1:b9d7hIry8yZsgtbmM0DKyPWMMUMlK9NEKuIG4aBqWyE=", - version = "v1.28.0", - ) - go_repository( - name = "io_opentelemetry_go_otel_trace", - importpath = "go.opentelemetry.io/otel/trace", - sum = "h1:+ouXS2V8Rd4hp4580a8q23bg0azF2nI8cqLYnC8mh/k=", - version = "v1.34.0", - ) - go_repository( - name = "io_opentelemetry_go_proto_otlp", - importpath = "go.opentelemetry.io/proto/otlp", - sum = "h1:TrMUixzpM0yuc/znrFTP9MMRh8trP93mkCiDVeXrui0=", - version = "v1.3.1", - ) - go_repository( - name = "io_rsc_binaryregexp", - importpath = "rsc.io/binaryregexp", - sum = "h1:HfqmD5MEmC0zvwBuF187nq9mdnXjXsSivRiXN7SmRkE=", - version = "v0.2.0", - ) - go_repository( - name = "io_rsc_quote_v3", - importpath = "rsc.io/quote/v3", - sum = "h1:9JKUTTIUgS6kzR9mK1YuGKv6Nl+DijDNIc0ghT58FaY=", - version = "v3.1.0", - ) - go_repository( - name = "io_rsc_sampler", - importpath = "rsc.io/sampler", - sum = "h1:7uVkIFmeBqHfdjD+gZwtXXI+RODJ2Wc4O7MPEh/QiW4=", - version = "v1.3.0", - ) - go_repository( - name = "org_golang_google_api", - importpath = "google.golang.org/api", - sum = "h1:yfrXXP61wVuLb0vBcG6qaOoIoqYEzOQS8jum51jkv2w=", - version = "v0.30.0", - ) - go_repository( - name = "org_golang_google_appengine", - importpath = "google.golang.org/appengine", - sum = "h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c=", - version = "v1.6.7", - ) - go_repository( - name = "org_golang_google_genproto", - importpath = "google.golang.org/genproto", - sum = "h1:PDIOdWxZ8eRizhKa1AAvY53xsvLB1cWorMjslvY3VA8=", - version = "v0.0.0-20200825200019-8632dd797987", - ) - go_repository( - name = "org_golang_google_genproto_googleapis_api", - importpath = "google.golang.org/genproto/googleapis/api", - sum = "h1:A2ni10G3UlplFrWdCDJTl7D7mJ7GSRm37S+PDimaKRw=", - version = "v0.0.0-20250127172529-29210b9bc287", - ) - go_repository( - name = "org_golang_google_genproto_googleapis_rpc", - importpath = "google.golang.org/genproto/googleapis/rpc", - sum = "h1:J1H9f+LEdWAfHcez/4cvaVBox7cOYT+IU6rgqj5x++8=", - version = "v0.0.0-20250127172529-29210b9bc287", - ) - go_repository( - name = "org_golang_google_grpc", - importpath = "google.golang.org/grpc", - sum = "h1:zWnc1Vrcno+lHZCOofnIMvycFcc0QRGIzm9dhnDX68E=", - version = "v1.67.1", - ) - go_repository( - name = "org_golang_google_protobuf", - importpath = "google.golang.org/protobuf", - sum = "h1:6A3ZDJHn/eNqc1i+IdefRzy/9PokBTPvcqMySR7NNIM=", - version = "v1.36.4", - ) - go_repository( - name = "org_golang_x_crypto", - importpath = "golang.org/x/crypto", - sum = "h1:euUpcYgM8WcP71gNpTqQCn6rC2t6ULUPiOzfWaXVVfc=", - version = "v0.32.0", - ) - go_repository( - name = "org_golang_x_exp", - importpath = "golang.org/x/exp", - sum = "h1:KL/ZBHXgKGVmuZBZ01Lt57yE5ws8ZPSkkihmEyq7FXc=", - version = "v0.0.0-20250128182459-e0ece0dbea4c", - ) - go_repository( - name = "org_golang_x_image", - importpath = "golang.org/x/image", - sum = "h1:+qEpEAPhDZ1o0x3tHzZTQDArnOixOzGD9HUJfcg0mb4=", - version = "v0.0.0-20190802002840-cff245a6509b", - ) - go_repository( - name = "org_golang_x_lint", - importpath = "golang.org/x/lint", - sum = "h1:Wh+f8QHJXR411sJR8/vRBTZ7YapZaRvUcLFFJhusH0k=", - version = "v0.0.0-20200302205851-738671d3881b", - ) - go_repository( - name = "org_golang_x_mobile", - importpath = "golang.org/x/mobile", - sum = "h1:4+4C/Iv2U4fMZBiMCc98MG1In4gJY5YRhtpDNeDeHWs=", - version = "v0.0.0-20190719004257-d2bd2a29d028", - ) - go_repository( - name = "org_golang_x_mod", - importpath = "golang.org/x/mod", - sum = "h1:D4nJWe9zXqHOmWqj4VMOJhvzj7bEZg4wEYa759z1pH4=", - version = "v0.22.0", - ) - go_repository( - name = "org_golang_x_net", - importpath = "golang.org/x/net", - sum = "h1:Mb7Mrk043xzHgnRM88suvJFwzVrRfHEHJEl5/71CKw0=", - version = "v0.34.0", - ) - go_repository( - name = "org_golang_x_oauth2", - importpath = "golang.org/x/oauth2", - sum = "h1:CY4y7XT9v0cRI9oupztF8AgiIu99L/ksR/Xp/6jrZ70=", - version = "v0.25.0", - ) - go_repository( - name = "org_golang_x_sync", - importpath = "golang.org/x/sync", - sum = "h1:3NQrjDixjgGwUOCaF8w2+VYHv0Ve/vGYSbdkTa98gmQ=", - version = "v0.10.0", - ) - go_repository( - name = "org_golang_x_sys", - importpath = "golang.org/x/sys", - sum = "h1:TPYlXGxvx1MGTn2GiZDhnjPA9wZzZeGKHHmKhHYvgaU=", - version = "v0.29.0", - ) - go_repository( - name = "org_golang_x_telemetry", - importpath = "golang.org/x/telemetry", - sum = "h1:zf5N6UOrA487eEFacMePxjXAJctxKmyjKUsjA11Uzuk=", - version = "v0.0.0-20240521205824-bda55230c457", - ) - go_repository( - name = "org_golang_x_term", - importpath = "golang.org/x/term", - sum = "h1:/Ts8HFuMR2E6IP/jlo7QVLZHggjKQbhu/7H0LJFr3Gg=", - version = "v0.28.0", - ) - go_repository( - name = "org_golang_x_text", - importpath = "golang.org/x/text", - sum = "h1:zyQAAkrwaneQ066sspRyJaG9VNi/YJ1NfzcGB3hZ/qo=", - version = "v0.21.0", - ) - go_repository( - name = "org_golang_x_time", - importpath = "golang.org/x/time", - sum = "h1:EsRrnYcQiGH+5FfbgvV4AP7qEZstoyrHB0DzarOQ4ZY=", - version = "v0.9.0", - ) - go_repository( - name = "org_golang_x_tools", - importpath = "golang.org/x/tools", - sum = "h1:Xx0h3TtM9rzQpQuR4dKLrdglAmCEN5Oi+P74JdhdzXE=", - version = "v0.29.0", - ) - go_repository( - name = "org_golang_x_xerrors", - importpath = "golang.org/x/xerrors", - sum = "h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE=", - version = "v0.0.0-20200804184101-5ec99f83aff1", - ) - go_repository( - name = "org_mongodb_go_mongo_driver", - importpath = "go.mongodb.org/mongo-driver", - sum = "h1:gvZyk8352qSfzyZ2UMWcpDpMSGEr1eqE4T793SqyhzM=", - version = "v1.17.2", - ) - go_repository( - name = "org_uber_go_atomic", - importpath = "go.uber.org/atomic", - sum = "h1:ZvwS0R+56ePWxUNi+Atn9dWONBPp/AUETXlHW0DxSjE=", - version = "v1.11.0", - ) - go_repository( - name = "org_uber_go_automaxprocs", - importpath = "go.uber.org/automaxprocs", - sum = "h1:O3y2/QNTOdbF+e/dpXNNW7Rx2hZ4sTIPyybbxyNqTUs=", - version = "v1.6.0", - ) - go_repository( - name = "org_uber_go_goleak", - importpath = "go.uber.org/goleak", - sum = "h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto=", - version = "v1.3.0", - ) - go_repository( - name = "org_uber_go_multierr", - importpath = "go.uber.org/multierr", - sum = "h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0=", - version = "v1.11.0", - ) - go_repository( - name = "org_uber_go_zap", - importpath = "go.uber.org/zap", - sum = "h1:aJMhYGrd5QSmlpLMr2MftRKl7t8J8PTZPA732ud/XR8=", - version = "v1.27.0", - ) - go_repository( - name = "tools_gotest_v3", - importpath = "gotest.tools/v3", - sum = "h1:EENdUnS3pdur5nybKYIh2Vfgc8IUNBjxDPSjtiJcOzU=", - version = "v3.5.1", - ) - go_repository( - name = "xyz_gomodules_jsonpatch_v2", - importpath = "gomodules.xyz/jsonpatch/v2", - sum = "h1:Ci3iUJyx9UeRx7CeFN8ARgGbkESwJK+KB9lLcWxY/Zw=", - version = "v2.4.0", - ) diff --git a/internal/alert/BUILD.bazel b/internal/alert/BUILD.bazel deleted file mode 100644 index cc51e03..0000000 --- a/internal/alert/BUILD.bazel +++ /dev/null @@ -1,39 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "alert", - srcs = ["sync.go"], - importpath = "github.com/cloudflare/sciuro/internal/alert", - visibility = ["//:__subpackages__"], - deps = [ - "@com_github_go_logr_logr//:logr", - "@com_github_google_cel_go//cel:go_default_library", - "@com_github_google_cel_go//checker/decls:go_default_library", - "@com_github_google_cel_go//common/types:go_default_library", - "@com_github_prometheus_alertmanager//api/v2/client", - "@com_github_prometheus_alertmanager//api/v2/client/alert", - "@com_github_prometheus_alertmanager//api/v2/models", - "@com_github_prometheus_alertmanager//cli", - "@com_github_prometheus_client_golang//api", - "@com_github_prometheus_client_golang//api/prometheus/v1:prometheus", - "@com_github_prometheus_client_golang//prometheus", - "@com_github_prometheus_common//model", - "@io_k8s_apimachinery//pkg/util/wait", - "@io_k8s_sigs_controller_runtime//pkg/manager", - ], -) - -go_test( - name = "alert_test", - timeout = "short", - srcs = ["sync_test.go"], - embed = [":alert"], - deps = [ - "@com_github_go_logr_logr//:logr", - "@com_github_prometheus_client_golang//api/prometheus/v1:prometheus", - "@com_github_prometheus_common//model", - "@com_github_stretchr_testify//assert", - "@com_github_stretchr_testify//mock", - "@io_k8s_sigs_controller_runtime//pkg/metrics", - ], -) diff --git a/internal/node/BUILD.bazel b/internal/node/BUILD.bazel deleted file mode 100644 index 8693d2b..0000000 --- a/internal/node/BUILD.bazel +++ /dev/null @@ -1,45 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -go_library( - name = "node", - srcs = ["reconciler.go"], - importpath = "github.com/cloudflare/sciuro/internal/node", - visibility = ["//:__subpackages__"], - deps = [ - "//internal/alert", - "@com_github_go_logr_logr//:logr", - "@com_github_prometheus_client_golang//api/prometheus/v1:prometheus", - "@com_github_prometheus_client_golang//prometheus", - "@io_k8s_api//core/v1:core", - "@io_k8s_apimachinery//pkg/api/equality", - "@io_k8s_apimachinery//pkg/api/errors", - "@io_k8s_apimachinery//pkg/apis/meta/v1:meta", - "@io_k8s_sigs_controller_runtime//pkg/client", - "@io_k8s_sigs_controller_runtime//pkg/reconcile", - ], -) - -go_test( - name = "node_test", - timeout = "short", - srcs = ["reconciler_test.go"], - embed = [":node"], - deps = [ - "//internal/alert", - "@com_github_go_logr_logr//:logr", - "@com_github_google_go_cmp//cmp", - "@com_github_google_go_cmp//cmp/cmpopts", - "@com_github_prometheus_client_golang//api/prometheus/v1:prometheus", - "@com_github_prometheus_client_golang//prometheus", - "@com_github_prometheus_common//model", - "@com_github_stretchr_testify//mock", - "@io_k8s_api//core/v1:core", - "@io_k8s_apimachinery//pkg/api/equality", - "@io_k8s_apimachinery//pkg/apis/meta/v1:meta", - "@io_k8s_apimachinery//pkg/runtime", - "@io_k8s_apimachinery//pkg/types", - "@io_k8s_sigs_controller_runtime//pkg/client/fake", - "@io_k8s_sigs_controller_runtime//pkg/reconcile", - "@tools_gotest_v3//assert", - ], -) diff --git a/k8s_rules.patch b/k8s_rules.patch deleted file mode 100644 index 83a47ba..0000000 --- a/k8s_rules.patch +++ /dev/null @@ -1,14 +0,0 @@ -diff --git a/k8s/objects.bzl b/k8s/objects.bzl -index dda6dc1..8fa920e 100644 ---- a/k8s/objects.bzl -+++ b/k8s/objects.bzl -@@ -106,9 +106,3 @@ def k8s_objects(name, objects, **kwargs): - # TODO(mattmoor): We may have to normalize the labels that come - # in through objects. - _run_all(name = name, objects = _cmd_objects("", objects), delimiter = "echo ---\n", **kwargs) -- _run_all(name = name + ".resolve", objects = _cmd_objects("", objects), delimiter = "echo ---\n", **kwargs) -- _run_all(name = name + ".create", objects = _cmd_objects(".create", objects), **kwargs) -- _run_all(name = name + ".delete", objects = _cmd_objects(".delete", objects, True), **kwargs) -- _run_all(name = name + ".replace", objects = _cmd_objects(".replace", objects), **kwargs) -- _run_all(name = name + ".apply", objects = _cmd_objects(".apply", objects), **kwargs) -- _run_all(name = name + ".diff", objects = _cmd_objects(".diff", objects), wrap_exits = True, **kwargs) \ No newline at end of file diff --git a/manifests/BUILD.bazel b/manifests/BUILD.bazel deleted file mode 100644 index 62e9648..0000000 --- a/manifests/BUILD.bazel +++ /dev/null @@ -1,22 +0,0 @@ -load("@io_bazel_rules_k8s//k8s:objects.bzl", "k8s_objects") - -k8s_objects( - name = "stable", - objects = [ - "//manifests/namespaced:sciuro-configmap", - "//manifests/namespaced:sciuro-serviceaccount", - "//manifests/namespaced:sciuro-deployment", - "//manifests/namespaced:sciuro-leader", - "//manifests/namespaced:sciuro-role", - "//manifests/namespaced:sciuro-rolebinding", - ], -) - -k8s_objects( - name = "cluster", - objects = [ - "//manifests/non-namespaced:sciuro-namespace", - "//manifests/non-namespaced:sciuro-clusterrole", - "//manifests/non-namespaced:sciuro-clusterrolebinding", - ], -) diff --git a/manifests/namespaced/BUILD.bazel b/manifests/namespaced/BUILD.bazel deleted file mode 100644 index 984cc5c..0000000 --- a/manifests/namespaced/BUILD.bazel +++ /dev/null @@ -1,43 +0,0 @@ -load("@io_bazel_rules_k8s//k8s:object.bzl", "k8s_object") -load("@k8s_deploy//:defaults.bzl", "k8s_deploy") - -package(default_visibility = ["//manifests:__pkg__"]) - -k8s_deploy( - name = "sciuro-configmap", - kind = "configmap", - template = ":configmap.yaml", -) - -k8s_deploy( - name = "sciuro-deployment", - images = { - "sciuro:{STABLE_GIT_TAG}": "//cmd/sciuro:image", - }, - kind = "deployment", - template = ":deployment.yaml", -) - -k8s_deploy( - name = "sciuro-serviceaccount", - kind = "serviceaccount", - template = ":serviceaccount.yaml", -) - -k8s_deploy( - name = "sciuro-role", - kind = "role", - template = ":role.yaml", -) - -k8s_deploy( - name = "sciuro-rolebinding", - kind = "rolebinding", - template = ":rolebinding.yaml", -) - -k8s_deploy( - name = "sciuro-leader", - kind = "configmap", - template = ":sciuro-leader.yaml", -) diff --git a/manifests/namespaced/deployment.yaml b/manifests/namespaced/deployment.yaml index b24a64b..264e094 100644 --- a/manifests/namespaced/deployment.yaml +++ b/manifests/namespaced/deployment.yaml @@ -18,7 +18,7 @@ spec: restartPolicy: Always containers: - name: sciuro - image: sciuro:{STABLE_GIT_TAG} + image: docker.io/cloudflare/sciuro imagePullPolicy: IfNotPresent resources: limits: diff --git a/manifests/namespaced/kustomization.yaml b/manifests/namespaced/kustomization.yaml new file mode 100644 index 0000000..2237737 --- /dev/null +++ b/manifests/namespaced/kustomization.yaml @@ -0,0 +1,9 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- configmap.yaml +- serviceaccount.yaml +- deployment.yaml +- sciuro-leader.yaml +- role.yaml +- rolebinding.yaml diff --git a/manifests/non-namespaced/BUILD.bazel b/manifests/non-namespaced/BUILD.bazel deleted file mode 100644 index a575c9a..0000000 --- a/manifests/non-namespaced/BUILD.bazel +++ /dev/null @@ -1,25 +0,0 @@ -load("@io_bazel_rules_k8s//k8s:object.bzl", "k8s_object") -load("@k8s_deploy//:defaults.bzl", "k8s_deploy") - -package(default_visibility = ["//manifests:__pkg__"]) - -k8s_deploy( - name = "sciuro-namespace", - kind = "namespace", - template = ":namespace.yaml", -) - -k8s_deploy( - name = "sciuro-clusterrole", - kind = "clusterrole", - template = ":clusterrole.yaml", -) - -k8s_deploy( - name = "sciuro-clusterrolebinding", - kind = "clusterrolebinding", - substitutions = { - "kube-system": "$(namespace)", - }, - template = ":clusterrolebinding.yaml", -) diff --git a/manifests/non-namespaced/kustomization.yaml b/manifests/non-namespaced/kustomization.yaml new file mode 100644 index 0000000..59ca4b5 --- /dev/null +++ b/manifests/non-namespaced/kustomization.yaml @@ -0,0 +1,6 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: +- namespace.yaml +- clusterrole.yaml +- clusterrolebinding.yaml diff --git a/tools/bazel b/tools/bazel deleted file mode 100755 index 39201eb..0000000 --- a/tools/bazel +++ /dev/null @@ -1,75 +0,0 @@ -#!/bin/bash - -set -o errexit - -# Bazelisk will execute `%workspace%/tools/bazel` like Bazel. If we detect we're -# being executed by Bazelisk, short-circuit the rest of this script and execute -# the already downloaded version. -if [ -n "${BAZELISK_SKIP_WRAPPER}" ] && [ -n "${BAZEL_REAL}" ]; then - exec "${BAZEL_REAL}" "$@" -fi - -PLATFORM="$(uname -s | tr '[:upper:]' '[:lower:]')" -ARCH="$(uname -m)" - -REMOTE_RELEASE="https://github.com/bazelbuild/bazelisk/releases/download" -BAZELISK_VERSION="v1.1.0" - -if [ "${ARCH}" != "x86_64" ]; then - (>&2 echo "bazelisk is not hermetically sealed for this architecture, falling back to bazel-real") - exec bazel-real "$@" -fi - -if [ "${ARCH}" == "x86_64" ]; then - ARCH="amd64" -fi - -EXE_EXT="" -case "${PLATFORM}" in - msys*|mingw*|cygwin*) - PLATFORM="windows" - EXE_EXT=".exe" - BAZELISK_SHA256="c3461282354db5a35b3c5279ff1d386c102f5d8eac0824a9ae0f6a467a632bef" - ;; - darwin) - BAZELISK_SHA256="88add23f1e0963d6347aadb2a4570e9924b58b33437518e8b9cfb94aa7cca31b" - ;; - linux) - BAZELISK_SHA256="d20be9dfb311c596efd1579d30c0fdab0d5ba62ec76b316ada3a8e69f4194bbe" - ;; - *) - (>&2 echo "bazelisk is not hermetically sealed for this platform, falling back to bazel-real") - exac bazel-real "$@" - ;; -esac - -XDG_CACHE="${XDG_CACHE_HOME:=$HOME/.cache}" -BAZELISK_BIN_CACHE="${XDG_CACHE}/bazel" -BAZELISK_BIN_DIR="${BAZELISK_BIN_CACHE}/${BAZELISK_VERSION}" - -BAZELISK_BIN="bazelisk-${PLATFORM}-${ARCH}${EXE_EXT}" - -function download_bazelisk() { - local tempfile - local url - - tempfile=$(mktemp -t bazeldl-XXXXXXXXXX) - url="${REMOTE_RELEASE}/${BAZELISK_VERSION}/${BAZELISK_BIN}" - (>&2 printf "Downloading bazelisk %s from %s.\n" "${BAZELISK_VERSION}" "${url}") - - (>&2 curl --location "${url}" --output "${tempfile}") - echo "${BAZELISK_SHA256} ${tempfile}" | sha256sum --check --status - - - chmod +x "${tempfile}" - mv "${tempfile}" "${BAZELISK_BIN_DIR}/${BAZELISK_BIN}" -} - -if [ ! -x "${BAZELISK_BIN_DIR}/${BAZELISK_BIN}" ]; then - (>&2 mkdir -p "${BAZELISK_BIN_DIR}") - download_bazelisk -fi - -# Execute the Bazelisk we downloaded. `BAZELISK_SKIP_WRAPPER` -# informs Bazelisk that it shouldn't re-execute this script. -export BAZELISK_SKIP_WRAPPER="true" -exec "${BAZELISK_BIN_DIR}/${BAZELISK_BIN}" "$@" diff --git a/tools/ci.bazelrc b/tools/ci.bazelrc deleted file mode 100644 index 3f30e90..0000000 --- a/tools/ci.bazelrc +++ /dev/null @@ -1,9 +0,0 @@ -startup --batch -build --noshow_progress --noshow_loading_progress -build --verbose_failures -test --test_output=errors -test --features=race - -build --define repo=docker.io/cloudflare -test --define repo=docker.io/cloudflare -run --define repo=docker.io/cloudflare diff --git a/tools/print-workspace-status b/tools/print-workspace-status deleted file mode 100755 index 7901ca4..0000000 --- a/tools/print-workspace-status +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/env sh - -echo STABLE_GIT_TAG $(git describe --always --tags --match "v[0-9].*" --dirty) From 1d2b6b63c7bf0ce20c1afd70c1a38faa1c51a313 Mon Sep 17 00:00:00 2001 From: Kazuki Suda Date: Mon, 9 Feb 2026 16:32:18 +0900 Subject: [PATCH 2/2] Fix linting errors --- internal/node/reconciler_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/node/reconciler_test.go b/internal/node/reconciler_test.go index e1aa890..25fed66 100644 --- a/internal/node/reconciler_test.go +++ b/internal/node/reconciler_test.go @@ -191,7 +191,7 @@ func Test_Reconcile(t *testing.T) { } mock.AssertExpectationsForObjects(t, ac) actual := &corev1.Node{} - assert.NilError(t, c.Get(context.TODO(), types.NamespacedName{Name: tt.expected.ObjectMeta.Name}, actual)) + assert.NilError(t, c.Get(context.TODO(), types.NamespacedName{Name: tt.expected.Name}, actual)) assert.DeepEqual(t, tt.expected, actual, cmpopts.IgnoreFields(v1.ObjectMeta{}, "ResourceVersion"), cmpopts.IgnoreTypes(v1.TypeMeta{}))