diff --git a/docs/book/install-and-build.sh b/docs/book/install-and-build.sh index 81c72a7bdd8..ccac433a850 100755 --- a/docs/book/install-and-build.sh +++ b/docs/book/install-and-build.sh @@ -71,7 +71,7 @@ chmod +x /tmp/mdbook echo "grabbing the latest released controller-gen" go version -go install sigs.k8s.io/controller-tools/cmd/controller-gen@v0.12.1 +go install sigs.k8s.io/controller-tools/cmd/controller-gen@v0.15.0 # make sure we add the go bin directory to our path gobin=$(go env GOBIN) diff --git a/docs/book/src/reference/artifacts.md b/docs/book/src/reference/artifacts.md index f1a5275fb6c..915a9e26d25 100644 --- a/docs/book/src/reference/artifacts.md +++ b/docs/book/src/reference/artifacts.md @@ -1,16 +1,44 @@ # Artifacts +# Artifacts + + + + Kubebuilder publishes test binaries and container images in addition to the main binary releases. -## Test Binaries +## **(Deprecated)** - Test Binaries (Used by ENV TEST) You can find test binary tarballs for all Kubernetes versions and host platforms at `https://go.kubebuilder.io/test-tools`. You can find a test binary tarball for a particular Kubernetes version and host platform at `https://go.kubebuilder.io/test-tools/${version}/${os}/${arch}`. -## Container Images + + -You can find all container image versions for a particular platform at `https://go.kubebuilder.io/images/${os}/${arch}` -or at `gcr.io/kubebuilder/thirdparty-${os}-${arch}`. -You can find the container image for a particular Kubernetes version and host platform at `https://go.kubebuilder.io/images/${os}/${arch}/${version}` -or at `gcr.io/kubebuilder/thirdparty-${os}-${arch}:${version}`. +[env-test-doc]: ./envtest.md +[controller-runtime]: https://github.com/kubernetes-sigs/controller-runtime +[controller-gen]: https://github.com/kubernetes-sigs/controller-tools/releases +[readme]: https://github.com/kubernetes-sigs/controller-runtime/blob/main/tools/setup-envtest/README.md \ No newline at end of file diff --git a/docs/book/src/reference/envtest.md b/docs/book/src/reference/envtest.md index 6506f035fa8..028de4ed39c 100644 --- a/docs/book/src/reference/envtest.md +++ b/docs/book/src/reference/envtest.md @@ -318,9 +318,17 @@ testEnv = &envtest.Environment{ } ``` + + [metrics]: https://book.kubebuilder.io/reference/metrics.html [envtest]: https://pkg.go.dev/sigs.k8s.io/controller-runtime/pkg/envtest [setup-envtest]: https://pkg.go.dev/sigs.k8s.io/controller-runtime/tools/setup-envtest [cert-manager]: https://book.kubebuilder.io/cronjob-tutorial/cert-manager.html [sdk-e2e-sample-example]: https://github.com/operator-framework/operator-sdk/tree/master/testdata/go/v4/memcached-operator/test/e2e [sdk]: https://github.com/operator-framework/operator-sdk +[readme]: https://github.com/kubernetes-sigs/controller-runtime/blob/main/tools/setup-envtest/README.md \ No newline at end of file diff --git a/netlify.toml b/netlify.toml index d3dd304a5a0..76dac51e22d 100644 --- a/netlify.toml +++ b/netlify.toml @@ -1,6 +1,6 @@ [build] base = "docs/book" - command = "GO_VERSION=1.20 ./install-and-build.sh" + command = "GO_VERSION=1.22.0 ./install-and-build.sh" publish = "docs/book/book" functions = "docs/book/functions" @@ -121,31 +121,6 @@ status = 302 force = true -# Image redirects. -[[redirects]] - from = "https://go.kubebuilder.io/images" - to = "gcr.io/kubebuilder" - status = 302 - force = true - -[[redirects]] - from = "https://go.kubebuilder.io/images/:os" - to = "https://go.kubebuilder.io/images/:os/amd64" - status = 302 - force = true - -[[redirects]] - from = "https://go.kubebuilder.io/images/:os/:arch" - to = "gcr.io/kubebuilder/thirdparty-:os-:arch" - status = 302 - force = true - -[[redirects]] - from = "https://go.kubebuilder.io/images/:os/:arch/:k8sversion" - to = "gcr.io/kubebuilder/thirdparty-:os-:arch::k8sversion" - status = 302 - force = true - # custom 404 handling -- this may need to be last -- netlify docs are unclear [[redirects]] from = "/*"