Skip to content

Commit

Permalink
Merge pull request #4208 from KnVerey/release_instructions
Browse files Browse the repository at this point in the history
Small improvements to release instructions
  • Loading branch information
k8s-ci-robot committed Sep 27, 2021
2 parents 7153f33 + 6081287 commit 250ea13
Showing 1 changed file with 36 additions and 28 deletions.
64 changes: 36 additions & 28 deletions releasing/README.md
Expand Up @@ -87,7 +87,7 @@ echo $GITHUB_TOKEN | gh auth login --scopes repo --with-token
#### Establish clean state

```
refreshMaster
refreshMaster &&
testKustomizeRepo
```

Expand Down Expand Up @@ -123,16 +123,16 @@ Undraft the release on the [kustomize repo release page]:
#### Pin to the most recent kyaml

```
gorepomod pin kyaml --doIt
go mod edit -require=sigs.k8s.io/kustomize/kyaml@$versionKyaml plugin/builtin/prefixsuffixtransformer/go.mod
gorepomod pin kyaml --doIt &&
go mod edit -require=sigs.k8s.io/kustomize/kyaml@$versionKyaml plugin/builtin/prefixsuffixtransformer/go.mod &&
go mod edit -require=sigs.k8s.io/kustomize/kyaml@$versionKyaml plugin/builtin/replicacounttransformer/go.mod
```

Create the PR:
```
title="Pin to kyaml $versionKyaml"
createBranch pinToKyaml $title
createBranch pinToKyaml "Pin to kyaml $versionKyaml"
```
```
createPr
```

Expand All @@ -144,12 +144,14 @@ testKustomizeRepo
Wait for tests to pass, then merge the PR:
```
gh pr status
```
```
gh pr merge -m
```

Get back on master and do paranoia test:
```
refreshMaster
refreshMaster &&
testKustomizeRepo
```

Expand Down Expand Up @@ -188,8 +190,7 @@ gorepomod pin cmd/config --doIt

Create the PR:
```
title="Pin to cmd/config $versionCmdConfig"
createBranch pinToCmdConfig $title
createBranch pinToCmdConfig "Pin to cmd/config $versionCmdConfig" &&
createPr
```

Expand All @@ -201,12 +202,14 @@ testKustomizeRepo
Wait for tests to pass, then merge the PR:
```
gh pr status # rinse, repeat
```
```
gh pr merge -m
```

Get back on master and do paranoia test:
```
refreshMaster
refreshMaster &&
testKustomizeRepo
```

Expand Down Expand Up @@ -242,8 +245,7 @@ gorepomod pin api --doIt

Create the PR:
```
title="Pin to api $versionApi"
createBranch pinToApi $title
createBranch pinToApi "Pin to api $versionApi" &&
createPr
```

Expand All @@ -255,12 +257,14 @@ testKustomizeRepo
Wait for tests to pass, then merge the PR:
```
gh pr status # rinse, repeat
```
```
gh pr merge -m
```

Get back on master and do paranoia test:
```
refreshMaster
refreshMaster &&
testKustomizeRepo
```

Expand All @@ -282,14 +286,14 @@ Undraft the release on the [kustomize repo release page]:

## Confirm the kustomize binary is correct

> [installation instructions]: https://kubectl.docs.kubernetes.io/installation/kustomize/binaries/
>
> * Follow the [installation instructions] to install your new
> release and make sure it reports the expected version number.
>
> If not, something is very wrong.
>
> * Visit the [release page] and edit the release notes as desired.
[installation instructions]: https://kubectl.docs.kubernetes.io/installation/kustomize/binaries/

* Follow the [installation instructions] to install your new
release and make sure it reports the expected version number.

If not, something is very wrong.

* Visit the [release page] and edit the release notes as desired.


## Unpin everything
Expand All @@ -298,15 +302,14 @@ Undraft the release on the [kustomize repo release page]:
Go back into development mode, where all modules depend on in-repo code:

```
gorepomod unpin api --doIt
gorepomod unpin cmd/config --doIt
gorepomod unpin api --doIt &&
gorepomod unpin cmd/config --doIt &&
gorepomod unpin kyaml --doIt
```

Create the PR:
```
title="Back to development mode; unpin the modules"
createBranch unpinEverything
createBranch unpinEverything "Back to development mode; unpin the modules" &&
createPr
```

Expand All @@ -318,12 +321,14 @@ testKustomizeRepo
Wait for tests to pass, then merge the PR:
```
gh pr status # rinse, repeat
```
```
gh pr merge -m
```

Get back on master and do paranoia test:
```
refreshMaster
refreshMaster &&
testKustomizeRepo
```

Expand All @@ -336,14 +341,17 @@ to test examples against your new release.

```
sed -i "" "s/LATEST_V4_RELEASE=.*/LATEST_V4_RELEASE=v4.3.0/" Makefile
title="Test examples against latest release"
createBranch updateProwExamplesTarget $title
```
```
createBranch updateProwExamplesTarget "Test examples against latest release" &&
createPr
```

Wait for tests to pass, then merge the PR:
```
gh pr status # rinse, repeat
```
```
gh pr merge -m
```

Expand Down

0 comments on commit 250ea13

Please sign in to comment.