Skip to content

Commit 0e49556

Browse files
authored
Merge pull request #172 from justinsb/update_walkthrough_for_kubebuilder_3
Update the walkthrough for kubebuilder 3
2 parents 003c19c + cd79cff commit 0e49556

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

docs/addon/walkthrough/README.md

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This walkthrough is for creating an operator to run the [guestbook](https://gith
66

77
Install the following depenencies:
88

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)
1010
- [kustomize](https://kubectl.docs.kubernetes.io/installation/kustomize/) (tested with v2.0.3)
1111
- docker
1212
- kubectl
@@ -18,20 +18,14 @@ Create a new directory and use kubebuilder to scaffold the operator:
1818
export GO111MODULE=on
1919
mkdir -p guestbook-operator/
2020
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"
2822
```
2923

3024
### Adding our first CRD
3125

3226
```
3327
# 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
3529
# remove the test suites that are more checking that kubebuilder is working
3630
find . -name "*_test.go" -delete
3731
```

0 commit comments

Comments
 (0)