diff --git a/client/driver/rkt.go b/client/driver/rkt.go index 8f1b44ea2..875372394 100644 --- a/client/driver/rkt.go +++ b/client/driver/rkt.go @@ -175,11 +175,9 @@ func (d *RktDriver) Start(ctx *ExecContext, task *structs.Task) (DriverHandle, e if err := mapstructure.WeakDecode(task.Config, &driverConfig); err != nil { return nil, err } - // Validate that the config is valid. + + // ACI image img := driverConfig.ImageName - if img == "" { - return nil, fmt.Errorf("Missing ACI image for rkt") - } // Get the tasks local directory. taskName := d.DriverContext.taskName @@ -230,13 +228,6 @@ func (d *RktDriver) Start(ctx *ExecContext, task *structs.Task) (DriverHandle, e cmdArgs = append(cmdArgs, fmt.Sprintf("--exec=%v", driverConfig.Command)) } - if task.Resources.MemoryMB == 0 { - return nil, fmt.Errorf("Memory limit cannot be zero") - } - if task.Resources.CPU == 0 { - return nil, fmt.Errorf("CPU limit cannot be zero") - } - // Add memory isolator cmdArgs = append(cmdArgs, fmt.Sprintf("--memory=%vM", int64(task.Resources.MemoryMB)))