426c26d7c0
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. |
||
---|---|---|
.. | ||
consul | ||
monitor | ||
pprof | ||
test-resources | ||
testdata | ||
acl_endpoint.go | ||
acl_endpoint_test.go | ||
agent.go | ||
agent_endpoint.go | ||
agent_endpoint_test.go | ||
agent_test.go | ||
alloc_endpoint.go | ||
alloc_endpoint_test.go | ||
bindata_assetfs.go | ||
command.go | ||
command_test.go | ||
config.go | ||
config_oss.go | ||
config_parse.go | ||
config_parse_test.go | ||
config_test.go | ||
deployment_endpoint.go | ||
deployment_endpoint_test.go | ||
eval_endpoint.go | ||
eval_endpoint_test.go | ||
fs_endpoint.go | ||
fs_endpoint_test.go | ||
helpers.go | ||
helpers_test.go | ||
http.go | ||
http_oss.go | ||
http_test.go | ||
job_endpoint.go | ||
job_endpoint_test.go | ||
keyring.go | ||
keyring_test.go | ||
log_file.go | ||
log_file_test.go | ||
log_levels.go | ||
log_levels_test.go | ||
metrics_endpoint.go | ||
metrics_endpoint_test.go | ||
node_endpoint.go | ||
node_endpoint_test.go | ||
operator_endpoint.go | ||
operator_endpoint_test.go | ||
plugins.go | ||
region_endpoint.go | ||
region_endpoint_test.go | ||
retry_join.go | ||
retry_join_test.go | ||
search_endpoint.go | ||
search_endpoint_test.go | ||
stats_endpoint.go | ||
stats_endpoint_test.go | ||
status_endpoint.go | ||
status_endpoint_test.go | ||
stub_asset.go | ||
syslog.go | ||
syslog_test.go | ||
system_endpoint.go | ||
system_endpoint_test.go | ||
testagent.go | ||
testingutils_test.go |