Hi! I wrote this following function:
// Returns a container that has Okteto CLI with the correct context set
func (m *OktetodoDagger) Hi() *Container {
token := os.Getenv("OKTETO_TOKEN")
return dag.Container().
From("okteto/okteto").
WithEnvVariable("OKTETO_TOKEN", token).
WithExec([]string{"okteto", "ctx", "use", "arsh.okteto.me"})
}
But when I try to run it I get an error. The same command when I copy paste and run locally it works (see attached screenshot). Any idea what I might be doing wrong?