diff --git a/api/swagger-spec/v1.json b/api/swagger-spec/v1.json
index 1039410c26..63df851ec5 100644
--- a/api/swagger-spec/v1.json
+++ b/api/swagger-spec/v1.json
@@ -10480,6 +10480,168 @@
}
]
},
+ {
+ "path": "/api/v1/namespaces/{namespace}/replicationcontrollers/{name}/scale",
+ "description": "API at /api/v1",
+ "operations": [
+ {
+ "type": "v1.Scale",
+ "method": "GET",
+ "summary": "read scale of the specified Scale",
+ "nickname": "readNamespacedScaleScale",
+ "parameters": [
+ {
+ "type": "string",
+ "paramType": "query",
+ "name": "pretty",
+ "description": "If 'true', then the output is pretty printed.",
+ "required": false,
+ "allowMultiple": false
+ },
+ {
+ "type": "string",
+ "paramType": "path",
+ "name": "namespace",
+ "description": "object name and auth scope, such as for teams and projects",
+ "required": true,
+ "allowMultiple": false
+ },
+ {
+ "type": "string",
+ "paramType": "path",
+ "name": "name",
+ "description": "name of the Scale",
+ "required": true,
+ "allowMultiple": false
+ }
+ ],
+ "responseMessages": [
+ {
+ "code": 200,
+ "message": "OK",
+ "responseModel": "v1.Scale"
+ }
+ ],
+ "produces": [
+ "application/json",
+ "application/yaml"
+ ],
+ "consumes": [
+ "*/*"
+ ]
+ },
+ {
+ "type": "v1.Scale",
+ "method": "PUT",
+ "summary": "replace scale of the specified Scale",
+ "nickname": "replaceNamespacedScaleScale",
+ "parameters": [
+ {
+ "type": "string",
+ "paramType": "query",
+ "name": "pretty",
+ "description": "If 'true', then the output is pretty printed.",
+ "required": false,
+ "allowMultiple": false
+ },
+ {
+ "type": "v1.Scale",
+ "paramType": "body",
+ "name": "body",
+ "description": "",
+ "required": true,
+ "allowMultiple": false
+ },
+ {
+ "type": "string",
+ "paramType": "path",
+ "name": "namespace",
+ "description": "object name and auth scope, such as for teams and projects",
+ "required": true,
+ "allowMultiple": false
+ },
+ {
+ "type": "string",
+ "paramType": "path",
+ "name": "name",
+ "description": "name of the Scale",
+ "required": true,
+ "allowMultiple": false
+ }
+ ],
+ "responseMessages": [
+ {
+ "code": 200,
+ "message": "OK",
+ "responseModel": "v1.Scale"
+ }
+ ],
+ "produces": [
+ "application/json",
+ "application/yaml"
+ ],
+ "consumes": [
+ "*/*"
+ ]
+ },
+ {
+ "type": "v1.Scale",
+ "method": "PATCH",
+ "summary": "partially update scale of the specified Scale",
+ "nickname": "patchNamespacedScaleScale",
+ "parameters": [
+ {
+ "type": "string",
+ "paramType": "query",
+ "name": "pretty",
+ "description": "If 'true', then the output is pretty printed.",
+ "required": false,
+ "allowMultiple": false
+ },
+ {
+ "type": "unversioned.Patch",
+ "paramType": "body",
+ "name": "body",
+ "description": "",
+ "required": true,
+ "allowMultiple": false
+ },
+ {
+ "type": "string",
+ "paramType": "path",
+ "name": "namespace",
+ "description": "object name and auth scope, such as for teams and projects",
+ "required": true,
+ "allowMultiple": false
+ },
+ {
+ "type": "string",
+ "paramType": "path",
+ "name": "name",
+ "description": "name of the Scale",
+ "required": true,
+ "allowMultiple": false
+ }
+ ],
+ "responseMessages": [
+ {
+ "code": 200,
+ "message": "OK",
+ "responseModel": "v1.Scale"
+ }
+ ],
+ "produces": [
+ "application/json",
+ "application/yaml"
+ ],
+ "consumes": [
+ "application/json-patch+json",
+ "application/merge-patch+json",
+ "application/strategic-merge-patch+json"
+ ]
+ }
+ ]
+ },
{
"path": "/api/v1/namespaces/{namespace}/replicationcontrollers/{name}/status",
"description": "API at /api/v1",
@@ -17454,6 +17616,61 @@
}
}
},
+ "v1.Scale": {
+ "id": "v1.Scale",
+ "description": "Scale 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": "v1.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": "v1.ScaleStatus",
+ "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": {
+ "id": "v1.ScaleSpec",
+ "description": "ScaleSpec describes the attributes of a scale subresource.",
+ "properties": {
+ "replicas": {
+ "type": "integer",
+ "format": "int32",
+ "description": "desired number of instances for the scaled object."
+ }
+ }
+ },
+ "v1.ScaleStatus": {
+ "id": "v1.ScaleStatus",
+ "description": "ScaleStatus 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": "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"
+ }
+ }
+ },
"v1.ResourceQuotaList": {
"id": "v1.ResourceQuotaList",
"description": "ResourceQuotaList is a list of ResourceQuota items.",
diff --git a/docs/api-reference/v1/definitions.html b/docs/api-reference/v1/definitions.html
index 2bb43ced05..98f4817d0b 100755
--- a/docs/api-reference/v1/definitions.html
+++ b/docs/api-reference/v1/definitions.html
@@ -1454,6 +1454,47 @@ Examples:
+
+
ScaleStatus represents the current status of a scale subresource.
+Name | +Description | +Required | +Schema | +Default | +
---|---|---|---|---|
replicas |
+actual number of observed instances of the scaled object. |
+true |
+integer (int32) |
++ |
selector |
+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 |
+false |
+string |
++ |
Scale represents a scaling request for a resource.
+Name | +Description | +Required | +Schema | +Default | +
---|---|---|---|---|
kind |
+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 |
+false |
+string |
++ |
apiVersion |
+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 |
+false |
+string |
++ |
metadata |
+Standard object metadata; More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata. |
+false |
++ | + |
spec |
+defines the behavior of the scale. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status. |
+false |
++ | + |
status |
+current status of the scale. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status. Read-only. |
+false |
++ | + |
ScaleSpec describes the attributes of a scale subresource.
+Name | +Description | +Required | +Schema | +Default | +
---|---|---|---|---|
replicas |
+desired number of instances for the scaled object. |
+false |
+integer (int32) |
++ |