// NewUserResources returns an executor that creates user-supplied Kubernetes resources
NewUserResources returns an executor that creates user-supplied Kubernetes resources
// NewUserResources returns an executor that creates user - supplied Kubernetes resources
func NewUserResources(p fsm.ExecutorParams, operator ops.Operator) (*userResourcesExecutor, error) {
	if p.Phase.Data == nil || p.Phase.Data.Install == nil {
		return nil, trace.BadParameter("phase data is mandatory")
	}
	logger := &fsm.Logger{
		FieldLogger: logrus.WithFields(logrus.Fields{
			constants.FieldPhase: p.Phase.ID,
		}),
		Key:      opKey(p.Plan),
		Operator: operator,
		Server:   p.Phase.Data.Server,
	}
	return &userResourcesExecutor{
		FieldLogger:    logger,
		ExecutorParams: p,
		resources:      p.Phase.Data.Install.Resources,
	}, nil
}
func NewUserResources ( p fsm . ExecutorParams , operator ops . Operator ) ( * userResourcesExecutor , error ) { if p . Phase . Data == nil || p . Phase . Data . Install == nil { return nil , trace . BadParameter ( " " ) } logger := & fsm . Logger { FieldLogger : logrus . WithFields ( logrus . Fields { constants . FieldPhase : p . Phase . ID , } ) , Key : opKey ( p . Plan ) , Operator : operator , Server : p . Phase . Data . Server , } return & userResourcesExecutor { FieldLogger : logger , ExecutorParams : p , resources : p . Phase . Data . Install . Resources , } , nil }
NewUserResources returns an executor that creates user-supplied Kubernetes resources
NewUserResources returns an executor that creates user - supplied Kubernetes resources