diff --git a/api/swagger-spec/apps_v1alpha1.json b/api/swagger-spec/apps_v1alpha1.json index 3d7b59baefb..34e122437da 100644 --- a/api/swagger-spec/apps_v1alpha1.json +++ b/api/swagger-spec/apps_v1alpha1.json @@ -2494,6 +2494,10 @@ }, "description": "AccessModes contains the desired access modes the volume should have. More info: http://releases.k8s.io/HEAD/docs/user-guide/persistent-volumes.md#access-modes-1" }, + "selector": { + "$ref": "unversioned.LabelSelector", + "description": "A label query over volumes to consider for binding." + }, "resources": { "$ref": "v1.ResourceRequirements", "description": "Resources represents the minimum resources the volume should have. More info: http://releases.k8s.io/HEAD/docs/user-guide/persistent-volumes.md#resources" diff --git a/api/swagger-spec/v1.json b/api/swagger-spec/v1.json index 711b5ae7c1c..e637cf516a3 100644 --- a/api/swagger-spec/v1.json +++ b/api/swagger-spec/v1.json @@ -16980,6 +16980,10 @@ }, "description": "AccessModes contains the desired access modes the volume should have. More info: http://releases.k8s.io/HEAD/docs/user-guide/persistent-volumes.md#access-modes-1" }, + "selector": { + "$ref": "unversioned.LabelSelector", + "description": "A label query over volumes to consider for binding." + }, "resources": { "$ref": "v1.ResourceRequirements", "description": "Resources represents the minimum resources the volume should have. More info: http://releases.k8s.io/HEAD/docs/user-guide/persistent-volumes.md#resources" @@ -16994,6 +16998,48 @@ "id": "v1.PersistentVolumeAccessMode", "properties": {} }, + "unversioned.LabelSelector": { + "id": "unversioned.LabelSelector", + "description": "A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects.", + "properties": { + "matchLabels": { + "type": "object", + "description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed." + }, + "matchExpressions": { + "type": "array", + "items": { + "$ref": "unversioned.LabelSelectorRequirement" + }, + "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed." + } + } + }, + "unversioned.LabelSelectorRequirement": { + "id": "unversioned.LabelSelectorRequirement", + "description": "A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.", + "required": [ + "key", + "operator" + ], + "properties": { + "key": { + "type": "string", + "description": "key is the label key that the selector applies to." + }, + "operator": { + "type": "string", + "description": "operator represents a key's relationship to a set of values. Valid operators ard In, NotIn, Exists and DoesNotExist." + }, + "values": { + "type": "array", + "items": { + "type": "string" + }, + "description": "values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch." + } + } + }, "v1.ResourceRequirements": { "id": "v1.ResourceRequirements", "description": "ResourceRequirements describes the compute resource requirements.", diff --git a/docs/api-reference/v1/definitions.html b/docs/api-reference/v1/definitions.html index 24be9495605..679687ab9db 100755 --- a/docs/api-reference/v1/definitions.html +++ b/docs/api-reference/v1/definitions.html @@ -845,6 +845,13 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
selector
A label query over volumes to consider for binding.
false
resources
Resources represents the minimum resources the volume should have. More info: http://releases.k8s.io/HEAD/docs/user-guide/persistent-volumes.md#resources
false
A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects.
+Name | +Description | +Required | +Schema | +Default | +
---|---|---|---|---|
matchLabels |
+matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. |
+false |
+object |
++ |
matchExpressions |
+matchExpressions is a list of label selector requirements. The requirements are ANDed. |
+false |
++ | + |
A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
+Name | +Description | +Required | +Schema | +Default | +
---|---|---|---|---|
key |
+key is the label key that the selector applies to. |
+true |
+string |
++ |
operator |
+operator represents a key’s relationship to a set of values. Valid operators ard In, NotIn, Exists and DoesNotExist. |
+true |
+string |
++ |
values |
+values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. |
+false |
+string array |
++ |