"summary":"partially update scale of the specified Scale",
"summary":"partially update scale of the specified Scale",
"nickname":"patchNamespacedScaleScale",
"nickname":"patchNamespacedScaleScale",
...
@@ -1801,7 +1801,7 @@
...
@@ -1801,7 +1801,7 @@
{
{
"code":200,
"code":200,
"message":"OK",
"message":"OK",
"responseModel":"v1.Scale"
"responseModel":"v1beta1.Scale"
}
}
],
],
"produces":[
"produces":[
...
@@ -5121,7 +5121,7 @@
...
@@ -5121,7 +5121,7 @@
"description":"API at /apis/extensions/v1beta1",
"description":"API at /apis/extensions/v1beta1",
"operations":[
"operations":[
{
{
"type":"v1.Scale",
"type":"v1beta1.Scale",
"method":"GET",
"method":"GET",
"summary":"read scale of the specified Scale",
"summary":"read scale of the specified Scale",
"nickname":"readNamespacedScaleScale",
"nickname":"readNamespacedScaleScale",
...
@@ -5155,7 +5155,7 @@
...
@@ -5155,7 +5155,7 @@
{
{
"code":200,
"code":200,
"message":"OK",
"message":"OK",
"responseModel":"v1.Scale"
"responseModel":"v1beta1.Scale"
}
}
],
],
"produces":[
"produces":[
...
@@ -5167,7 +5167,7 @@
...
@@ -5167,7 +5167,7 @@
]
]
},
},
{
{
"type":"v1.Scale",
"type":"v1beta1.Scale",
"method":"PUT",
"method":"PUT",
"summary":"replace scale of the specified Scale",
"summary":"replace scale of the specified Scale",
"nickname":"replaceNamespacedScaleScale",
"nickname":"replaceNamespacedScaleScale",
...
@@ -5181,7 +5181,7 @@
...
@@ -5181,7 +5181,7 @@
"allowMultiple":false
"allowMultiple":false
},
},
{
{
"type":"v1.Scale",
"type":"v1beta1.Scale",
"paramType":"body",
"paramType":"body",
"name":"body",
"name":"body",
"description":"",
"description":"",
...
@@ -5209,7 +5209,7 @@
...
@@ -5209,7 +5209,7 @@
{
{
"code":200,
"code":200,
"message":"OK",
"message":"OK",
"responseModel":"v1.Scale"
"responseModel":"v1beta1.Scale"
}
}
],
],
"produces":[
"produces":[
...
@@ -5221,7 +5221,7 @@
...
@@ -5221,7 +5221,7 @@
]
]
},
},
{
{
"type":"v1.Scale",
"type":"v1beta1.Scale",
"method":"PATCH",
"method":"PATCH",
"summary":"partially update scale of the specified Scale",
"summary":"partially update scale of the specified Scale",
"nickname":"patchNamespacedScaleScale",
"nickname":"patchNamespacedScaleScale",
...
@@ -5263,7 +5263,7 @@
...
@@ -5263,7 +5263,7 @@
{
{
"code":200,
"code":200,
"message":"OK",
"message":"OK",
"responseModel":"v1.Scale"
"responseModel":"v1beta1.Scale"
}
}
],
],
"produces":[
"produces":[
...
@@ -7234,9 +7234,9 @@
...
@@ -7234,9 +7234,9 @@
}
}
}
}
},
},
"v1.Scale":{
"v1beta1.Scale":{
"id":"v1.Scale",
"id":"v1beta1.Scale",
"description":"Scale represents a scaling request for a resource.",
"description":"represents a scaling request for a resource.",
"properties":{
"properties":{
"kind":{
"kind":{
"type":"string",
"type":"string",
...
@@ -7251,18 +7251,18 @@
...
@@ -7251,18 +7251,18 @@
"description":"Standard object metadata; More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata."
"description":"Standard object metadata; More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata."
},
},
"spec":{
"spec":{
"$ref":"v1.ScaleSpec",
"$ref":"v1beta1.ScaleSpec",
"description":"defines the behavior of the scale. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status."
"description":"defines the behavior of the scale. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status."
},
},
"status":{
"status":{
"$ref":"v1.ScaleStatus",
"$ref":"v1beta1.ScaleStatus",
"description":"current status of the scale. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status. Read-only."
"description":"current status of the scale. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status. Read-only."
}
}
}
}
},
},
"v1.ScaleSpec":{
"v1beta1.ScaleSpec":{
"id":"v1.ScaleSpec",
"id":"v1beta1.ScaleSpec",
"description":"ScaleSpec describes the attributes of a scale subresource.",
"description":"describes the attributes of a scale subresource",
"properties":{
"properties":{
"replicas":{
"replicas":{
"type":"integer",
"type":"integer",
...
@@ -7271,9 +7271,9 @@
...
@@ -7271,9 +7271,9 @@
}
}
}
}
},
},
"v1.ScaleStatus":{
"v1beta1.ScaleStatus":{
"id":"v1.ScaleStatus",
"id":"v1beta1.ScaleStatus",
"description":"ScaleStatus represents the current status of a scale subresource.",
"description":"represents the current status of a scale subresource.",
"required":[
"required":[
"replicas"
"replicas"
],
],
...
@@ -7284,8 +7284,12 @@
...
@@ -7284,8 +7284,12 @@
"description":"actual number of observed instances of the scaled object."
"description":"actual number of observed instances of the scaled object."
},
},
"selector":{
"selector":{
"type":"any",
"description":"label query over pods that should match the replicas count. More info: http://releases.k8s.io/HEAD/docs/user-guide/labels.md#label-selectors"
},
"targetSelector":{
"type":"string",
"type":"string",
"description":"label query over pods that should match the replicas count. This is same as the label selector but in the string format to avoid introspection by clients. The string will be in the same format as the query-param syntax. More info about label selectors: http://releases.k8s.io/HEAD/docs/user-guide/labels.md#label-selectors"
"description":"label selector for pods that should match the replicas count. This is a serializated version of both map-based and more expressive set-based selectors. This is done to avoid introspection in the clients. The string will be in the same format as the query-param syntax. If the target type only supports map-based selectors, both this field and map-based selector field are populated. More info: http://releases.k8s.io/HEAD/docs/user-guide/labels.md#label-selectors"
}
}
}
}
},
},
...
@@ -7887,61 +7891,6 @@
...
@@ -7887,61 +7891,6 @@
"description":"ObservedGeneration reflects the generation of the most recently observed ReplicaSet."
"description":"ObservedGeneration reflects the generation of the most recently observed ReplicaSet."
}
}
}
}
},
"v1beta1.Scale":{
"id":"v1beta1.Scale",
"description":"represents a scaling request for a resource.",
"properties":{
"kind":{
"type":"string",
"description":"Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds"
},
"apiVersion":{
"type":"string",
"description":"APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources"
},
"metadata":{
"$ref":"v1.ObjectMeta",
"description":"Standard object metadata; More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata."
},
"spec":{
"$ref":"v1beta1.ScaleSpec",
"description":"defines the behavior of the scale. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status."
},
"status":{
"$ref":"v1beta1.ScaleStatus",
"description":"current status of the scale. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status. Read-only."
}
}
},
"v1beta1.ScaleSpec":{
"id":"v1beta1.ScaleSpec",
"description":"describes the attributes of a scale subresource",
"properties":{
"replicas":{
"type":"integer",
"format":"int32",
"description":"desired number of instances for the scaled object."
}
}
},
"v1beta1.ScaleStatus":{
"id":"v1beta1.ScaleStatus",
"description":"represents the current status of a scale subresource.",
"required":[
"replicas"
],
"properties":{
"replicas":{
"type":"integer",
"format":"int32",
"description":"actual number of observed instances of the scaled object."
},
"selector":{
"type":"any",
"description":"label query over pods that should match the replicas count. More info: http://releases.k8s.io/HEAD/docs/user-guide/labels.md#label-selectors"
<tdclass="tableblock halign-left valign-top"><pclass="tableblock">label query over pods that should match the replicas count. This is same as the label selector but in the string format to avoid introspection by clients. The string will be in the same format as the query-param syntax. More info about label selectors: <ahref="http://releases.k8s.io/HEAD/docs/user-guide/labels.md#label-selectors">http://releases.k8s.io/HEAD/docs/user-guide/labels.md#label-selectors</a></p></td>
<tdclass="tableblock halign-left valign-top"><pclass="tableblock">Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: <ahref="http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds">http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#types-kinds</a></p></td>
<tdclass="tableblock halign-left valign-top"><pclass="tableblock">APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: <ahref="http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources">http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#resources</a></p></td>
<tdclass="tableblock halign-left valign-top"><pclass="tableblock">defines the behavior of the scale. More info: <ahref="http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status">http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status</a>.</p></td>
<tdclass="tableblock halign-left valign-top"><pclass="tableblock">current status of the scale. More info: <ahref="http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status">http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status</a>. Read-only.</p></td>
<p>LoadBalancerIngress represents the status of a load-balancer ingress point: traffic intended for the service should be sent to an ingress point.</p>
<p>LoadBalancerIngress represents the status of a load-balancer ingress point: traffic intended for the service should be sent to an ingress point.</p>
...
@@ -3737,6 +3634,13 @@ Populated by the system when a graceful deletion is requested. Read-only. More i
...
@@ -3737,6 +3634,13 @@ Populated by the system when a graceful deletion is requested. Read-only. More i
<tdclass="tableblock halign-left valign-top"><pclass="tableblock">label selector for pods that should match the replicas count. This is a serializated version of both map-based and more expressive set-based selectors. This is done to avoid introspection in the clients. The string will be in the same format as the query-param syntax. If the target type only supports map-based selectors, both this field and map-based selector field are populated. More info: <ahref="http://releases.k8s.io/HEAD/docs/user-guide/labels.md#label-selectors">http://releases.k8s.io/HEAD/docs/user-guide/labels.md#label-selectors</a></p></td>
<p>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.</p>
<p>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.</p>
...
@@ -5728,7 +5598,7 @@ Both these may change in the future. Incoming requests are matched against the h
...
@@ -5728,7 +5598,7 @@ Both these may change in the future. Incoming requests are matched against the h
"":"represents the current status of a scale subresource.",
"":"represents the current status of a scale subresource.",
"replicas":"actual number of observed instances of the scaled object.",
"replicas":"actual number of observed instances of the scaled object.",
"selector":"label query over pods that should match the replicas count. More info: http://releases.k8s.io/HEAD/docs/user-guide/labels.md#label-selectors",
"selector":"label query over pods that should match the replicas count. More info: http://releases.k8s.io/HEAD/docs/user-guide/labels.md#label-selectors",
"targetSelector":"label selector for pods that should match the replicas count. This is a serializated version of both map-based and more expressive set-based selectors. This is done to avoid introspection in the clients. The string will be in the same format as the query-param syntax. If the target type only supports map-based selectors, both this field and map-based selector field are populated. More info: http://releases.k8s.io/HEAD/docs/user-guide/labels.md#label-selectors",
sort.Sort(ByKey(items))// sort to grant determistic parsing
returnnil,err
returninternalSelector(items),error
}
}
returnnil,error
sort.Sort(ByKey(items))// sort to grant determistic parsing
returninternalSelector(items),err
}
}
varqualifiedNameErrorMsgstring=fmt.Sprintf(`must be a qualified name (at most %d characters, matching regex %s), with an optional DNS subdomain prefix (at most %d characters, matching regex %s) and slash (/): e.g. "MyName" or "example.com/MyName"`,validation.QualifiedNameMaxLength,validation.QualifiedNameFmt,validation.DNS1123SubdomainMaxLength,validation.DNS1123SubdomainFmt)
varqualifiedNameErrorMsgstring=fmt.Sprintf(`must be a qualified name (at most %d characters, matching regex %s), with an optional DNS subdomain prefix (at most %d characters, matching regex %s) and slash (/): e.g. "MyName" or "example.com/MyName"`,validation.QualifiedNameMaxLength,validation.QualifiedNameFmt,validation.DNS1123SubdomainMaxLength,validation.DNS1123SubdomainFmt)
returnnil,fmt.Errorf("stored deployment object can't be represented in the form of a scale subresource because the label selector ('%v') can't be parsed: %v",deployment.Spec.Selector,err)
}
return&autoscaling.Scale{
// TODO: Create a variant of ObjectMeta type that only contains the fields below.
// TODO: Create a variant of ObjectMeta type that only contains the fields below.
returnnil,fmt.Errorf("stored replica set object can't be represented in the form of a scale subresource because the label selector ('%v') can't be parsed: %v",rs.Spec.Selector,err)
}
return&autoscaling.Scale{
// TODO: Create a variant of ObjectMeta type that only contains the fields below.
// TODO: Create a variant of ObjectMeta type that only contains the fields below.