You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With Bzlmod, repository creation and toolchain registration must be separated:
32
+
33
+
- Module extensions may create external repositories but may not call `register_toolchains()`.
34
+
- Toolchains must be registered in the root `MODULE.bazel` via the `register_toolchains(...)` directive.
35
+
36
+
This repo provides module extensions to download the Kubebuilder SDK, controller-gen, and kustomize. Register the toolchains directly using labels from this repo.
Note: The macros in `controller-gen/deps.bzl` and `kustomize/deps.bzl` call `native.register_toolchains(...)` and are intended for WORKSPACE-based setups. Do not call these macros from a module extension.
86
+
29
87
And in your `go_test()` files, add `etcd` as a data dependency like this:
30
88
31
89
```starlark
@@ -64,7 +122,7 @@ bazel run //:kubebuilder -- --help
64
122
In order to use `controller-gen` you will need to do something like the following in your `api/v1alpha1` directory (essentially where the `*_type.go` files are):
0 commit comments