-
Notifications
You must be signed in to change notification settings - Fork 520
Initial commit of release automation tooling. #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
---|---|---|
@@ -1,2 +1,107 @@ | ||
# release | ||
Release infrastructure for Kubernetes and related components | ||
Table of Contents | ||
================= | ||
* [Intro](#intro) | ||
* [Instructions (Quick Start)](#instructions-quick-start) | ||
* [Other Tools](#other-tools) | ||
* [Tools](#tools) | ||
* [Release Notes Gathering](#release-notes-gathering) | ||
|
||
# Kubernetes Release Process | ||
|
||
This repo contains the release infrastructure for | ||
[Kubernetes](https://github.com/kubernetes/kubernetes). | ||
|
||
## Intro | ||
|
||
Kubernetes releases are done by the Kubernetes team at Google due to | ||
permissions and other restrictions. This may expand eventually to allow | ||
other Kubernetes contributors to generate releases. | ||
|
||
The current process runs by default in *mock* mode and anyone should | ||
be able to run it in this mode to see exactly how the process works. | ||
In *mock* mode all the code paths are followed for a release, but nothing | ||
is pushed to repositories. | ||
|
||
Sticking with the ancient Greek theme, the release script is called `anago`. | ||
Anago means, in the context of navigators and shipping: | ||
"to launch out, set sail, put to sea." | ||
|
||
Tools in this repository includes a familiar [\*nix-style man | ||
page](https://github.com/kubernetes/release/blob/master/anago) with usage, | ||
process and examples. The link shows how the self-contained doc/man page | ||
makes up the header of the script itself and the same info is available | ||
on the command-line (or get usage simply by calling the script with no options): | ||
|
||
``` | ||
$ anago -man | ||
``` | ||
|
||
The idea is that no external doc updates should be necessary and the | ||
tool itself contains all of the details and instructions and prerequisite | ||
checks needed for anyone to run the tool in at least mock mode. | ||
|
||
There is a simple $USER check to ensure that noone but a certain few people can | ||
run the script with --nomock to perform a real release. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
|
||
## Instructions (Quick Start) | ||
|
||
The tool was designed to require minimal inputs. | ||
The only information the tool needs is to know where you want to create a | ||
release with one optional flag `[--official]` \(used on release-\* branches only\). | ||
|
||
Try an alpha release: | ||
``` | ||
$ anago master | ||
``` | ||
|
||
Try a beta release on a branch: | ||
``` | ||
$ anago release-1.2 | ||
``` | ||
|
||
Try an official release on a branch: | ||
``` | ||
$ anago release-1.2 --official | ||
``` | ||
|
||
Try a beta release on a new branch: | ||
``` | ||
$ anago release-9.9 | ||
``` | ||
|
||
Try creating a new branch and beta for an emergency zero-day fix: | ||
``` | ||
$ anago release-9.9.9 | ||
``` | ||
|
||
## Other Tools | ||
|
||
All standalone scripts have embedded man pages. Just use `-man` to view or | ||
your favorite editor. | ||
|
||
### Tools | ||
|
||
* [mailer](https://github.com/kubernetes/release/blob/master/mailer) : Generic mail interface (due to Google's deprecation of sendmail) | ||
* [find_green_job](https://github.com/kubernetes/release/blob/master/find_green_job) : Ask Jenkins for a good build to use | ||
* [script-template](https://github.com/kubernetes/release/blob/master/script-template) : Generate a script template in the kubernetes/release ecosystem | ||
* [relnotes](https://github.com/kubernetes/release/blob/master/relnotes) : Scrape github for release notes \(See below for more info\) | ||
|
||
### Release Notes Gathering | ||
|
||
``` | ||
# get details on how to use the tool | ||
$ relnotes -man | ||
$ cd /kubernetes | ||
|
||
# Show release notes from the last release on a branch to HEAD | ||
$ relnotes | ||
|
||
# Show release notes from the last release on a specific branch to branch HEAD | ||
$ relnotes --branch=release-1.2 | ||
|
||
# Show release notes between two specific releases | ||
$ relnotes v1.2.0..1.2.1 --branch=release-1.2 | ||
``` | ||
|
||
Please report *any* [issues](https://github.com/kubernetes/release/issues) | ||
you encounter. |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no one
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$USER