func (a *Acme) createOrder(ctx context.Context, cl client.Interface, crt *v1alpha1.Certificate) (*acmeapi.Order, error) {
	order, err := buildOrder(crt)
	if err != nil {
		return nil, err
	}
	order, err = cl.CreateOrder(ctx, order)
	if err != nil {
		a.Recorder.Eventf(crt, corev1.EventTypeWarning, "ErrCreateOrder", "Error creating order: %v", err)
		return nil, err
	}

	glog.Infof("Created order for domains: %v", order.Identifiers)
	crt.Status.ACMEStatus().Order.URL = order.URL
	return order, nil
}
// createOrder will create an order for the given certificate with the acme
// server. Once created, it will set the order URL on the status field of the
// certificate resource.
createOrder will create an order for the given certificate with the acme
server. Once created, it will set the order URL on the status field of the
certificate resource.
// createOrder will create an order for the given certificate with the acme // server . Once created it will set the order URL on the status field of the // certificate resource .
func (a *Acme) createOrder(ctx context.Context, cl client.Interface, crt *v1alpha1.Certificate) (*acmeapi.Order, error) {
	order, err := buildOrder(crt)
	if err != nil {
		return nil, err
	}
	order, err = cl.CreateOrder(ctx, order)
	if err != nil {
		a.Recorder.Eventf(crt, corev1.EventTypeWarning, "ErrCreateOrder", "Error creating order: %v", err)
		return nil, err
	}
	glog.Infof("Created order for domains: %v", order.Identifiers)
	crt.Status.ACMEStatus().Order.URL = order.URL
	return order, nil
}
func ( a * Acme ) createOrder ( ctx context . Context , cl client . Interface , crt * v1alpha1 . Certificate ) ( * acmeapi . Order , error ) { order , err := buildOrder ( crt ) if err != nil { return nil , err } order , err = cl . CreateOrder ( ctx , order ) if err != nil { a . Recorder . Eventf ( crt , corev1 . EventTypeWarning , " " , " " , err ) return nil , err } glog . Infof ( " " , order . Identifiers ) crt . Status . ACMEStatus ( ) . Order . URL = order . URL return order , nil }
createOrder will create an order for the given certificate with the acme
server.
createOrder will create an order for the given certificate with the acme server .