Adds datasetUUID for referencing flocker datasets

* flocker datasets should be attached using an unique identifier. This
  is not the case for the name metadata used by datasetName
* allow only one of datasetUUID / datasetName specified
This commit is contained in:
Christian Simon
2016-08-01 11:45:03 +01:00
parent 15daecea7f
commit 1c11047ffb
21 changed files with 36958 additions and 36726 deletions

View File

@@ -840,10 +840,15 @@ message FlexVolumeSource {
}
// Represents a Flocker volume mounted by the Flocker agent.
// One and only one of datasetName and datasetUUID should be set.
// Flocker volumes do not support ownership management or SELinux relabeling.
message FlockerVolumeSource {
// Required: the volume name. This is going to be store on metadata -> name on the payload for Flocker
// Name of the dataset stored as metadata -> name on the dataset for Flocker
// should be considered as deprecated
optional string datasetName = 1;
// UUID of the dataset. This is unique identifier of a Flocker dataset
optional string datasetUUID = 2;
}
// Represents a Persistent Disk resource in Google Compute Engine.