From 55d9aedd849bfae151ee6999a8a5cff8c42699de Mon Sep 17 00:00:00 2001 From: runkecheng <1131648942@qq.com> Date: Thu, 21 Oct 2021 15:31:31 +0800 Subject: [PATCH] api: Revert user verify regular expression. #274 --- api/v1alpha1/mysqluser_types.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/v1alpha1/mysqluser_types.go b/api/v1alpha1/mysqluser_types.go index 8a251286..53a34cf0 100644 --- a/api/v1alpha1/mysqluser_types.go +++ b/api/v1alpha1/mysqluser_types.go @@ -32,7 +32,7 @@ type UserSpec struct { // Username is the name of user to be operated. // This field should be immutable. // +kubebuilder:validation:Required - // +kubebuilder:validation:Pattern="^(?!root$|radondb_)[A-Za-z0-9_]{2,26}$" + // +kubebuilder:validation:Pattern="^[A-Za-z0-9_]{2,26}$" User string `json:"user,omitempty"` // Hosts is the grants hosts.