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.
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:
Kubernetes repository infrastructure
This repository contains repository infrastructure tools for use in
kubernetesandkubernetes-incubatorrepositories. Examples:Using this repository
This repository can be used via some golang “vendoring” mechanism (such as glide), or it can be used via git subtree.
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
--rootdircommand line parameter to let theverify-boilerplate.shknow its location, eg:Using
git subtreeWhen using the git subtree mechanism, this repository should be placed in the top level of your project.
To add
repo-infrato your repository, use the following commands from the root directory of your repository.First, add a git remote for the
repo-infrarepository:This is not strictly necessary, but reduces the typing required for subsequent commands.
Next, use
git subtree addto create a new subtree in therepo-infradirectory within your project:After this command, you will have:
repo-infradirectory in your project containing the content of this projectrepo-infraprojectHEADof the branch prior to when you rangit subtree addrepo-infracommitsContributing
Please see CONTRIBUTING.md for instructions on how to contribute.