open-nomad/nomad/structs/config
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
..
artifact.go artifact: enable inheriting environment variables from client (#15514) 2022-12-09 15:46:07 -06:00
artifact_test.go artifact: enable inheriting environment variables from client (#15514) 2022-12-09 15:46:07 -06:00
audit.go cleanup more helper updates (#14638) 2022-09-21 14:53:25 -05:00
audit_test.go cleanup: replace TypeToPtr helper methods with pointer.Of (#14151) 2022-08-17 18:26:34 +02:00
autopilot.go cleanup: replace TypeToPtr helper methods with pointer.Of (#14151) 2022-08-17 18:26:34 +02:00
autopilot_test.go ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
consul.go cleanup: replace TypeToPtr helper methods with pointer.Of (#14151) 2022-08-17 18:26:34 +02:00
consul_test.go ci: switch to 22.04 LTS for GHA Core CI tests 2022-05-25 08:19:40 -05:00
limits.go cleanup: replace TypeToPtr helper methods with pointer.Of (#14151) 2022-08-17 18:26:34 +02:00
limits_test.go cleanup: replace TypeToPtr helper methods with pointer.Of (#14151) 2022-08-17 18:26:34 +02:00
plugins.go tag HCL bookkeeping keys with json:"-" to keep them out of the api 2019-04-30 10:29:14 -04:00
plugins_test.go ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
README.md
sentinel.go client: fix data races in config handling (#14139) 2022-08-18 16:32:04 -07:00
tls.go client: fix data races in config handling (#14139) 2022-08-18 16:32:04 -07:00
tls_test.go build: run gofmt on all go source files 2022-08-16 11:14:11 -05:00
ui.go chore: fixup inconsistent method receiver names. (#11704) 2021-12-20 11:44:21 +01:00
ui_test.go ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
vault.go cleanup: rename Equals to Equal for consistency (#14759) 2022-10-10 09:28:46 -05:00
vault_test.go deps: update set and test (#14680) 2022-09-26 08:28:03 -05:00

Overview

nomad/structs/config is a package for configuration structs that are shared among packages that needs the same struct definitions, but can't import each other without creating a cyle. This config package must be terminal in the import graph (or very close to terminal in the dependency graph).