Skip to content

Commit ca87924

Browse files
committed
learning init operator
1 parent 730f19c commit ca87924

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

operator/README.md

+5-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## Rely On
44
```shell
55
1. git
6-
2. go
6+
2. go 1.19+ ( 需要设置 GOPROXY )
77
3. kubectl
88
```
99

@@ -19,5 +19,8 @@ make install
1919

2020
## Use Operator-SDK Create Mysql-operator
2121
```shell
22-
22+
mkdir -p $GOPATH/src/github.com/example-inc/
23+
cd $GOPATH/src/github.com/example-inc/
24+
operator-sdk init --domain example.com --repo github.com/chengxiaobai/mysql-operator
25+
operator-sdk create api --group mysql --version v1beta1 --kind mysqlcluster
2326
```

0 commit comments

Comments
 (0)