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

[feature] Set the default root password for the cluster.

Open runkecheng opened this issue 3 years ago • 1 comments

Is your feature request related to a problem? Please describe.

Now the default root password is empty. Percona will only set a root password at initialization, which will cause the root password of default deployment cluster to be empty, and cannot modify the root password through YAML, this is not safe.

	// +kubebuilder:default:=""
	// +kubebuilder:validation:Pattern="^$|^[A-Za-z0-9@#$%^&*_+\\-=]{8,32}$"
	RootPassword string `json:"rootPassword,omitempty"`

Describe the solution you'd like

  • Set default value for the ROOT password

  • Instructions for this situation in Sample Yaml

Describe alternatives you've considered

Additional context

runkecheng avatar Jan 19 '22 02:01 runkecheng

https://github.com/percona/percona-docker/blob/main/percona-server-5.7/ps-entry.sh

runkecheng avatar Jan 19 '22 02:01 runkecheng