open-nomad/client/allocrunner/taskrunner/getter
Seth Hoenig be3f89b5f9
artifact: enable inheriting environment variables from client (#15514)
* artifact: enable inheriting environment variables from client

This PR adds client configuration for specifying environment variables that
should be inherited by the artifact sandbox process from the Nomad Client agent.

Most users should not need to set these values but the configuration is provided
to ensure backwards compatability. Configuration of go-getter should ideally be
done through the artifact block in a jobspec task.

e.g.

```hcl
client {
  artifact {
    set_environment_variables = "TMPDIR,GIT_SSH_OPTS"
  }
}
```

Closes #15498

* website: update set_environment_variables text to mention PATH
2022-12-09 15:46:07 -06:00
..
error.go client: sandbox go-getter subprocess with landlock (#15328) 2022-12-07 16:02:25 -06:00
error_test.go client: sandbox go-getter subprocess with landlock (#15328) 2022-12-07 16:02:25 -06:00
params.go artifact: enable inheriting environment variables from client (#15514) 2022-12-09 15:46:07 -06:00
params_test.go artifact: enable inheriting environment variables from client (#15514) 2022-12-09 15:46:07 -06:00
replacer_test.go client: sandbox go-getter subprocess with landlock (#15328) 2022-12-07 16:02:25 -06:00
sandbox.go artifact: enable inheriting environment variables from client (#15514) 2022-12-09 15:46:07 -06:00
sandbox_test.go client: sandbox go-getter subprocess with landlock (#15328) 2022-12-07 16:02:25 -06:00
testing.go client: sandbox go-getter subprocess with landlock (#15328) 2022-12-07 16:02:25 -06:00
util.go artifact: enable inheriting environment variables from client (#15514) 2022-12-09 15:46:07 -06:00
util_default.go artifact: enable inheriting environment variables from client (#15514) 2022-12-09 15:46:07 -06:00
util_linux.go artifact: enable inheriting environment variables from client (#15514) 2022-12-09 15:46:07 -06:00
util_test.go artifact: enable inheriting environment variables from client (#15514) 2022-12-09 15:46:07 -06:00
util_windows.go artifact: enable inheriting environment variables from client (#15514) 2022-12-09 15:46:07 -06:00
z_getter_cmd.go artifact: add client toggle to disable filesystem isolation (#15503) 2022-12-08 12:29:23 -06:00