Files
nomad/command/agent
Danielle Lancashire ab5ba7aa9b config: Hoist volume.config.source into volume
Currently, using a Volume in a job uses the following configuration:

```
volume "alias-name" {
  type = "volume-type"
  read_only = true

  config {
    source = "host_volume_name"
  }
}
```

This commit migrates to the following:

```
volume "alias-name" {
  type = "volume-type"
  source = "host_volume_name"
  read_only = true
}
```

The original design was based due to being uncertain about the future of storage
plugins, and to allow maxium flexibility.

However, this causes a few issues, namely:
- We frequently need to parse this configuration during submission,
scheduling, and mounting
- It complicates the configuration from and end users perspective
- It complicates the ability to do validation

As we understand the problem space of CSI a little more, it has become
clear that we won't need the `source` to be in config, as it will be
used in the majority of cases:

- Host Volumes: Always need a source
- Preallocated CSI Volumes: Always needs a source from a volume or claim name
- Dynamic Persistent CSI Volumes*: Always needs a source to attach the volumes
                                   to for managing upgrades and to avoid dangling.
- Dynamic Ephemeral CSI Volumes*: Less thought out, but `source` will probably point
                                  to the plugin name, and a `config` block will
                                  allow you to pass meta to the plugin. Or will
                                  point to a pre-configured ephemeral config.
*If implemented

The new design simplifies this by merging the source into the volume
stanza to solve the above issues with usability, performance, and error
handling.
2019-09-13 04:37:59 +02:00
..
2019-08-12 15:39:08 +02:00
2018-03-11 17:43:19 +00:00
2017-10-13 13:12:20 -07:00
2018-02-15 13:59:01 -08:00
2018-09-13 10:43:40 -07:00
2019-09-05 12:05:42 -07:00
2018-03-11 18:35:30 +00:00
2018-10-16 16:56:55 -07:00
2017-10-13 14:36:02 -07:00
2018-01-17 10:29:15 -05:00
2016-10-17 10:48:04 -07:00
2017-07-20 09:36:34 -07:00
2017-07-20 09:36:34 -07:00
2017-09-26 15:26:33 -07:00
2018-09-13 10:43:40 -07:00
2017-07-20 09:36:34 -07:00
2018-09-13 10:43:40 -07:00
2018-09-13 10:43:40 -07:00
2017-09-07 17:04:21 -07:00
2018-02-15 13:59:02 -08:00
2017-07-20 09:36:34 -07:00
2015-09-06 18:39:03 -07:00
2017-09-19 10:08:23 -05:00
2019-01-22 15:44:31 -08:00
2019-01-22 15:44:31 -08:00
2017-07-20 09:36:34 -07:00