Skip to content

Commit 0d2a3bd

Browse files
committed
1 parent 3622ad2 commit 0d2a3bd

File tree

13,135 files changed

+4265850
-5
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

13,135 files changed

+4265850
-5
lines changed

BUILD.bazel

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Copyright 2018 The Kubernetes Authors.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# gazelle:proto disable
16+
load("@io_bazel_rules_go//go:def.bzl", "gazelle")
17+
18+
gazelle(
19+
name = "gazelle",
20+
command = "fix",
21+
prefix = "github.com/kubernetes-sigs/kubebuilder",
22+
external = "vendored",
23+
args = [
24+
"-build_file_name",
25+
"BUILD,BUILD.bazel",
26+
],
27+
)
28+

CONTRIBUTING.md

+58
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
# Contributing guidelines
2+
3+
## Sign the CLA
4+
5+
Kubernetes projects require that you sign a Contributor License Agreement (CLA) before we can accept your pull requests.
6+
Please see https://git.k8s.io/community/CLA.md for more info
7+
8+
### Contributing A Patch
9+
10+
1. Submit an issue describing your proposed change to the repo in question.
11+
1. The [repo owners](OWNERS) will respond to your issue promptly.
12+
1. If your proposed change is accepted, and you haven't already done so, sign a Contributor License Agreement (see details above).
13+
1. Fork the desired repo, develop and test your code changes.
14+
1. Submit a pull request.
15+
16+
## How to build kubebuilder locally
17+
18+
Setup:
19+
20+
- Download [google container builder]
21+
- Export `GOOS` (darwin/linux) and `GOARCH` (amd64) vars to match the system to build
22+
- Export `OUTPUT` to a location to write the directory containing the final build artifacts
23+
24+
```sh
25+
export GOOS=darwin
26+
export GOARCH=amd64
27+
export OUTPUT=/tmp/kubebuilder
28+
```
29+
30+
Run container-builder:
31+
32+
```sh
33+
container-builder-local --config=build/cloudbuild_local.yaml --dryrun=false \
34+
--substitutions=_GOOS=$GOOS,_GOARCH=$GOARCH --write-workspace=$OUTPUT .
35+
```
36+
37+
Extract `tar.gz` from $OUTPUT to /usr/local
38+
39+
## Running kubebuilder tests
40+
41+
```sh
42+
go test ./pkg/...
43+
```
44+
45+
## Community, discussion, contribution, and support
46+
47+
Learn how to engage with the Kubernetes community on the [community page](http://kubernetes.io/community/).
48+
49+
You can reach the maintainers of this project at:
50+
51+
- [Slack](http://slack.k8s.io/)
52+
- [Mailing List](https://groups.google.com/forum/#!forum/kubernetes-kubebuilder)
53+
54+
### Code of conduct
55+
56+
Participation in the Kubernetes community is governed by the [Kubernetes Code of Conduct](code-of-conduct.md).
57+
58+
[google container builder]: https://github.com/kubernetes-sigs/container-builder-local

0 commit comments

Comments
 (0)