https://github.com/kubernetes/repo-infra
Kubernetes repository infrastucture tools
https://github.com/kubernetes/repo-infra
k8s-sig-testing
Last synced: 2 months ago
JSON representation
Kubernetes repository infrastucture tools
- Host: GitHub
- URL: https://github.com/kubernetes/repo-infra
- Owner: kubernetes
- License: apache-2.0
- Created: 2016-12-15T17:51:45.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-11-03T10:18:13.000Z (over 1 year ago)
- Last Synced: 2025-03-31T06:05:42.585Z (3 months ago)
- Topics: k8s-sig-testing
- Language: Starlark
- Homepage:
- Size: 956 KB
- Stars: 98
- Watchers: 19
- Forks: 85
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: code-of-conduct.md
- Security: SECURITY.md
Awesome Lists containing this project
README
# Kubernetes repository infrastructure
[](https://travis-ci.org/kubernetes/repo-infra) [](https://goreportcard.com/report/github.com/kubernetes/repo-infra)This repository contains repository infrastructure tools for use in
`kubernetes` and `kubernetes-incubator` repositories. Examples:- Boilerplate verification
- Go source code quality verification
- Golang build infrastructure---
## Using this repository
This repository can be used via some golang "vendoring" mechanism
(such as glide), or it can be used via
[git subtree](http://git.kernel.org/cgit/git/git.git/plain/contrib/subtree/git-subtree.txt).### Using "vendoring"
The exact mechanism to pull in this repository will vary depending on
the tool you use. However, unless you end up having this repository
at the root of your project's repository you will probably need to
make sure you use the `--rootdir` command line parameter to let the
`verify-boilerplate.sh` know its location, eg:verify-boilerplate.sh --rootdir=/home/myrepo
### Using `git subtree`
When using the git subtree mechanism, this repository should be placed in the
top level of your project.To add `repo-infra` to your repository, use the following commands from the
root directory of **your** repository.First, add a git remote for the `repo-infra` repository:
```
$ git remote add repo-infra git://github.com/kubernetes/repo-infra
```This is not strictly necessary, but reduces the typing required for subsequent
commands.Next, use `git subtree add` to create a new subtree in the `repo-infra`
directory within your project:```
$ git subtree add -P repo-infra repo-infra master --squash
```After this command, you will have:
1. A `repo-infra` directory in your project containing the content of **this**
project
2. 2 new commits in the active branch:
1. A commit that squashes the git history of the `repo-infra` project
2. A merge commit whose ancestors are:
1. The `HEAD` of the branch prior to when you ran `git subtree add`
2. The commit containing the squashed `repo-infra` commits### Contributing
Please see [CONTRIBUTING.md](CONTRIBUTING.md) for instructions on how to contribute.