mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-25 19:43:22 +00:00
Update instructions on conversions.
This commit is contained in:
parent
cb414d8bc4
commit
49e064b2af
@ -254,6 +254,12 @@ regenerate auto-generated ones. To regenerate them:
|
|||||||
$ hack/update-generated-conversions.sh
|
$ hack/update-generated-conversions.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
|
If running the above script is impossible due to compile errors, the easiest
|
||||||
|
workaround is to comment out the code causing errors and let the script to
|
||||||
|
regenerate it. If the auto-generated conversion methods are not used by the
|
||||||
|
manually-written ones, it's fine to just remove the whole file and let the
|
||||||
|
generator to create it from scratch.
|
||||||
|
|
||||||
Unsurprisingly, adding manually written conversion also requires you to add tests to
|
Unsurprisingly, adding manually written conversion also requires you to add tests to
|
||||||
`pkg/api/<version>/conversion_test.go`.
|
`pkg/api/<version>/conversion_test.go`.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user