Skip to content

Commit

Permalink
Add debug message in k8s backend to match docker/podman backend
Browse files Browse the repository at this point in the history
  • Loading branch information
Cedric BAIL committed May 6, 2023
1 parent b9df862 commit 2d253e1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/command/kubernetes.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ func (i *kubernetesContainerImage) close() error {
}

func (i *kubernetesContainerImage) Run(vol volume.Volume, opts options, cmdArgs []string) error {
log.Debug(opts.WorkDir, cmdArgs)
return i.pod.Run(opts.WorkDir, cmdArgs)
}

Expand Down Expand Up @@ -228,6 +229,8 @@ func (i *kubernetesContainerImage) Prepare() error {
name := fmt.Sprintf("fyne-cross-%s-%x", i.ID(), unique)
namespace := i.runner.namespace

log.Debug("Creating pod", name, namespace, i.DockerImage, mount, env)

i.pod, err = i.runner.client.NewPod(context.Background(),
name, i.DockerImage, namespace,
i.runner.storageLimit, i.runner.vol.WorkDirContainer(), mount, env)
Expand Down

0 comments on commit 2d253e1

Please sign in to comment.