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: devel/release.md
+57-9Lines changed: 57 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -15,11 +15,61 @@ report issues. Typically, there is a single alpha or beta release, but if there
15
15
are a higher than expected number of issues there can be multiple releases
16
16
(e.g, a2 or b2).
17
17
18
-
## 1. Update submodules
18
+
## Automated release
19
+
20
+
### 1. (Optional) Update submodules
21
+
22
+
Update submodules by referring to this [link](https://github.com/kubernetes-client/python/blob/master/devel/submodules.md#update-submodule). Commit the changes and open a pull request.
23
+
24
+
### 2. Run the release script and send a PR
25
+
26
+
```
27
+
export MINOR_VERSION=x
28
+
export PATCH_VERSION=y # The latest patch version for the minor version. Not required for snapshot.
Checkout the generated local branch (named "automated-release-of-xxx") to
47
+
continue with the remaining steps.
48
+
49
+
### 3. README (not required for snapshots)
50
+
51
+
Update the compatibility matrix and maintenance status in the README file.
52
+
53
+
### 4. Submit pull request
54
+
55
+
For snapshots, create a PR against the master repo.
56
+
57
+
For actual releases, create:
58
+
- a PR against the release branch
59
+
- a second PR against the master branch to cherrypick the CHANGELOG and README
60
+
changes.
61
+
62
+
### 5. (Repo admin) Create release branch
63
+
64
+
After merging a new snapshot, create a release branch from the master branch.
65
+
66
+
## (Deprecated) Manual release
67
+
68
+
### 1. Update submodules
19
69
20
70
Update submodules by referring to this [link](https://github.com/kubernetes-client/python/blob/master/devel/submodules.md#update-submodule). Commit the changes and open a pull request.
21
71
22
-
## 2. Create or update release branch
72
+
###2. Create or update release branch
23
73
24
74
The release branch name should have release-x.x format. All minor and pre-releases
25
75
should be on the same branch. To update an existing branch with master (only for
You may need to fix some conflicts. For auto-generated files, you can commit
37
87
either version. They will be updated to the current version in the next step.
38
88
39
-
## 3. Update release tags
89
+
###3. Update release tags
40
90
41
91
Release tags are in the "scripts/constants.py" file. These are the constants you
42
92
may need to update:
@@ -73,7 +123,7 @@ apply the manual fixes.***
73
123
git push upstream $RELEASE_BRANCH
74
124
```
75
125
76
-
## 4. Hot issues
126
+
###4. Hot issues
77
127
78
128
Use the `scripts/apply-hotfixes.sh` script to apply the fixes below in one step.
79
129
**As mentioned above, the script should be run after finishing the section "Update release tags". Also, ensure a clean working directory before applying the script.**
@@ -99,19 +149,19 @@ For more details, see [#974](https://github.com/kubernetes-client/python/issues/
99
149
100
150
5. Add tests for the default `Configuration` behavior (ref: https://github.com/kubernetes-client/python/pull/1303 and https://github.com/kubernetes-client/python/pull/1285). The commit [1ffa61d0650e4c93e0d7f0becd2c54797eafd407](https://github.com/kubernetes-client/python/pull/1285/commits/1ffa61d0650e4c93e0d7f0becd2c54797eafd407) should be cherry-picked.
101
151
102
-
## 5. CHANGELOG
152
+
###5. CHANGELOG
103
153
104
154
Make sure the change logs are up to date [here](https://github.com/kubernetes-client/python/blob/master/CHANGELOG.md).
105
155
If they are not, follow commits added after the last release and update/commit
106
156
the change logs to master.
107
157
108
158
Then based on the release, follow one of next two steps.
109
159
110
-
## 6. README
160
+
###6. README
111
161
112
162
Update the compatibility matrix and maintenance status in the README file.
113
163
114
-
## Submit pull request
164
+
###Submit pull request
115
165
116
166
Typically after the you've completed steps 2-6 above you can push your changes
117
167
open a pull request against `kubernetes-client:release-x.y`
@@ -220,6 +270,4 @@ deactivate
220
270
rm -rf .release
221
271
```
222
272
223
-
TODO: Convert steps in this document to an (semi-) automated script.
0 commit comments