You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/RELEASE.md
+26-15Lines changed: 26 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ The release process consists of three phases: versioning, building and publishin
6
6
7
7
Versioning involves maintaining the following files:
8
8
9
-
- Makefile - the Makefile contains a `VERSION` variable that defines the version of the project.
9
+
- Makefile - the Makefile contains a `IMAGE_VERSION` variable that defines the version of the project.
10
10
- secrets-store-csi-driver.yaml - the Linux driver deployment yaml that contains the latest release tag image of the project.
11
11
- secrets-store-csi-driver-windows.yaml - the Windows driver deployment yaml that contains the latest release tag image of the project.
12
12
-`deploy/` dir that contains all the secrets-store-csi-driver resources to be deployed to the cluster including the latest release tag image of the project.
@@ -22,44 +22,55 @@ Publishing involves creating a release tag and creating a new Release on GitHub.
22
22
1. Update the version to the semantic version of the new release similar to [this](https://github.com/kubernetes-sigs/secrets-store-csi-driver/pull/251)
23
23
1. Commit the changes and push to remote repository to create a pull request
24
24
25
-
```
25
+
```bash
26
26
git checkout -b bump-version-<NEW VERSION>
27
-
git commit -m "Bump versions for <NEW VERSION"
27
+
git commit -m "Bump versions for <NEW VERSION>"
28
28
git push <YOUR FORK>
29
29
```
30
-
31
-
1. Once the PR is merged to master, the [prow job](https://testgrid.k8s.io/sig-auth-secrets-store-csi-driver#secrets-store-csi-driver-push-image) is triggered to build and push the new version to staging repo (`gcr.io/k8s-staging-csi-secrets-store/driver`)
32
-
1. Once the prow job completes, follow the [instructions](https://github.com/kubernetes/k8s.io/tree/master/k8s.gcr.io#image-promoter) to promote the image to production repo
30
+
31
+
1. Once the PR is merged to master, the [prow job](https://testgrid.k8s.io/sig-auth-secrets-store-csi-driver#secrets-store-csi-driver-push-image) is triggered to build and push the new version to staging repo (`gcr.io/k8s-staging-csi-secrets-store/driver`)
32
+
1. Once the prow job completes, follow the [instructions](https://github.com/kubernetes/k8s.io/tree/master/k8s.gcr.io#image-promoter) to promote the image to production repo
33
33
- Run generate script to append the new image to promoter manifest
- Commit the changes and push to remote repository to create a pull request
42
-
1. Once the image promoter PR is merged, the image will be promoted to prod repo (`us.gcr.io/k8s-artifacts-prod/csi-secrets-store/driver`)
46
+
1. Once the image promoter PR is merged, the image will be promoted to prod repo (`k8s.gcr.io/csi-secrets-store/driver`)
43
47
44
48
## Building and releasing
45
49
46
50
1. Execute the promote-staging-manifest target to generate patch and promote staging manifest to release
51
+
52
+
```bash
53
+
make promote-staging-manifest NEWVERSION=0.0.12 CURRENTVERSION=0.0.11
47
54
```
48
-
make promote-staging-manifest NEWVERSION=v0.0.12
49
-
```
50
-
2. Preview the changes
55
+
56
+
1. Preview the changes
57
+
51
58
```bash
52
59
git diff
53
60
```
54
-
3. Commit the changes and push to remote repository to create a pull request
55
-
```
61
+
62
+
1. Commit the changes and push to remote repository to create a pull request
63
+
64
+
```bash
56
65
git checkout -b release-<NEW VERSION>
57
66
git commit -a -s -m "release: update manifests and helm chart for <NEW VERSION>"
58
67
git push <YOUR FORK>
59
68
```
60
-
4. Once the PR is merged to master, tag master with release version and push tags to remote repository.
69
+
70
+
1. Once the PR is merged to master, tag master with release version and push tags to remote repository.
61
71
- An [OWNER](https://github.com/kubernetes-sigs/secrets-store-csi-driver/blob/master/OWNERS) runs git tag and pushes the tag with git push
62
-
```
72
+
73
+
```bash
63
74
git checkout master
64
75
git pull origin master
65
76
git tag -a <NEW VERSION> -m '<NEW VERSION>'
@@ -70,4 +81,4 @@ Publishing involves creating a release tag and creating a new Release on GitHub.
70
81
71
82
1. Create a draft release in GitHub and associate it with the tag that was just created
72
83
1. Write the release notes similar to [this](https://github.com/kubernetes-sigs/secrets-store-csi-driver/releases/tag/v0.0.12) and upload all the artifacts from the `deploy/` dir
0 commit comments