DynamicHostVolumeRegistrationArgs

data class DynamicHostVolumeRegistrationArgs(val capabilities: Output<List<DynamicHostVolumeRegistrationCapabilityArgs>>? = null, val capacity: Output<String>? = null, val hostPath: Output<String>? = null, val name: Output<String>? = null, val namespace: Output<String>? = null, val nodeId: Output<String>? = null, val parameters: Output<Map<String, String>>? = null) : ConvertibleToJava<DynamicHostVolumeRegistrationArgs>

Registers a dynamic host volume in Nomad that has already been created. Note that Nomad supports two workflows for dynamic host volumes: create and register. Both resources result in the same data source with the same outputs.

Constructors

Link copied to clipboard
constructor(capabilities: Output<List<DynamicHostVolumeRegistrationCapabilityArgs>>? = null, capacity: Output<String>? = null, hostPath: Output<String>? = null, name: Output<String>? = null, namespace: Output<String>? = null, nodeId: Output<String>? = null, parameters: Output<Map<String, String>>? = null)

Properties

Link copied to clipboard

(block: <optional>) - Option for validating the capability of a volume. Each capability block has the following attributes:

Link copied to clipboard
val capacity: Output<String>? = null

(string: <optional>) - The size of a volume in bytes. Either the physical size of a disk or a quota, depending on the plugin. This field must be between the capacity_min and capacity_max values unless they are omitted. Accepts human-friendly suffixes such as "100GiB".

Link copied to clipboard
val hostPath: Output<String>? = null

(string) - The path on disk where the volume exists.

Link copied to clipboard
val name: Output<String>? = null

(string: <required>) - The name of the volume, which is used as the volume_source field in job specifications that claim this volume. Host volume names must be unique per node. Names are visible to any user with node:read ACL, even across namespaces, so they should not be treated as sensitive values.

Link copied to clipboard
val namespace: Output<String>? = null

(string: <optional>) - The namespace of the volume. This field overrides the namespace provided by the -namespace flag or NOMAD_NAMESPACE environment variable. Defaults to "default" if unset.

Link copied to clipboard
val nodeId: Output<String>? = null

(string: <required>) - A specific node where the volume is mounted.

Link copied to clipboard
val parameters: Output<Map<String, String>>? = null

(map<string|string>: <optional>) - A key-value map of strings passed directly to the plugin to configure the volume. The details of these parameters are specific to the plugin. `access_mode`: /nomad/docs/other-specifications/volume/capability#access_mode `attachment_mode`: /nomad/docs/other-specifications/volume/capability#attachment_mode volume_source: /nomad/docs/job-specification/volume#source

Functions

Link copied to clipboard
open override fun toJava(): DynamicHostVolumeRegistrationArgs