You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
curl -L https://go.kubebuilder.io/dl/2.3.1/${os}/${arch}| tar -xz -C /tmp/
38
-
```
39
-
40
-
If you are using a Kubebuilder plugin version less than version `v3+`, you must configure the Kubernetes binaries required for the [envtest][envtest], run:
41
-
42
-
```bash
43
-
# move to a long-term location and put it on your path
44
-
# (you'll need to set the KUBEBUILDER_ASSETS env var if you put it somewhere else)
If you're not in `GOPATH`, you'll need to run `go mod init <modulename>` in order to tell kubebuilder and Go the base import path of your module.
65
+
If your project is initialized within [`GOPATH`][GOPATH-golang-docs], the implicitly called `go mod init` will interpolate the module path for you.
66
+
Otherwise `--repo=<module path>` must be set.
77
67
78
-
For a further understanding of `GOPATH` see [The GOPATH environment variable][GOPATH-golang-docs] in the [How to Write Go Code][how-to-write-go-code-golang-docs] golang page doc.
79
-
80
-
</aside>
81
-
82
-
<asideclass="note">
83
-
<h1>Go package issues</h1>
84
-
85
-
Ensure that you activate the module support by running `$ export GO111MODULE=on`
86
-
to solve issues as `cannot find package ... (from $GOROOT)`.
68
+
Read the [Go modules blogpost][go-modules-blogpost] if unfamiliar with the module system.
If you press `y` for Create Resource [y/n] and for Create Controller [y/n] then this will create the files `api/v1/guestbook_types.go` where the API is defined
84
+
If you press `y` for Create Resource [y/n] and for Create Controller [y/n] then this will create the files `api/v1/guestbook_types.go` where the API is defined
103
85
and the `controllers/guestbook_controller.go` where the reconciliation business logic is implemented for this Kind(CRD).
104
86
105
87
</aside>
@@ -162,7 +144,7 @@ type Guestbook struct {
162
144
</details>
163
145
164
146
165
-
## Test It Out
147
+
## Test It Out
166
148
167
149
You'll need a Kubernetes cluster to run against. You can use
168
150
[KIND](https://sigs.k8s.io/kind) to get a local cluster for testing, or
@@ -174,7 +156,7 @@ run against a remote cluster.
174
156
Your controller will automatically use the current context in your
@@ -216,7 +198,7 @@ make deploy IMG=<some-registry>/<project-name>:tag
216
198
If you encounter RBAC errors, you may need to grant yourself cluster-admin
217
199
privileges or be logged in as admin. See [Prerequisites for using Kubernetes RBAC on GKE cluster v1.11.x and older][pre-rbc-gke] which may be your case.
218
200
219
-
</aside>
201
+
</aside>
220
202
221
203
## Uninstall CRDs
222
204
@@ -234,13 +216,13 @@ UnDeploy the controller to the cluster:
234
216
make undeploy
235
217
```
236
218
237
-
## Next Step
219
+
## Next Step
238
220
239
-
Now, see the [architecture concept diagram][architecture-concept-diagram] for a better overview and follow up the [CronJob tutorial][cronjob-tutorial] to better understand how it works by developing a demo example project.
221
+
Now, see the [architecture concept diagram][architecture-concept-diagram] for a better overview and follow up the [CronJob tutorial][cronjob-tutorial] to better understand how it works by developing a demo example project.
Copy file name to clipboardExpand all lines: docs/book/src/reference/artifacts.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,12 +5,12 @@ to the main binary releases.
5
5
6
6
## Test Binaries
7
7
8
-
You can find all of the test binaries at `https://go.kubebuilder.io/test-tools`.
9
-
You can find individual test binaries at `https://go.kubebuilder.io/test-tools/${version}/${os}/${arch}`.
8
+
You can find test binary tarballs for all Kubernetes versions and host platforms at `https://go.kubebuilder.io/test-tools`.
9
+
You can find a test binary tarball for a particular Kubernetes version and host platform at `https://go.kubebuilder.io/test-tools/${version}/${os}/${arch}`.
10
10
11
11
## Container Images
12
12
13
-
You can find all container images for your os at `https://go.kubebuilder.io/images/${os}`
14
-
or at `gcr.io/kubebuilder/thirdparty-${os}`.
15
-
You can find individual container images at `https://go.kubebuilder.io/images/${os}/${version}`
16
-
or at `gcr.io/kubebuilder/thirdparty-${os}:${version}`.
13
+
You can find all container image versions for a particular platform at `https://go.kubebuilder.io/images/${os}/${arch}`
14
+
or at `gcr.io/kubebuilder/thirdparty-${os}-${arch}`.
15
+
You can find the container image for a particular version and platform at `https://go.kubebuilder.io/images/${os}/${arch}/${version}`
16
+
or at `gcr.io/kubebuilder/thirdparty-${os}-${arch}:${version}`.
0 commit comments