Git Product home page Git Product logo

repo-infra's Introduction

Kubernetes repository infrastructure

This repository contains repository infrastructure tools for use in kubernetes and kubernetes-incubator repositories. Examples:

  • Boilerplate verification
  • Gofmt 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 wll 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:
  3. A commit that squashes the git history of the repo-infra project
  4. 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

repo-infra's People

Contributors

eparis avatar mikedanese avatar pmorie avatar sarahnovotny avatar spxtr avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.