forked from kubernetes-sigs/kubebuilder
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fork [apiserver-builder](https://github.com/kubernetes-incubator/apis…
…erver-builder) as kubebuilder
- Loading branch information
Showing
13,135 changed files
with
4,265,850 additions
and
5 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Copyright 2018 The Kubernetes Authors. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
# gazelle:proto disable | ||
load("@io_bazel_rules_go//go:def.bzl", "gazelle") | ||
|
||
gazelle( | ||
name = "gazelle", | ||
command = "fix", | ||
prefix = "github.com/kubernetes-sigs/kubebuilder", | ||
external = "vendored", | ||
args = [ | ||
"-build_file_name", | ||
"BUILD,BUILD.bazel", | ||
], | ||
) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
# Contributing guidelines | ||
|
||
## Sign the CLA | ||
|
||
Kubernetes projects require that you sign a Contributor License Agreement (CLA) before we can accept your pull requests. | ||
Please see https://git.k8s.io/community/CLA.md for more info | ||
|
||
### Contributing A Patch | ||
|
||
1. Submit an issue describing your proposed change to the repo in question. | ||
1. The [repo owners](OWNERS) will respond to your issue promptly. | ||
1. If your proposed change is accepted, and you haven't already done so, sign a Contributor License Agreement (see details above). | ||
1. Fork the desired repo, develop and test your code changes. | ||
1. Submit a pull request. | ||
|
||
## How to build kubebuilder locally | ||
|
||
Setup: | ||
|
||
- Download [google container builder] | ||
- Export `GOOS` (darwin/linux) and `GOARCH` (amd64) vars to match the system to build | ||
- Export `OUTPUT` to a location to write the directory containing the final build artifacts | ||
|
||
```sh | ||
export GOOS=darwin | ||
export GOARCH=amd64 | ||
export OUTPUT=/tmp/kubebuilder | ||
``` | ||
|
||
Run container-builder: | ||
|
||
```sh | ||
container-builder-local --config=build/cloudbuild_local.yaml --dryrun=false \ | ||
--substitutions=_GOOS=$GOOS,_GOARCH=$GOARCH --write-workspace=$OUTPUT . | ||
``` | ||
|
||
Extract `tar.gz` from $OUTPUT to /usr/local | ||
|
||
## Running kubebuilder tests | ||
|
||
```sh | ||
go test ./pkg/... | ||
``` | ||
|
||
## Community, discussion, contribution, and support | ||
|
||
Learn how to engage with the Kubernetes community on the [community page](http://kubernetes.io/community/). | ||
|
||
You can reach the maintainers of this project at: | ||
|
||
- [Slack](http://slack.k8s.io/) | ||
- [Mailing List](https://groups.google.com/forum/#!forum/kubernetes-kubebuilder) | ||
|
||
### Code of conduct | ||
|
||
Participation in the Kubernetes community is governed by the [Kubernetes Code of Conduct](code-of-conduct.md). | ||
|
||
[google container builder]: https://github.com/kubernetes-sigs/container-builder-local |
Oops, something went wrong.