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: website/content/en/docs/golang/project_migration_guide.md
+7-5Lines changed: 7 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,8 @@ The document considers [memcached operator][memcached-operator] as an example to
12
12
13
13
## Prerequisites
14
14
-[git][git_tool].
15
-
-[go][go_tool] version 17.03+.
15
+
-[go][go_tool] version 1.13+.
16
+
-[docker][docker_tool] version 17.03+.
16
17
-[kubectl][kubectl_tool] version v1.11.3+.
17
18
-[kustomize][kustomize_tool] v3.1.0+.
18
19
- Access to a Kubernetes v1.11.3+ cluster.
@@ -57,7 +58,7 @@ Create a new API and its corresponding controller.
57
58
58
59
In case of memcached operator, a new API for kind `Memcached` and group/version `cache/v1aplha1` is created using the following command.
59
60
60
-
`operator-sdk api --group cache --version v1alpha1 --kind Memcached`
61
+
`operator-sdk create api --group cache --version v1alpha1 --kind Memcached`
61
62
62
63
Press `y` when asked for creating resource and controller. This will scaffold the project and create the files `api/<version>/<kind>_types.go` and `controller/<kind>_types.go`.
63
64
@@ -81,7 +82,7 @@ type MemcachedStatus struct {
81
82
}
82
83
```
83
84
**Note**:
84
-
If there are any any libraries or pkgs present in `pkg/apis/cache/v1alpha1`, copy them over to `api/v1alpha1`.
85
+
If there are any libraries or pkgs present in `pkg/apis/cache/v1alpha1`, copy them over to `api/v1alpha1`.
To update `config/rbac/role.yaml` after changing the markers, run `make manifests`.
154
155
155
-
The project can now be built and the operator can be deployed oncluster. For further steps regarding the deployment of operator, creation of custom resource and cleaning up of resources, refer to [quickstart guide][kb_quickstart].
156
+
The project can now be built, and the operator can be deployed on-cluster. For further steps regarding the deployment of the operator, creation of custom resources and cleaning up of resources, refer to the [quickstart guide][kb_quickstart].
0 commit comments