@@ -91,7 +91,7 @@ will be different in your situation.
91
91
92
92
Here's an example of editing a comment in the Kubernetes source code.
93
93
94
- In your local kubernetes/kubernetes repository, check out the master branch,
94
+ In your local kubernetes/kubernetes repository, check out the default branch,
95
95
and make sure it is up to date:
96
96
97
97
``` shell
@@ -100,7 +100,7 @@ git checkout master
100
100
git pull https://github.com/kubernetes/kubernetes master
101
101
```
102
102
103
- Suppose this source file in the master branch has the typo "atmost":
103
+ Suppose this source file in that default branch has the typo "atmost":
104
104
105
105
[ kubernetes/kubernetes/staging/src/k8s.io/api/apps/v1/types.go] ( https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/api/apps/v1/types.go )
106
106
@@ -183,12 +183,13 @@ In the preceding section, you edited a file in the master branch and then ran sc
183
183
to generate an OpenAPI spec and related files. Then you submitted your changes in a pull request
184
184
to the master branch of the kubernetes/kubernetes repository. Now suppose you want to backport
185
185
your change into a release branch. For example, suppose the master branch is being used to develop
186
- Kubernetes version 1.10, and you want to backport your change into the release-1.9 branch.
186
+ Kubernetes version {{< skew latestVersion >}}, and you want to backport your change into the
187
+ release-{{< skew prevMinorVersion >}} branch.
187
188
188
189
Recall that your pull request has two commits: one for editing ` types.go `
189
190
and one for the files generated by scripts. The next step is to propose a cherry pick of your first
190
- commit into the release-1.9 branch. The idea is to cherry pick the commit that edited ` types.go ` , but not
191
- the commit that has the results of running the scripts. For instructions, see
191
+ commit into the release-{{< skew prevMinorVersion >}} branch. The idea is to cherry pick the commit
192
+ that edited ` types.go ` , but not the commit that has the results of running the scripts. For instructions, see
192
193
[ Propose a Cherry Pick] ( https://git.k8s.io/community/contributors/devel/sig-release/cherry-picks.md ) .
193
194
194
195
{{< note >}}
@@ -197,8 +198,9 @@ pull request. If you don't have those permissions, you will need to work with so
197
198
and milestone for you.
198
199
{{< /note >}}
199
200
200
- When you have a pull request in place for cherry picking your one commit into the release-1.9 branch,
201
- the next step is to run these scripts in the release-1.9 branch of your local environment.
201
+ When you have a pull request in place for cherry picking your one commit into the
202
+ release-{{< skew prevMinorVersion >}} branch, the next step is to run these scripts in the
203
+ release-{{< skew prevMinorVersion >}} branch of your local environment.
202
204
203
205
``` shell
204
206
hack/update-generated-swagger-docs.sh
@@ -208,14 +210,15 @@ hack/update-api-reference-docs.sh
208
210
```
209
211
210
212
Now add a commit to your cherry-pick pull request that has the recently generated OpenAPI spec
211
- and related files. Monitor your pull request until it gets merged into the release-1.9 branch.
213
+ and related files. Monitor your pull request until it gets merged into the
214
+ release-{{< skew prevMinorVersion >}} branch.
212
215
213
- At this point, both the master branch and the release-1.9 branch have your updated ` types.go `
216
+ At this point, both the master branch and the release-{{< skew prevMinorVersion >}} branch have your updated ` types.go `
214
217
file and a set of generated files that reflect the change you made to ` types.go ` . Note that the
215
- generated OpenAPI spec and other generated files in the release-1.9 branch are not necessarily
216
- the same as the generated files in the master branch. The generated files in the release-1.9 branch
217
- contain API elements only from Kubernetes 1.9 . The generated files in the master branch might contain
218
- API elements that are not in 1.9 , but are under development for 1.10 .
218
+ generated OpenAPI spec and other generated files in the release-{{< skew prevMinorVersion >}} branch are not necessarily
219
+ the same as the generated files in the master branch. The generated files in the release-{{< skew prevMinorVersion >}} branch
220
+ contain API elements only from Kubernetes {{< skew prevMinorVersion >}} . The generated files in the master branch might contain
221
+ API elements that are not in {{< skew prevMinorVersion >}} , but are under development for {{< skew latestVersion >}} .
219
222
220
223
## Generating the published reference docs
221
224
0 commit comments