Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ready replicas in Deployments #37959

Merged
merged 2 commits into from Jan 2, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions api/openapi-spec/swagger.json
Expand Up @@ -35210,6 +35210,11 @@
"type": "integer",
"format": "int64"
},
"readyReplicas": {
"description": "Total number of ready pods targeted by this deployment.",
"type": "integer",
"format": "int32"
},
"replicas": {
"description": "Total number of non-terminated pods targeted by this deployment (their labels match the selector).",
"type": "integer",
Expand Down
5 changes: 5 additions & 0 deletions api/swagger-spec/extensions_v1beta1.json
Expand Up @@ -8947,6 +8947,11 @@
"format": "int32",
"description": "Total number of non-terminated pods targeted by this deployment that have the desired template spec."
},
"readyReplicas": {
"type": "integer",
"format": "int32",
"description": "Total number of ready pods targeted by this deployment."
},
"availableReplicas": {
"type": "integer",
"format": "int32",
Expand Down
9 changes: 8 additions & 1 deletion docs/api-reference/extensions/v1beta1/definitions.html
Expand Up @@ -469,6 +469,13 @@ <h3 id="_v1beta1_deploymentstatus">v1beta1.DeploymentStatus</h3>
<td class="tableblock halign-left valign-top"></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock">readyReplicas</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">Total number of ready pods targeted by this deployment.</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">false</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">integer (int32)</p></td>
<td class="tableblock halign-left valign-top"></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock">availableReplicas</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">Total number of available pods (ready for at least minReadySeconds) targeted by this deployment.</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">false</p></td>
Expand Down Expand Up @@ -6919,7 +6926,7 @@ <h3 id="_any">any</h3>
</div>
<div id="footer">
<div id="footer-text">
Last updated 2016-12-16 21:59:42 UTC
Last updated 2016-12-21 12:26:48 UTC
</div>
</div>
</body>
Expand Down
5 changes: 5 additions & 0 deletions federation/apis/openapi-spec/swagger.json
Expand Up @@ -11616,6 +11616,11 @@
"type": "integer",
"format": "int64"
},
"readyReplicas": {
"description": "Total number of ready pods targeted by this deployment.",
"type": "integer",
"format": "int32"
},
"replicas": {
"description": "Total number of non-terminated pods targeted by this deployment (their labels match the selector).",
"type": "integer",
Expand Down
4 changes: 4 additions & 0 deletions pkg/apis/extensions/types.go
Expand Up @@ -312,6 +312,10 @@ type DeploymentStatus struct {
// +optional
UpdatedReplicas int32

// Total number of ready pods targeted by this deployment.
// +optional
ReadyReplicas int32

// Total number of available pods (ready for at least minReadySeconds) targeted by this deployment.
// +optional
AvailableReplicas int32
Expand Down
467 changes: 246 additions & 221 deletions pkg/apis/extensions/v1beta1/generated.pb.go

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions pkg/apis/extensions/v1beta1/generated.proto

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.