diff --git a/api/swagger-spec/v1beta1.json b/api/swagger-spec/v1beta1.json index d11efee40a4..c4e9902c129 100644 --- a/api/swagger-spec/v1beta1.json +++ b/api/swagger-spec/v1beta1.json @@ -2941,7 +2941,7 @@ "description": "Completions specifies the desired number of successfully finished pods the job should be run with. Defaults to 1. More info: http://releases.k8s.io/HEAD/docs/user-guide/jobs.md" }, "selector": { - "$ref": "v1beta1.PodSelector", + "$ref": "v1beta1.LabelSelector", "description": "Selector is a label query over pods that should match the pod count. More info: http://releases.k8s.io/HEAD/docs/user-guide/labels.md#label-selectors" }, "template": { @@ -2950,9 +2950,9 @@ } } }, - "v1beta1.PodSelector": { - "id": "v1beta1.PodSelector", - "description": "A pod selector is a label query over a set of pods. The result of matchLabels and matchExpressions are ANDed. An empty pod selector matches all objects. A null pod selector matches no objects.", + "v1beta1.LabelSelector": { + "id": "v1beta1.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": "any", @@ -2961,15 +2961,15 @@ "matchExpressions": { "type": "array", "items": { - "$ref": "v1beta1.PodSelectorRequirement" + "$ref": "v1beta1.LabelSelectorRequirement" }, - "description": "matchExpressions is a list of pod selector requirements. The requirements are ANDed." + "description": "matchExpressions is a list of label selector requirements. The requirements are ANDed." } } }, - "v1beta1.PodSelectorRequirement": { - "id": "v1beta1.PodSelectorRequirement", - "description": "A pod selector requirement is a selector that contains values, a key, and an operator that relates the key and values.", + "v1beta1.LabelSelectorRequirement": { + "id": "v1beta1.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" diff --git a/docs/api-reference/extensions/v1beta1/definitions.html b/docs/api-reference/extensions/v1beta1/definitions.html index 0a41869c99d..5de61b22407 100755 --- a/docs/api-reference/extensions/v1beta1/definitions.html +++ b/docs/api-reference/extensions/v1beta1/definitions.html @@ -398,54 +398,6 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
A pod 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  | 
-- | 
Job represents the configuration of a single job.
@@ -2090,6 +2042,47 @@ Populated by the system when a graceful deletion is requested. Read-only. More i +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  | 
++ | + | 
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  | 
++ | 
selector
Selector is a label query over pods that should match the pod count. More info: http://releases.k8s.io/HEAD/docs/user-guide/labels.md#label-selectors
false
A pod selector is a label query over a set of pods. The result of matchLabels and matchExpressions are ANDed. An empty pod selector matches all objects. A null pod 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  | 
-- | - | 
matchExpressions  | 
-matchExpressions is a list of pod selector requirements. The requirements are ANDed.  | 
-false  | 
-- | - |