pub struct TaskCSIPluginConfig {
pub stage_publish_base_dir: Option<String>,
pub health_timeout: Option<TimeDelta>,
pub id: Option<String>,
pub type: Option<String>,
pub mount_dir: Option<String>,
}
Expand description
TaskCSIPluginConfig contains the data that is required to setup a task as a CSI plugin. This will be used by the csi_plugin_supervisor_hook to configure mounts for the plugin and initiate the connection to the plugin catalog.
This struct was generated based on the Go types of the official Nomad API.
Fields§
§stage_publish_base_dir: Option<String>
StagePublishBaseDir is the base directory (within its container) in which the plugin mounts volumes being staged and bind mounts volumes being published. e.g. staging_target_path = {StagePublishBaseDir}/staging/{volume-id}/{usage-mode} e.g. target_path = {StagePublishBaseDir}/per-alloc/{alloc-id}/{volume-id}/{usage-mode} Default is /local/csi.
health_timeout: Option<TimeDelta>
HealthTimeout is the time after which the CSI plugin tasks will be killed if the CSI Plugin is not healthy.
id: Option<String>
ID is the identifier of the plugin. Ideally this should be the FQDN of the plugin.
type: Option<String>
CSIPluginType instructs Nomad on how to handle processing a plugin
mount_dir: Option<String>
MountDir is the directory (within its container) in which the plugin creates a socket (called CSISocketName) for communication with Nomad. Default is /csi.
Trait Implementations§
Source§impl Clone for TaskCSIPluginConfig
impl Clone for TaskCSIPluginConfig
Source§fn clone(&self) -> TaskCSIPluginConfig
fn clone(&self) -> TaskCSIPluginConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more