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:
@@ -741,10 +741,14 @@ type CephFSVolumeSource struct {
|
||||
}
|
||||
|
||||
// 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.
|
||||
type FlockerVolumeSource struct {
|
||||
// Required: the volume name. This is going to be store on metadata -> name on the payload for Flocker
|
||||
DatasetName string `json:"datasetName"`
|
||||
// Name of the dataset stored as metadata -> name on the dataset for Flocker
|
||||
// should be considered as deprecated
|
||||
DatasetName string `json:"datasetName,omitempty"`
|
||||
// UUID of the dataset. This is unique identifier of a Flocker dataset
|
||||
DatasetUUID string `json:"datasetUUID,omitempty"`
|
||||
}
|
||||
|
||||
// Represents a volume containing downward API info.
|
||||
|
Reference in New Issue
Block a user