Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

operators: make Bazel authoritative while still supporting kubebuilder #2837

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
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
2 changes: 2 additions & 0 deletions bazel/ci/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -337,10 +337,12 @@ sh_template(
"//internal/attestation/measurements/measurement-generator",
"//internal/versions/hash-generator",
"@go_sdk//:bin/go",
"@io_k8s_sigs_controller_tools//cmd/controller-gen",
"@org_golang_x_tools//cmd/stringer",
"@yq_toolchains//:resolved_toolchain",
],
substitutions = {
"@@CONTROLLER_GEN@@": "$(rootpath @io_k8s_sigs_controller_tools//cmd/controller-gen)",
"@@DOCGEN@@": "$(rootpath :com_github_siderolabs_talos_hack_docgen)",
"@@GO@@": "$(rootpath @go_sdk//:bin/go)",
"@@HASH_GENERATOR@@": "$(rootpath //internal/versions/hash-generator:hash-generator)",
Expand Down
3 changes: 3 additions & 0 deletions bazel/ci/go_generate.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ measurement_generator=$(realpath @@MEASUREMENT_GENERATOR@@)
stat "${measurement_generator}" >> /dev/null
yq=$(realpath @@YQ@@)
stat "${yq}" >> /dev/null
controller_gen=$(realpath @@CONTROLLER_GEN@@)
stat "${controller_gen}" >> /dev/null

cd "${BUILD_WORKSPACE_DIRECTORY}"

Expand All @@ -37,6 +39,7 @@ PATH=$(dirname "${helm}"):${PATH}
PATH=$(dirname "${hash_generator}"):${PATH}
PATH=$(dirname "${measurement_generator}"):${PATH}
PATH=$(dirname "${yq}"):${PATH}
PATH=$(dirname "${controller_gen}"):${PATH}
export PATH

submodules=$(${go} list -f '{{.Dir}}' -m)
Expand Down
Loading
Loading