// CreateMySQLClusterInK8s is the option for creating mysql cluster k8s resource
CreateMySQLClusterInK8s is the option for creating mysql cluster k8s resource
// CreateMySQLClusterInK8s is the option for creating mysql cluster k8s resource
func CreateMySQLClusterInK8s(c client.Client) MySQLClusterOption {
	return func(mc *mysqlv1alpha1.MysqlCluster) error {
		if err := c.Create(context.TODO(), mc); err != nil {
			return err
		}
		return c.Status().Update(context.TODO(), mc)
	}
}
func CreateMySQLClusterInK8s ( c client . Client ) MySQLClusterOption { return func ( mc * mysqlv1alpha1 . MysqlCluster ) error { if err := c . Create ( context . TODO ( ) , mc ) ; err != nil { return err } return c . Status ( ) . Update ( context . TODO ( ) , mc ) } }
CreateMySQLClusterInK8s is the option for creating mysql cluster k8s resource
CreateMySQLClusterInK8s is the option for creating mysql cluster k8s resource