mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 19:31:44 +00:00
Merge pull request #97971 from liggitt/testdata
Add API testdata population instructions
This commit is contained in:
commit
da29bd9133
15
staging/src/k8s.io/api/testdata/README.md
vendored
15
staging/src/k8s.io/api/testdata/README.md
vendored
@ -2,6 +2,21 @@
|
||||
|
||||
This directory tree contains serialized API objects in json, yaml, and protobuf formats.
|
||||
|
||||
## Populating data for each release
|
||||
|
||||
After every v1.x.0 release, snapshot compatibility data.
|
||||
|
||||
For example, to capture compatibility data for `v1.20.0`:
|
||||
|
||||
```sh
|
||||
export VERSION=v1.20.0
|
||||
git checkout ${VERSION}
|
||||
cp -fr staging/src/k8s.io/api/testdata/{HEAD,${VERSION}}
|
||||
git checkout -b ${VERSION}-api-testdata master
|
||||
git add .
|
||||
git commit -m "Add ${VERSION} API testdata"
|
||||
```
|
||||
|
||||
## Current version
|
||||
|
||||
The `HEAD` subdirectory contains serialized API objects generated from the current commit:
|
||||
|
Loading…
Reference in New Issue
Block a user