// Returns an error if resource doesn't exist
Returns an error if resource doesn't exist
// Returns an error if resource doesn ' t exist
func GetDeployedResourceByName(resourceName string) (*operator.DeployedResource, error) {
	resource, err := GetDeployedResourceByNameOrNil(resourceName)
	if err != nil {
		return nil, err
	}
	if resource == nil {
		return nil, ErrorAPINotDeployed(resourceName)
	}
	return resource, nil
}
func GetDeployedResourceByName ( resourceName string ) ( * operator . DeployedResource , error ) { resource , err := GetDeployedResourceByNameOrNil ( resourceName ) if err != nil { return nil , err } if resource == nil { return nil , ErrorAPINotDeployed ( resourceName ) } return resource , nil }
Returns an error if resource doesn't exist
Returns an error if resource doesn ' t exist