Apply error handling

Output of applying the config will be now human readable. 
Apply function now returns list of apply results for every item in the config and error.
ApplyResult contains a list of errors which may occur during the item creation process and a status, which is a string which will be printed as a result of the process.

Example:
`Succeed to create Pod of 'id=redis-master-2'`
`Failed to create Route of 'id=frontendroute' : route "frontendroute" already exists`
`Failed to create Service of 'id=frontend' : service "frontend" already exists`

More detailed output, with listed errors from the creation process will be printed if `--verbose` flag is added to apply command.

`func FindID` has been added and into `k8s/pkg/runtime/scheme.go`, and after review I will create an PR which will add it into upstream k8s. Another possible solution is to put it in `config.go`

What I'm saying is you should display error first, and message is only if error is nil.  You don't need a second message for errors, that's why The error interface has String().

So if the server returns error, you should set that into err and set no message.  When you display, if err is set it's an error, otherwise it's a success message.


> On Oct 8, 2014, at 4:07 PM, jhadvig <notifications@github.com> wrote:
> 
> In pkg/config/config.go:
> 
> >  		if err != nil {
> > -			errs = append(errs, fmt.Errorf("Failed to create Config.items[%v] of 'kind=%v': %v", i, kind, err))
> > +			if statusErr, ok := err.(kubeclient.APIStatus); ok {
> > +				itemResult.Message = fmt.Sprintf("Creation failed for %v with id=%v' : %v",
> @smarterclayton understand you concern, but the Message is intended to notify the user if the creation of the resource was successful or failed and if fails attache the Message from the kubeapi.Status.
> I don't say we won't be changed in the future, but for now there is a demand that the output of the apply command should be more human readable.
> 
> —
> Reply to this email directly or view it on GitHub.