diff options
| author | Wojciech Tyczynski <wojtekt@google.com> | 2015-05-19 17:47:03 +0200 |
|---|---|---|
| committer | Wojciech Tyczynski <wojtekt@google.com> | 2015-05-20 17:11:18 +0200 |
| commit | 3c173916ea41e7bb03bae1af85eefa4bc027c985 (patch) | |
| tree | 89a787024fa6b37c3f4753beb6a6b76515deb883 /api_changes.md | |
| parent | bb07a8b81e212671a8c398723b7941149e46e952 (diff) | |
Automatically generate conversions
Diffstat (limited to 'api_changes.md')
| -rw-r--r-- | api_changes.md | 6 |
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`. |
