Skip to content

Commit ab85f03

Browse files
authored
Merge pull request #495 from mengqiy/build_locally
update how to build kubebuilder locally
2 parents 99c17c9 + ca294cb commit ab85f03

File tree

1 file changed

+7
-19
lines changed

1 file changed

+7
-19
lines changed

CONTRIBUTING.md

Lines changed: 7 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -16,27 +16,15 @@ Please see https://git.k8s.io/community/CLA.md for more info.
1616

1717
## How to build kubebuilder locally
1818

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-
```
2519
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+
3624
1. Test
37-
```sh
38-
go test ./pkg/...
39-
```
25+
```sh
26+
$ ./test.sh
27+
```
4028

4129
## Community, discussion and support
4230

0 commit comments

Comments
 (0)