diff --git a/docs/book/src/quick-start.md b/docs/book/src/quick-start.md index 9f44049716..227b7cddbe 100644 --- a/docs/book/src/quick-start.md +++ b/docs/book/src/quick-start.md @@ -9,9 +9,6 @@ This Quick Start guide will cover: ## Installation -Install [kustomize](https://sigs.k8s.io/kustomize). - - Install [kubebuilder](https://sigs.k8s.io/kubebuilder): ```bash @@ -27,6 +24,19 @@ sudo mv /tmp/kubebuilder_2.0.0-alpha.0_${os}_${arch} /usr/local/kubebuilder export PATH=$PATH:/usr/local/kubebuilder/bin ``` +You can also install a KubeBuilder master snapshot from +`https://go.kubebuilder.io/dl/latest/${os}/${arch}`. + +Install [kustomize](https://sigs.k8s.io/kustomize): + +```bash +os=$(go env GOOS) +arch=$(go env GOARCH) + +# download kustomize to the kubebuilder assets folder +curl -o /usr/local/kubebuilder/bin/kustomize -sL https://go.kubebuilder.io/dl/latest/${os}/${arch} +``` + ## Create a Project Initialize a new project and Go module for your controllers: diff --git a/netlify.toml b/netlify.toml index bc80baa2c0..21696f288c 100644 --- a/netlify.toml +++ b/netlify.toml @@ -43,14 +43,33 @@ status = 302 force = true +[[redirects]] + from = "https://go.kubebuilder.io/releases/latest/:os" + to = "https://go.kubebuilder.io/releases/latest/:os/amd64" + status = 302 + force = true + [[redirects]] from = "https://go.kubebuilder.io/releases/:version/:os" to = "https://go.kubebuilder.io/releases/:version/:os/amd64" status = 302 force = true +[[redirects]] + from = "https://go.kubebuilder.io/releases/latest/:os/:arch" + to = "https://storage.googleapis.com/kubebuilder-release/kubebuilder_master_:os_:arch.tar.gz" + status = 302 + force = true + [[redirects]] from = "https://go.kubebuilder.io/releases/:version/:os/:arch" to = "https://github.com/kubernetes-sigs/kubebuilder/releases/download/v:version/kubebuilder_:version_:os_:arch.tar.gz" status = 302 force = true + +# TODO(directxman12): change this to standard kustomize when the next version is released (2.1.0) +[[redirects]] + from = "https://go.kubebuilder.io/kustomize/:os/:arch" + to = "https://storage.googleapis.com/kubebuilder-kustomize/kustomize_:os_:arch" + status = 302 + force = true