From 6fca9a1e32dc063e6bba1ce0a1c3e65aebc21934 Mon Sep 17 00:00:00 2001 From: Solly Ross Date: Thu, 16 May 2019 16:41:22 -0700 Subject: [PATCH 1/3] Go links for kustomize and snapshot builds This adds a Go link for downloading kustomize (our own particular version), and the master snapshot builds. --- netlify.toml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) 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 From f7325577158420d0c90e0ce50acf348ef2cc6def Mon Sep 17 00:00:00 2001 From: Solly Ross Date: Thu, 16 May 2019 16:44:02 -0700 Subject: [PATCH 2/3] Update book with kustomize go link This updates the book with the kustomize go link and adds a brief block on installing kustomize from that link. --- docs/book/src/quick-start.md | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/docs/book/src/quick-start.md b/docs/book/src/quick-start.md index d74642e908..956e8e36a7 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,16 @@ sudo mv /tmp/kubebuilder/kubebuilder_2.0.0_${os}_${arch} /user/local/kubebuilder export PATH=$PATH:/usr/local/kubebuilder/bin ``` +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: From bef32d2f0f5c74559b9ce60c608051e9e12187d9 Mon Sep 17 00:00:00 2001 From: Solly Ross Date: Thu, 16 May 2019 16:46:53 -0700 Subject: [PATCH 3/3] Mention master snapshot releases This mentions master snapshot releases in the installation. --- docs/book/src/quick-start.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/book/src/quick-start.md b/docs/book/src/quick-start.md index 956e8e36a7..76e809537c 100644 --- a/docs/book/src/quick-start.md +++ b/docs/book/src/quick-start.md @@ -24,6 +24,9 @@ sudo mv /tmp/kubebuilder/kubebuilder_2.0.0_${os}_${arch} /user/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