Add volume selector (#1385)

* Add volume selector
* Add slightly better documentation and gofmt changes
* Update generated deepcopy
* Add test for PV selector

Co-authored-by: John Rood <j.rood@picturae.com>
This commit is contained in:
John Rood
2021-08-26 14:57:54 +02:00
committed by GitHub
co-authored by John Rood
parent 1b3366e9f4
commit 2d2ce6197b
9 changed files with 215 additions and 25 deletions
@@ -561,6 +561,24 @@ spec:
properties:
iops:
type: integer
selector:
type: object
properties:
matchExpressions:
type: array
items:
type: object
properties:
key:
type: string
operator:
type: string
values:
type: array
items:
type: string
matchLabels:
type: object
size:
type: string
pattern: '^(\d+(e\d+)?|\d+(\.\d+)?(e\d+)?[EPTGMK]i?)$'