You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/book/src/migration/multi-group.md
+9-1Lines changed: 9 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -38,7 +38,7 @@ can check `api/v1/groupversion_info.go` to find that out:
38
38
package v1
39
39
```
40
40
41
-
Then, we'll rename move our existing APIs into a new subdirectory, "batch":
41
+
Then, we'll move our existing APIs into a new subdirectory named after the group. Considering the [CronJob example][cronjob-tutorial], subdirectory name is "batch":
The same needs to be applied for any pre-existing [webhooks][webhooks]:
56
+
```bash
57
+
mkdir internal/webhook/batch
58
+
mv internal/webhook/* internal/webhook/batch/
59
+
```
60
+
For any new webhook created for a new group, the respective functions will be created under subdirectory `internal/webhook/<group>/`.
61
+
55
62
<asideclass="note">
56
63
<h1>If you are using the deprecated layout go/v3</h1>
57
64
Then, your layout has not the internal directory. So, you will move the controller(s) under a directory with the name of the API group which it is responsible for manage.
0 commit comments