open-nomad/nomad/structs/config
Tim Gross 62548616d4
client: allow drain_on_shutdown configuration (#16827)
Adds a new configuration to clients to optionally allow them to drain their
workloads on shutdown. The client sends the `Node.UpdateDrain` RPC targeting
itself and then monitors the drain state as seen by the server until the drain
is complete or the deadline expires. If it loses connection with the server, it
will monitor local client status instead to ensure allocations are stopped
before exiting.
2023-04-14 15:35:32 -04:00
..
artifact.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
artifact_test.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
audit.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
audit_test.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
autopilot.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
autopilot_test.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
consul.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
consul_test.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
drain.go client: allow drain_on_shutdown configuration (#16827) 2023-04-14 15:35:32 -04:00
limits.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
limits_test.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
plugins.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
plugins_test.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
README.md
sentinel.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
tls.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
tls_test.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
ui.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
ui_test.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
vault.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
vault_test.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00: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).