forked from kubernetes-sigs/kubebuilder
-
Notifications
You must be signed in to change notification settings - Fork 2
/
netlify.toml
123 lines (103 loc) · 3.46 KB
/
netlify.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
[build]
base = "docs/book"
command = "./install-and-build.sh"
publish = "docs/book/book"
# Standard Netlify redirects
[[redirects]]
from = "https://kubebuilder.netlify.com/*"
to = "https://book.kubebuilder.io/:splat"
status = 301
force = true
# HTTP-to-HTTPS rules
[[redirects]]
from = "http://go.kubebuilder.io/*"
to = "https://go.kubebuilder.io/:splat"
status = 301
force = true
[[redirects]]
from = "http://kubebuilder.netlify.com/*"
to = "http://book.kubebuilder.io/:splat"
status = 301
force = true
# Go Links
[[redirects]]
from = "https://go.kubebuilder.io/dl/*"
to = "https://go.kubebuilder.io/releases/:splat"
status = 301
force = true
[[redirects]]
from = "https://go.kubebuilder.io/releases"
to = "https://github.com/kubernetes-sigs/kubebuilder/releases"
status = 302
force = true
[[redirects]]
from = "https://go.kubebuilder.io/releases/:version"
to = "https://github.com/kubernetes-sigs/kubebuilder/releases/v:version"
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
[[redirects]]
from = "https://go.kubebuilder.io/test-tools"
to = "https://storage.googleapis.com/kubebuilder-tools"
status = 302
force = true
[[redirects]]
from = "https://go.kubebuilder.io/test-tools/:version"
to = "https://storage.googleapis.com/kubebuilder-tools/?prefix=kubebuilder-tools-:version"
status = 302
force = true
[[redirects]]
from = "https://go.kubebuilder.io/test-tools/:version/:os"
to = "https://storage.googleapis.com/kubebuilder-tools/kubebuilder-tools-:version-:os-amd64.tar.gz"
status = 302
force = true
[[redirects]]
from = "https://go.kubebuilder.io/test-tools/:version/:os/:arch"
to = "https://storage.googleapis.com/kubebuilder-tools/kubebuilder-tools-:version-:os-:arch.tar.gz"
status = 302
force = true
[[redirects]]
from = "https://go.kubebuilder.io/images"
to = "gcr.io/kubebuilder"
status = 302
force = true
[[redirects]]
from = "https://go.kubebuilder.io/images/:os"
to = "gcr.io/kubebuilder/thirdparty-:os"
status = 302
force = true
[[redirects]]
from = "https://go.kubebuilder.io/images/:os/:version"
to = "gcr.io/kubebuilder/thirdparty-:os::version"
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
# custom 404 handling -- this may need to be last -- netlify docs are unclear
[[redirects]]
from = "/*"
to = "/404.html"
status = 404