summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWojciech Tyczynski <wojtekt@google.com>2015-05-19 17:47:03 +0200
committerWojciech Tyczynski <wojtekt@google.com>2015-05-20 17:11:18 +0200
commit3c173916ea41e7bb03bae1af85eefa4bc027c985 (patch)
tree89a787024fa6b37c3f4753beb6a6b76515deb883
parentbb07a8b81e212671a8c398723b7941149e46e952 (diff)
Automatically generate conversions
-rw-r--r--api_changes.md6
1 files changed, 1 insertions, 5 deletions
diff --git a/api_changes.md b/api_changes.md
index 6eff094b..4627c6df 100644
--- a/api_changes.md
+++ b/api_changes.md
@@ -251,12 +251,8 @@ Once all the necessary manually written conversions are added, you need to
regenerate auto-generated ones. To regenerate them:
- run
```
- $ go run cmd/kube-conversion/conversion.go -v <version> -f <file1.txt> -n <file2.txt>
+ $ hack/update-generated-conversions.sh
```
- - replace all conversion functions (convert\* functions) in the
- `pkg/api/<version>/conversion_generated.go` with the contents of \<file1.txt\>
- - replace arguments of `api.Scheme.AddGeneratedConversionFuncs` in the
- `pkg/api/<version>/conversion_generated.go` with the contents of \<file2.txt\>
Unsurprisingly, adding manually written conversion also requires you to add tests to
`pkg/api/<version>/conversion_test.go`.