eventing/hack
Pierangelo Di Pilato 609a0642b4
Prevent knative-nightly integrations image references from being released (#8521)
Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com>
2025-03-19 17:57:15 +00:00
..
boilerplate Updates for Go 1.19 (#6594) 2022-11-08 14:04:18 +00:00
OWNERS Update OWNERS_ALIASES to match autogen in community (#5188) 2021-05-05 12:34:53 -07:00
README.md Drop master references to knative repos (#5036) 2021-03-09 01:25:25 -08:00
create-kind-cluster.sh Update KinD e2e workflow (#8411) 2025-01-16 06:47:03 +00:00
e2e-debug.sh JobSink: Delete secrets associated with jobs when jobs are deleted (#8331) 2024-11-19 08:00:59 +00:00
generate-yamls.sh Move job sink certificate out of config core (#7993) 2024-06-12 06:41:10 +00:00
install.sh Add Kubernetes Version Check to Installation Script (#8025) 2024-07-04 15:37:38 +00:00
reference-docs-gen-config.json Fix broken links (#6030) 2022-01-07 02:40:23 -08:00
release.sh Prevent knative-nightly integrations image references from being released (#8521) 2025-03-19 17:57:15 +00:00
run.sh chore: fix lint errors (#8089) 2024-07-10 05:35:20 +00:00
teardown.sh chore: fix lint errors (#8089) 2024-07-10 05:35:20 +00:00
tools.go chore: fix lint errors (#8089) 2024-07-10 05:35:20 +00:00
update-cert-manager.sh Bump cert manager and use their clientset (#8520) 2025-03-12 06:25:36 +00:00
update-checksums.sh Remove unsupported stackdriver tracing backend (#5881) 2021-11-08 14:16:43 -08:00
update-codegen.sh Bump cert manager and use their clientset (#8520) 2025-03-12 06:25:36 +00:00
update-deps.sh Eventing TLS: Install Cert Manager as part of the test setup phase (#6850) 2023-04-11 14:27:48 +00:00
update-reference-docs.sh Add API doc generation to codegen (#5504) 2021-06-15 14:31:21 -07:00
verify-codegen.sh use the new hack repo. (#4410) 2020-10-27 16:47:34 -07:00

README.md

Assorted scripts for development

This directory contains several scripts useful in the development process of Knative Eventing.

  • boilerplate/add-boilerplate.sh Adds license boilerplate to txt or go files in a directory, recursively.
  • release.sh Creates a new release of Knative Eventing.
  • update-codegen.sh Updates auto-generated client libraries.
  • update-deps.sh Updates Go dependencies.
  • verify-codegen.sh Verifies that auto-generated client libraries are up-to-date.

Creating a release

Note: only Knative leads can create versioned releases.

See https://github.com/knative/test-infra/blob/main/ci for more information on creating releases.

Creating a major version release

GitHub UI

  1. Click the Branch dropdown.

  2. Type the desired release-X.Y branch name into the search box.

  3. Click the Create branch: release-X.Y from 'master' button. You must have write permissions to the repo to create a branch.

    Prow will detect the new release branch and run the release.sh script. If the build succeeds, a new tag vX.Y.0 will be created and a GitHub release published. If the build fails, logs can be retrieved from https://testgrid.knative.dev/eventing#auto-release.

  4. Write release notes and add them to the release.

Git CLI

  1. Fetch the upstream remote.

    git fetch upstream
    
  2. Create a release-X.Y branch from upstream/master.

    git branch --no-track release-X.Y upstream/master
    
  3. Push the branch to upstream.

    git push upstream release-X.Y
    

    You must have write permissions to the repo to create a branch.

    Prow will detect the new release branch and run the release.sh script. If the build succeeds, a new tag vX.Y.0 will be created and a GitHub release published. If the build fails, logs can be retrieved from https://testgrid.knative.dev/eventing#auto-release.

  4. Write release notes and add them to the release.

The major version release job is currently called ci-knative-eventing-auto-release and runs every alternate hour.

Creating a minor version release

  1. Fetch the upstream remote.

    git fetch upstream
    
  2. Create a branch based on the desired release-X.Y branch.

    git co -b my-backport-branch upstream/release-X.Y
    
  3. Cherry-pick desired commits from master into the new branch.

    git cherry-pick <commitid>
    
  4. Push the branch to your fork.

    git push origin
    
  5. Create a PR for your branch based on the release-X.Y branch.

    Once the PR is merged, Prow will detect the new commits in the release branch and run the release.sh script. If the build succeeds, a new tag vX.Y.Z will be created (where Z is the current minor version number + 1) and a GitHub release published. If the build fails, logs can be retrieved from https://testgrid.knative.dev/eventing#dot-release.

  6. Write release notes and add them to the release.

The minor version release job is currently called ci-knative-eventing-dot-release and runs every Tuesday at 09:56 Pacific time.