File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ This walkthrough is for creating an operator to run the [guestbook](https://gith
6
6
7
7
Install the following depenencies:
8
8
9
- - [ kubebuilder] ( https://book.kubebuilder.io/quick-start.html#installation ) (tested with 2.0.0-alpha.4 )
9
+ - [ kubebuilder] ( https://book.kubebuilder.io/quick-start.html#installation ) (tested with 3.1.0 )
10
10
- [ kustomize] ( https://kubectl.docs.kubernetes.io/installation/kustomize/ ) (tested with v2.0.3)
11
11
- docker
12
12
- kubectl
@@ -18,20 +18,14 @@ Create a new directory and use kubebuilder to scaffold the operator:
18
18
export GO111MODULE=on
19
19
mkdir -p guestbook-operator/
20
20
cd guestbook-operator/
21
- kubebuilder init --domain example.org --license apache2 --owner "TODO($USER): assign copyright"
22
- ```
23
-
24
- Add the patterns to your project:
25
-
26
- ```
27
- go get sigs.k8s.io/kubebuilder-declarative-pattern
21
+ kubebuilder init --plugins go.kubebuilder.io/v3,declarative.go.kubebuilder.io/v1 --domain example.org --license apache2 --owner "TODO($USER): assign copyright"
28
22
```
29
23
30
24
### Adding our first CRD
31
25
32
26
```
33
27
# generate the API/controllers
34
- kubebuilder create api --controller=true --example=false -- group=addons --kind=Guestbook --make=false --namespaced=true --resource=true --version=v1alpha1
28
+ kubebuilder create api --controller=true --group=addons --kind=Guestbook --make=false --namespaced=true --resource=true --version=v1alpha1
35
29
# remove the test suites that are more checking that kubebuilder is working
36
30
find . -name "*_test.go" -delete
37
31
```
You can’t perform that action at this time.
0 commit comments