File tree Expand file tree Collapse file tree 1 file changed +7
-19
lines changed Expand file tree Collapse file tree 1 file changed +7
-19
lines changed Original file line number Diff line number Diff line change @@ -16,27 +16,15 @@ Please see https://git.k8s.io/community/CLA.md for more info.
16
16
17
17
## How to build kubebuilder locally
18
18
19
- 1 . Setup tools
20
- 1 . Download and setup [ gcloud] ( https://cloud.google.com/sdk/docs/downloads-interactive )
21
- 1 . Install ` cloud-build-local ` via ` gcloud `
22
- ``` bash
23
- $ gcloud components install cloud-build-local
24
- ```
25
19
1 . Build
26
- 1. Export ` OUTPUT` to a location to write the directory containing the final build artifacts
27
- ` ` ` sh
28
- $ export OUTPUT=/tmp/kubebuilder
29
- ` ` `
30
- 2. Run container-builder:
31
- ` ` ` sh
32
- $ cloud-build-local --config=build/cloudbuild_local.yaml --dryrun=false \
33
- --write-workspace=$OUTPUT .
34
- ` ` `
35
- 1. Extract ` tar.gz` from $OUTPUT to /usr/local
20
+ ``` sh
21
+ $ go build -o /output/path/kubebuilder ./cmd
22
+ ```
23
+
36
24
1 . Test
37
- ` ` ` sh
38
- go test ./pkg/...
39
- ` ` `
25
+ ``` sh
26
+ $ ./test.sh
27
+ ```
40
28
41
29
## Community, discussion and support
42
30
You can’t perform that action at this time.
0 commit comments