Implement Creater and Deleter interfaces for AWS EBS.

Also mark the created EBS volumes with tags, so the admin knows
who/what created the volumes.
This commit is contained in:
Jan Safranek
2015-12-15 10:22:49 +01:00
parent 700d92c2a8
commit 6ff5286df9
9 changed files with 250 additions and 5 deletions

View File

@@ -49,6 +49,8 @@ type VolumeOptions struct {
AccessModes []api.PersistentVolumeAccessMode
// Reclamation policy for a persistent volume
PersistentVolumeReclaimPolicy api.PersistentVolumeReclaimPolicy
// Tags to attach to the real volume in the cloud provider - e.g. AWS EBS
CloudTags *map[string]string
}
// VolumePlugin is an interface to volume plugins that can be used on a