Skip to content

Commit 498b501

Browse files
authored
Merge pull request #713 from DirectXMan12/go-links/kustomize
Kustomize and Snapshot Go Links
2 parents 3e19daa + bef32d2 commit 498b501

File tree

2 files changed

+32
-3
lines changed

2 files changed

+32
-3
lines changed

docs/book/src/quick-start.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@ This Quick Start guide will cover:
99

1010
## Installation
1111

12-
Install [kustomize](https://sigs.k8s.io/kustomize).
13-
14-
1512
Install [kubebuilder](https://sigs.k8s.io/kubebuilder):
1613

1714
```bash
@@ -27,6 +24,19 @@ sudo mv /tmp/kubebuilder_2.0.0-alpha.0_${os}_${arch} /usr/local/kubebuilder
2724
export PATH=$PATH:/usr/local/kubebuilder/bin
2825
```
2926

27+
You can also install a KubeBuilder master snapshot from
28+
`https://go.kubebuilder.io/dl/latest/${os}/${arch}`.
29+
30+
Install [kustomize](https://sigs.k8s.io/kustomize):
31+
32+
```bash
33+
os=$(go env GOOS)
34+
arch=$(go env GOARCH)
35+
36+
# download kustomize to the kubebuilder assets folder
37+
curl -o /usr/local/kubebuilder/bin/kustomize -sL https://go.kubebuilder.io/dl/latest/${os}/${arch}
38+
```
39+
3040
## Create a Project
3141

3242
Initialize a new project and Go module for your controllers:

netlify.toml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,33 @@
4343
status = 302
4444
force = true
4545

46+
[[redirects]]
47+
from = "https://go.kubebuilder.io/releases/latest/:os"
48+
to = "https://go.kubebuilder.io/releases/latest/:os/amd64"
49+
status = 302
50+
force = true
51+
4652
[[redirects]]
4753
from = "https://go.kubebuilder.io/releases/:version/:os"
4854
to = "https://go.kubebuilder.io/releases/:version/:os/amd64"
4955
status = 302
5056
force = true
5157

58+
[[redirects]]
59+
from = "https://go.kubebuilder.io/releases/latest/:os/:arch"
60+
to = "https://storage.googleapis.com/kubebuilder-release/kubebuilder_master_:os_:arch.tar.gz"
61+
status = 302
62+
force = true
63+
5264
[[redirects]]
5365
from = "https://go.kubebuilder.io/releases/:version/:os/:arch"
5466
to = "https://github.com/kubernetes-sigs/kubebuilder/releases/download/v:version/kubebuilder_:version_:os_:arch.tar.gz"
5567
status = 302
5668
force = true
69+
70+
# TODO(directxman12): change this to standard kustomize when the next version is released (2.1.0)
71+
[[redirects]]
72+
from = "https://go.kubebuilder.io/kustomize/:os/:arch"
73+
to = "https://storage.googleapis.com/kubebuilder-kustomize/kustomize_:os_:arch"
74+
status = 302
75+
force = true

0 commit comments

Comments
 (0)