sigs.k8s.io/kubebuilder/v3@v3.14.0/netlify.toml (about) 1 [build] 2 base = "docs/book" 3 command = "GO_VERSION=1.20 ./install-and-build.sh" 4 publish = "docs/book/book" 5 functions = "docs/book/functions" 6 7 # TODO(directxman12): I don't know why, but this (functions) stanza is in the 8 # docs and local `netlify dev`, but the above one (under build) is used by the 9 # online version :-/ 10 11 # used to handle the split between v2 and v3+ download links 12 [functions] 13 # relative to base directory 14 directory = "functions" 15 16 # Standard Netlify redirects 17 [[redirects]] 18 from = "https://kubebuilder.netlify.com/*" 19 to = "https://book.kubebuilder.io/:splat" 20 status = 301 21 force = true 22 23 # HTTP-to-HTTPS rules 24 [[redirects]] 25 from = "http://go.kubebuilder.io/*" 26 to = "https://go.kubebuilder.io/:splat" 27 status = 301 28 force = true 29 30 [[redirects]] 31 from = "http://kubebuilder.netlify.com/*" 32 to = "http://book.kubebuilder.io/:splat" 33 status = 301 34 force = true 35 36 # kubebuilder binary (v3+) and tarball (< v3) redirects. 37 [[redirects]] 38 from = "https://go.kubebuilder.io/dl/*" 39 to = "https://go.kubebuilder.io/releases/:splat" 40 status = 301 41 force = true 42 43 [[redirects]] 44 from = "https://go.kubebuilder.io/releases" 45 to = "https://github.com/kubernetes-sigs/kubebuilder/releases" 46 status = 302 47 force = true 48 49 # Development branch redirect. 50 [[redirects]] 51 from = "https://go.kubebuilder.io/releases/master/:os/:arch" 52 to = "https://storage.googleapis.com/kubebuilder-release/kubebuilder_master_:os_:arch.tar.gz" 53 status = 302 54 force = true 55 56 # Latest redirects. 57 [[redirects]] 58 from = "https://go.kubebuilder.io/releases/latest" 59 to = "https://github.com/kubernetes-sigs/kubebuilder/releases/latest" 60 status = 302 61 force = true 62 63 [[redirects]] 64 from = "https://go.kubebuilder.io/releases/latest/:os" 65 to = "https://go.kubebuilder.io/releases/latest/:os/amd64" 66 status = 302 67 force = true 68 69 [[redirects]] 70 from = "https://go.kubebuilder.io/releases/latest/:os/:arch" 71 to = "https://github.com/kubernetes-sigs/kubebuilder/releases/latest/download/kubebuilder_:os_:arch" 72 status = 302 73 force = true 74 75 # general release redirects 76 [[redirects]] 77 from = "https://go.kubebuilder.io/releases/:version" 78 to = "https://github.com/kubernetes-sigs/kubebuilder/releases/v:version" 79 status = 302 80 force = true 81 82 [[redirects]] 83 from = "https://go.kubebuilder.io/releases/:version/:os" 84 to = "https://go.kubebuilder.io/releases/:version/:os/amd64" 85 status = 302 86 force = true 87 88 # release download redirect 89 [[redirects]] 90 from = "https://go.kubebuilder.io/releases/:version/:os/:arch" 91 # I don't quite know why, but netlify (or at least the dev mode) *insists* 92 # on eating every other query parameter, so just use paths instead 93 to = "/.netlify/functions/handle-version/releases/:version/:os/:arch" 94 # 200 --> don't redirect to the function then to whereever it says, 95 # just pretend like the function is mounted directly here 96 status = 200 97 force = true 98 99 # Tools redirects. 100 [[redirects]] 101 from = "https://go.kubebuilder.io/test-tools" 102 to = "https://storage.googleapis.com/kubebuilder-tools" 103 status = 302 104 force = true 105 106 [[redirects]] 107 from = "https://go.kubebuilder.io/test-tools/:k8sversion" 108 to = "https://storage.googleapis.com/kubebuilder-tools/?prefix=kubebuilder-tools-:k8sversion" 109 status = 302 110 force = true 111 112 [[redirects]] 113 from = "https://go.kubebuilder.io/test-tools/:k8sversion/:os" 114 to = "https://storage.googleapis.com/kubebuilder-tools/kubebuilder-tools-:k8sversion-:os-amd64.tar.gz" 115 status = 302 116 force = true 117 118 [[redirects]] 119 from = "https://go.kubebuilder.io/test-tools/:k8sversion/:os/:arch" 120 to = "https://storage.googleapis.com/kubebuilder-tools/kubebuilder-tools-:k8sversion-:os-:arch.tar.gz" 121 status = 302 122 force = true 123 124 # Image redirects. 125 [[redirects]] 126 from = "https://go.kubebuilder.io/images" 127 to = "gcr.io/kubebuilder" 128 status = 302 129 force = true 130 131 [[redirects]] 132 from = "https://go.kubebuilder.io/images/:os" 133 to = "https://go.kubebuilder.io/images/:os/amd64" 134 status = 302 135 force = true 136 137 [[redirects]] 138 from = "https://go.kubebuilder.io/images/:os/:arch" 139 to = "gcr.io/kubebuilder/thirdparty-:os-:arch" 140 status = 302 141 force = true 142 143 [[redirects]] 144 from = "https://go.kubebuilder.io/images/:os/:arch/:k8sversion" 145 to = "gcr.io/kubebuilder/thirdparty-:os-:arch::k8sversion" 146 status = 302 147 force = true 148 149 # custom 404 handling -- this may need to be last -- netlify docs are unclear 150 [[redirects]] 151 from = "/*" 152 to = "/404.html" 153 status = 404