radondb-mysql-kubernetes icon indicating copy to clipboard operation
radondb-mysql-kubernetes copied to clipboard

the doc create user guid failed

Open zhuyaguang opened this issue 1 year ago • 3 comments

kubectl apply -f https://raw.githubusercontent.com/radondb/radondb-mysql-kubernetes/main/config/samples/mysql_v1alpha1_mysqluser.yaml

create user failed

error: error validating "https://raw.githubusercontent.com/radondb/radondb-mysql-kubernetes/main/config/samples/mysql_v1alpha1_mysqluser.yaml": error validating data: [ValidationError(MysqlUser.spec): unknown field "tlsOptions" in com.radondb.mysql.v1alpha1.MysqlUser.spec, ValidationError(MysqlUser.spec): unknown field "withGrantOption" in com.radondb.mysql.v1alpha1.MysqlUser.spec]; if you choose to ignore these errors, turn validation off with --validate=false

doc url : https://github.com/radondb/radondb-mysql-kubernetes/blob/main/docs/zh-cn/mgt_mysqluser.md#MysqlUser

zhuyaguang avatar Jul 18 '22 07:07 zhuyaguang

Hi! thanks for your contribution! great first issue!

github-actions[bot] avatar Jul 18 '22 07:07 github-actions[bot]

Hello, we updated the API of the main branch, you can try to pull the code of v2.2.0 and apply this file config/samples/mysql_v1alpha1_mysqluser.yaml

runkecheng avatar Jul 18 '22 07:07 runkecheng

When installing Operator, the corresponding version of the CRD will be automatically installed, so you also need to use the corresponding version of the sample file.

The code on the main branch is not the latest Release code, and it may include new features in development.

runkecheng avatar Jul 18 '22 07:07 runkecheng