open-nomad/jobspec/test-fixtures
Danielle Lancashire 426c26d7c0 CSI Plugin Registration (#6555)
This changeset implements the initial registration and fingerprinting
of CSI Plugins as part of #5378. At a high level, it introduces the
following:

* A `csi_plugin` stanza as part of a Nomad task configuration, to
  allow a task to expose that it is a plugin.

* A new task runner hook: `csi_plugin_supervisor`. This hook does two
  things. When the `csi_plugin` stanza is detected, it will
  automatically configure the plugin task to receive bidirectional
  mounts to the CSI intermediary directory. At runtime, it will then
  perform an initial heartbeat of the plugin and handle submitting it to
  the new `dynamicplugins.Registry` for further use by the client, and
  then run a lightweight heartbeat loop that will emit task events
  when health changes.

* The `dynamicplugins.Registry` for handling plugins that run
  as Nomad tasks, in contrast to the existing catalog that requires
  `go-plugin` type plugins and to know the plugin configuration in
  advance.

* The `csimanager` which fingerprints CSI plugins, in a similar way to
  `drivermanager` and `devicemanager`. It currently only fingerprints
  the NodeID from the plugin, and assumes that all plugins are
  monolithic.

Missing features

* We do not use the live updates of the `dynamicplugin` registry in
  the `csimanager` yet.

* We do not deregister the plugins from the client when they shutdown
  yet, they just become indefinitely marked as unhealthy. This is
  deliberate until we figure out how we should manage deploying new
  versions of plugins/transitioning them.
2020-03-23 13:58:28 -04:00
..
artifacts.hcl chore: Format hcl configurations 2019-07-20 16:55:07 +02:00
bad-artifact.hcl chore: Format hcl configurations 2019-07-20 16:55:07 +02:00
bad-ports.hcl run "make hclfmt" 2020-02-03 12:15:53 -05:00
basic.hcl Revert "vendor: fsouza/go-docker-client v1.6.3" 2020-03-23 10:48:47 -04:00
basic_wrong_key.hcl run "make hclfmt" 2020-02-03 12:15:53 -05:00
csi-plugin.hcl CSI Plugin Registration (#6555) 2020-03-23 13:58:28 -04:00
default-job.hcl jobspec: defaults 2015-09-14 18:34:26 -07:00
distinctHosts-constraint.hcl chore: Format hcl configurations 2019-07-20 16:55:07 +02:00
distinctProperty-constraint.hcl chore: Format hcl configurations 2019-07-20 16:55:07 +02:00
incorrect-service-def.hcl run "make hclfmt" 2020-02-03 12:15:53 -05:00
job-with-kill-signal.hcl chore: Format hcl configurations 2019-07-20 16:55:07 +02:00
migrate-job.hcl chore: Format hcl configurations 2019-07-20 16:55:07 +02:00
multi-network.hcl chore: Format hcl configurations 2019-07-20 16:55:07 +02:00
multi-resource.hcl chore: Format hcl configurations 2019-07-20 16:55:07 +02:00
multi-vault.hcl chore: initial hclfmt 2019-10-11 14:00:05 +02:00
overlapping-ports.hcl run "make hclfmt" 2020-02-03 12:15:53 -05:00
parameterized_job.hcl chore: initial hclfmt 2019-10-11 14:00:05 +02:00
periodic-cron.hcl chore: initial hclfmt 2019-10-11 14:00:05 +02:00
regexp-constraint.hcl chore: initial hclfmt 2019-10-11 14:00:05 +02:00
reschedule-job-unlimited.hcl chore: initial hclfmt 2019-10-11 14:00:05 +02:00
reschedule-job.hcl chore: initial hclfmt 2019-10-11 14:00:05 +02:00
service-check-bad-header-2.hcl chore: initial hclfmt 2019-10-11 14:00:05 +02:00
service-check-bad-header.hcl chore: initial hclfmt 2019-10-11 14:00:05 +02:00
service-check-driver-address.hcl chore: initial hclfmt 2019-10-11 14:00:05 +02:00
service-check-initial-status.hcl chore: initial hclfmt 2019-10-11 14:00:05 +02:00
service-check-restart.hcl chore: initial hclfmt 2019-10-11 14:00:05 +02:00
service-enable-tag-override.hcl Update consul-template to v0.24.1 and remove deprecated vault_grace (#7170) 2020-02-23 16:24:53 +01:00
service-meta.hcl chore: initial hclfmt 2019-10-11 14:00:05 +02:00
set-contains-constraint.hcl chore: initial hclfmt 2019-10-11 14:00:05 +02:00
specify-job.hcl chore: initial hclfmt 2019-10-11 14:00:05 +02:00
task-nested-config.hcl Implement configuration validation for all task drivers 2016-04-10 00:42:57 +02:00
tg-network.hcl shutdown delay for task groups 2019-12-16 11:38:16 -05:00
tg-service-check.hcl chore: initial hclfmt 2019-10-11 14:00:05 +02:00
tg-service-enable-tag-override.hcl Update consul-template to v0.24.1 and remove deprecated vault_grace (#7170) 2020-02-23 16:24:53 +01:00
vault_inheritance.hcl chore: initial hclfmt 2019-10-11 14:00:05 +02:00
version-constraint.hcl chore: initial hclfmt 2019-10-11 14:00:05 +02:00