mirror of
https://github.com/dokku/dokku.git
synced 2025-12-29 00:25:08 +01:00
Take DOKKU_FORCE_TTY setting into account for run commands with k3s-scheduler
This commit is contained in:
@@ -385,7 +385,7 @@ func (k KubernetesClient) ExecCommand(ctx context.Context, input ExecCommandInpu
|
||||
|
||||
size := t.GetSize()
|
||||
sizeQueue := t.MonitorSize(size)
|
||||
actuallyTty := sizeQueue != nil
|
||||
actuallyTty := (sizeQueue != nil) || os.Getenv("DOKKU_FORCE_TTY") == "true"
|
||||
|
||||
if actuallyTty {
|
||||
req.Param("tty", "true")
|
||||
|
||||
@@ -1142,7 +1142,7 @@ func TriggerSchedulerRun(scheduler string, appName string, envCount int, args []
|
||||
Image: image,
|
||||
ImagePullSecrets: imagePullSecrets,
|
||||
ImageSourceType: imageSourceType,
|
||||
Interactive: attachToPod,
|
||||
Interactive: attachToPod || os.Getenv("DOKKU_FORCE_TTY") == "true",
|
||||
Labels: labels,
|
||||
Namespace: namespace,
|
||||
ProcessType: processType,
|
||||
|
||||
Reference in New Issue
Block a user