Files
nomad/api
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
..
2017-10-13 14:36:02 -07:00
2017-10-13 13:12:20 -07:00
2017-10-13 13:12:20 -07:00
2018-03-11 19:07:44 +00:00
2019-05-17 16:26:58 -04:00
2017-07-21 16:33:04 -07:00
2018-05-31 10:57:08 -07:00
2019-03-29 15:02:32 -04:00
2019-03-29 15:02:32 -04:00
2017-09-19 10:08:23 -05:00
2017-10-13 14:36:02 -07:00
2019-08-22 08:48:05 +02:00
2018-09-04 16:03:52 -07:00
2017-10-13 14:36:02 -07:00
2017-10-13 14:36:02 -07:00
2017-09-19 10:08:23 -05:00
2017-09-19 10:08:23 -05:00
2019-08-23 12:49:02 -04:00
2017-07-21 16:33:04 -07:00
2016-03-17 16:04:09 -07:00
2017-07-21 16:33:04 -07:00
2019-01-18 15:31:31 -05:00
2019-01-30 12:23:14 -08:00