-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Teach
oc adm release extract
to checkout Git repos
Accept `--git=DIR` and clone the repositories to that path, then checkout the correct commit. Also look up the current release image if not specified on CLI. Add simple changelog generator $ oc adm release info --changelog=/tmp/git ... Will generate an opinionated changelog in markdown from the payload. It requires `oc adm release extract --git=DIR` to be invoked first, and will scan for PR merge commits in those repos and expose them. Issues that begin with `Bug [0-9]+: ` will be linked to bugzilla. This will eventually also be able to print a list of bugs that can be marked as part of the payload.
- Loading branch information
1 parent
1221cce
commit f2d3d3e
Showing
8 changed files
with
1,056 additions
and
51 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,37 @@ | ||
package release | ||
|
||
const ( | ||
// This annotation is set in image-references when created with --from-release. | ||
annotationReleaseFromRelease = "release.openshift.io/from-release" | ||
// This annotation is set in image-references when created with --from-image-stream. | ||
annotationReleaseFromImageStream = "release.openshift.io/from-image-stream" | ||
|
||
// This value is set on images as LABEL to 'true' to indicate they should be | ||
// scanned for a /manifests/ directory to contribute to the payload. | ||
annotationReleaseOperator = "io.openshift.release.operator" | ||
|
||
// This is an internal annotation to indicate the source image was not derived | ||
// from an image stream or existing release but was manually specified. | ||
annotationReleaseOverride = "io.openshift.release.override" | ||
// This LABEL is set on images to indicate the manifest digest that was used | ||
// as the base layer for the release image (usually the cluster-version-operator). | ||
annotationReleaseBaseImageDigest = "io.openshift.release.base-image-digest" | ||
// This LABEL is a comma-delimited list of key=version pairs that can be consumed | ||
// by other manifests within the payload to hardcode version strings. Version must | ||
// be a semantic version with no build label (+ is not allowed) and key must be | ||
// alphanumeric characters and dashes only. The value `0.0.1-snapshot-key` in a | ||
// manifest will be substituted with the version value for key. | ||
annotationBuildVersions = "io.openshift.build.versions" | ||
|
||
// This LABEL is the git ref that an image was built with. Copied unmodified to | ||
// the image-references file. | ||
annotationBuildSourceRef = "io.openshift.build.commit.ref" | ||
// This LABEL is the full git commit hash that an image was built with. Copied | ||
// unmodified to the image-references file. | ||
annotationBuildSourceCommit = "io.openshift.build.commit.id" | ||
// This LABEL is the git clone location that an image was built with. Copied | ||
// unmodified to the image-references file. | ||
annotationBuildSourceLocation = "io.openshift.build.source-location" | ||
|
||
urlGithubPrefix = "https://github.com/" | ||
) |
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
Oops, something went wrong.