Skip to content

Commit

Permalink
Merge pull request #106 from astoycos/release-0.1.0
Browse files Browse the repository at this point in the history
Release 0.1.0
  • Loading branch information
k8s-ci-robot authored May 23, 2023
2 parents b8440dd + 04ee5b3 commit 7321d85
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 21 deletions.
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Changelog

## Table of Contents

- [v0.1.0](#v010)

# v0.1.0

API Version: v1alpha1

This is the initial release of the network-policy-api. It includes two
main resources geared towards cluster admins:

- AdminNetworkPolicy
- BaselineAdminNetworkPolicy

Please check out the [network-policy-api website](https://network-policy-api.sigs.k8s.io/) for more information.
15 changes: 0 additions & 15 deletions RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,6 @@ For a **PATCH** release:
in the upcoming steps.
- Use `git` to cherry-pick all relevant PRs into your branch.
- Update `pkg/generator/main.go` with the new semver tag and any updates to the API review URL.
- Run the following command `BASE_REF=vmajor.minor.patch make generate` which
will update generated docs and webhook with the correct version info. (Note
that you can't test with these YAMLs yet as they contain references to
elements which wont exist until the tag is cut and image is promoted to
production registry.)
- Create a pull request of the `<githubuser>/release-x.x.x` branch into the `release-x.x` branch upstream
(which should already exist since this is a patch release). Add a hold on this PR waiting for at least
one maintainer/codeowner to provide a `lgtm`.
Expand All @@ -64,11 +59,6 @@ For a **MAJOR** or **MINOR** release:
- Cut a `release-major.minor` branch that we can tag things in as needed.
- Check out the `release-major.minor` release branch locally.
- Update `pkg/generator/main.go` with the new semver tag and any updates to the API review URL.
- Run the following command `BASE_REF=vmajor.minor.patch make generate` which
will update generated docs and webhook with the correct version info. (Note
that you can't test with these YAMLs yet as they contain references to
elements which wont exist until the tag is cut and image is promoted to
production registry.)
- Verify the CI tests pass before continuing.
- Create a tag using the `HEAD` of the `release-x.x` branch. This can be done using the `git` CLI or
Github's [release][release] page.
Expand All @@ -79,11 +69,6 @@ For a **MAJOR** or **MINOR** release:
For an **RC** release:

- Update `pkg/generator/main.go` with the new semver tag and any updates to the API review URL.
- Run the following command `BASE_REF=vmajor.minor.patch make generate` which
will update generated docs and webhook with the correct version info. (Note
that you can't test with these YAMLs yet as they contain references to
elements which wont exist until the tag is cut and image is promoted to
production registry.)
- Include the changelog update in this PR.
- Merge the update PR.
- Tag the release using the commit on `main` where the changelog update merged.
Expand Down
4 changes: 2 additions & 2 deletions config/crd/policy.networking.k8s.io_adminnetworkpolicies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
api-approved.kubernetes.io: https://github.com/kubernetes-sigs/network-policy-api/issues/90
policy.networking.k8s.io/bundle-version: ""
api-approved.kubernetes.io: https://github.com/kubernetes-sigs/network-policy-api/pull/106
policy.networking.k8s.io/bundle-version: v0.1.0
creationTimestamp: null
name: adminnetworkpolicies.policy.networking.k8s.io
spec:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
api-approved.kubernetes.io: https://github.com/kubernetes-sigs/network-policy-api/issues/90
policy.networking.k8s.io/bundle-version: ""
api-approved.kubernetes.io: https://github.com/kubernetes-sigs/network-policy-api/pull/106
policy.networking.k8s.io/bundle-version: v0.1.0
creationTimestamp: null
name: baselineadminnetworkpolicies.policy.networking.k8s.io
spec:
Expand Down
4 changes: 2 additions & 2 deletions pkg/generator/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ const (
bundleVersionAnnotation = "policy.networking.k8s.io/bundle-version"

// These values must be updated during the release process
bundleVersion = ""
approvalLink = "https://github.com/kubernetes-sigs/network-policy-api/issues/90"
bundleVersion = "v0.1.0"
approvalLink = "https://github.com/kubernetes-sigs/network-policy-api/pull/106"
)

// This generation code is largely copied from
Expand Down

0 comments on commit 7321d85

Please sign in to comment.