mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-02 00:07:50 +00:00
Update adding-an-APIGroup.md for #23110
This commit is contained in:
parent
660050631e
commit
69756576f2
@ -75,9 +75,7 @@ cmd/libs/go2idl/ tool.
|
|||||||
1. Generate conversions and deep-copies:
|
1. Generate conversions and deep-copies:
|
||||||
|
|
||||||
1. Add your "group/" or "group/version" into
|
1. Add your "group/" or "group/version" into
|
||||||
hack/after-build/{update-generated-conversions.sh,
|
cmd/libs/go2idl/{conversion-gen, deep-copy-gen}/main.go;
|
||||||
update-generated-deep-copies.sh, verify-generated-conversions.sh,
|
|
||||||
verify-generated-deep-copies.sh};
|
|
||||||
2. Make sure your pkg/apis/`<group>`/`<version>` directory has a doc.go file
|
2. Make sure your pkg/apis/`<group>`/`<version>` directory has a doc.go file
|
||||||
with the comment `// +genconversion=true`, to catch the attention of our
|
with the comment `// +genconversion=true`, to catch the attention of our
|
||||||
gen-conversion script.
|
gen-conversion script.
|
||||||
|
Loading…
Reference in New Issue
Block a user