Skip to content

Commit

Permalink
feature: support validate volume create config
Browse files Browse the repository at this point in the history
Signed-off-by: Allen Sun <allensun.shl@alibaba-inc.com>
  • Loading branch information
allencloud committed Mar 29, 2018
1 parent e080984 commit 30b207d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 70 deletions.
16 changes: 13 additions & 3 deletions apis/swagger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2551,22 +2551,32 @@ definitions:
Name:
description: "The new volume's name. If not specified, Pouch generates a name."
type: "string"
x-nullable: false
minLength: 1
maxLength: 64
pattern: "[a-zA-Z0-9][a-zA-Z0-9-_.]{0,63}"
Driver:
description: "Name of the volume driver to use."
type: "string"
default: "local"
x-nullable: false
minLength: 1
maxLength: 64
pattern: "[a-zA-Z0-9][a-zA-Z0-9-_.]{0,63}"
DriverOpts:
description: "A mapping of driver options and values. These options are passed directly to the driver and are driver specific."
type: "object"
additionalProperties:
type: "string"
minLength: 1
maxLength: 128
pattern: "[a-zA-Z0-9][a-zA-Z0-9-_.]{0,127}"
Labels:
description: "User-defined key/value metadata."
description: "User-defined key/value metadata. White space could exist in value."
type: "object"
additionalProperties:
type: "string"
minLength: 1
maxLength: 128
pattern: "[a-zA-Z0-9][a-zA-Z0-9-_. ]{0,127}"
example:
Name: "tardis"
Labels:
Expand Down
67 changes: 0 additions & 67 deletions apis/types/volume_create_config.go

This file was deleted.

0 comments on commit 30b207d

Please sign in to comment.