mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 05:27:21 +00:00
update-all changes for deployment's observedGeneration
This commit is contained in:
parent
7a3d40786b
commit
6506d76f76
@ -6853,6 +6853,11 @@
|
|||||||
"id": "v1beta1.DeploymentStatus",
|
"id": "v1beta1.DeploymentStatus",
|
||||||
"description": "DeploymentStatus is the most recently observed status of the Deployment.",
|
"description": "DeploymentStatus is the most recently observed status of the Deployment.",
|
||||||
"properties": {
|
"properties": {
|
||||||
|
"observedGeneration": {
|
||||||
|
"type": "integer",
|
||||||
|
"format": "int64",
|
||||||
|
"description": "The generation observed by the deployment controller."
|
||||||
|
},
|
||||||
"replicas": {
|
"replicas": {
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"format": "int32",
|
"format": "int32",
|
||||||
|
@ -442,6 +442,13 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
|
|||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
|
<td class="tableblock halign-left valign-top"><p class="tableblock">observedGeneration</p></td>
|
||||||
|
<td class="tableblock halign-left valign-top"><p class="tableblock">The generation observed by the deployment controller.</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 (int64)</p></td>
|
||||||
|
<td class="tableblock halign-left valign-top"></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">replicas</p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock">replicas</p></td>
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">Total number of non-terminated pods targeted by this deployment (their labels match the selector).</p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock">Total number of non-terminated pods targeted by this deployment (their labels match the selector).</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">false</p></td>
|
||||||
@ -2486,7 +2493,7 @@ Populated by the system. Read-only. Value must be treated as opaque by clients a
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">generation</p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock">generation</p></td>
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">A sequence number representing a specific generation of the desired state. Currently only implemented by replication controllers. Populated by the system. Read-only.</p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock">A sequence number representing a specific generation of the desired state. Populated by the system. Read-only.</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">false</p></td>
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">integer (int64)</p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock">integer (int64)</p></td>
|
||||||
<td class="tableblock halign-left valign-top"></td>
|
<td class="tableblock halign-left valign-top"></td>
|
||||||
@ -5577,7 +5584,7 @@ Populated by the system when a graceful deletion is requested. Read-only. More i
|
|||||||
</div>
|
</div>
|
||||||
<div id="footer">
|
<div id="footer">
|
||||||
<div id="footer-text">
|
<div id="footer-text">
|
||||||
Last updated 2016-02-18 07:15:38 UTC
|
Last updated 2016-02-23 18:41:56 UTC
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
@ -1854,7 +1854,7 @@ Populated by the system. Read-only. Value must be treated as opaque by clients a
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">generation</p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock">generation</p></td>
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">A sequence number representing a specific generation of the desired state. Currently only implemented by replication controllers. Populated by the system. Read-only.</p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock">A sequence number representing a specific generation of the desired state. Populated by the system. Read-only.</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">false</p></td>
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">integer (int64)</p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock">integer (int64)</p></td>
|
||||||
<td class="tableblock halign-left valign-top"></td>
|
<td class="tableblock halign-left valign-top"></td>
|
||||||
@ -7477,7 +7477,7 @@ The resulting set of endpoints can be viewed as:<br>
|
|||||||
</div>
|
</div>
|
||||||
<div id="footer">
|
<div id="footer">
|
||||||
<div id="footer-text">
|
<div id="footer-text">
|
||||||
Last updated 2016-02-16 23:43:33 UTC
|
Last updated 2016-02-23 18:41:48 UTC
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
@ -7022,16 +7022,17 @@ func (x *DeploymentStatus) CodecEncodeSelf(e *codec1978.Encoder) {
|
|||||||
} else {
|
} else {
|
||||||
yysep2 := !z.EncBinary()
|
yysep2 := !z.EncBinary()
|
||||||
yy2arr2 := z.EncBasicHandle().StructToArray
|
yy2arr2 := z.EncBasicHandle().StructToArray
|
||||||
var yyq2 [4]bool
|
var yyq2 [5]bool
|
||||||
_, _, _ = yysep2, yyq2, yy2arr2
|
_, _, _ = yysep2, yyq2, yy2arr2
|
||||||
const yyr2 bool = false
|
const yyr2 bool = false
|
||||||
yyq2[0] = x.Replicas != 0
|
yyq2[0] = x.ObservedGeneration != 0
|
||||||
yyq2[1] = x.UpdatedReplicas != 0
|
yyq2[1] = x.Replicas != 0
|
||||||
yyq2[2] = x.AvailableReplicas != 0
|
yyq2[2] = x.UpdatedReplicas != 0
|
||||||
yyq2[3] = x.UnavailableReplicas != 0
|
yyq2[3] = x.AvailableReplicas != 0
|
||||||
|
yyq2[4] = x.UnavailableReplicas != 0
|
||||||
var yynn2 int
|
var yynn2 int
|
||||||
if yyr2 || yy2arr2 {
|
if yyr2 || yy2arr2 {
|
||||||
r.EncodeArrayStart(4)
|
r.EncodeArrayStart(5)
|
||||||
} else {
|
} else {
|
||||||
yynn2 = 0
|
yynn2 = 0
|
||||||
for _, b := range yyq2 {
|
for _, b := range yyq2 {
|
||||||
@ -7049,7 +7050,7 @@ func (x *DeploymentStatus) CodecEncodeSelf(e *codec1978.Encoder) {
|
|||||||
_ = yym4
|
_ = yym4
|
||||||
if false {
|
if false {
|
||||||
} else {
|
} else {
|
||||||
r.EncodeInt(int64(x.Replicas))
|
r.EncodeInt(int64(x.ObservedGeneration))
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
r.EncodeInt(0)
|
r.EncodeInt(0)
|
||||||
@ -7057,13 +7058,13 @@ func (x *DeploymentStatus) CodecEncodeSelf(e *codec1978.Encoder) {
|
|||||||
} else {
|
} else {
|
||||||
if yyq2[0] {
|
if yyq2[0] {
|
||||||
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
||||||
r.EncodeString(codecSelferC_UTF81234, string("replicas"))
|
r.EncodeString(codecSelferC_UTF81234, string("observedGeneration"))
|
||||||
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
||||||
yym5 := z.EncBinary()
|
yym5 := z.EncBinary()
|
||||||
_ = yym5
|
_ = yym5
|
||||||
if false {
|
if false {
|
||||||
} else {
|
} else {
|
||||||
r.EncodeInt(int64(x.Replicas))
|
r.EncodeInt(int64(x.ObservedGeneration))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -7074,7 +7075,7 @@ func (x *DeploymentStatus) CodecEncodeSelf(e *codec1978.Encoder) {
|
|||||||
_ = yym7
|
_ = yym7
|
||||||
if false {
|
if false {
|
||||||
} else {
|
} else {
|
||||||
r.EncodeInt(int64(x.UpdatedReplicas))
|
r.EncodeInt(int64(x.Replicas))
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
r.EncodeInt(0)
|
r.EncodeInt(0)
|
||||||
@ -7082,13 +7083,13 @@ func (x *DeploymentStatus) CodecEncodeSelf(e *codec1978.Encoder) {
|
|||||||
} else {
|
} else {
|
||||||
if yyq2[1] {
|
if yyq2[1] {
|
||||||
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
||||||
r.EncodeString(codecSelferC_UTF81234, string("updatedReplicas"))
|
r.EncodeString(codecSelferC_UTF81234, string("replicas"))
|
||||||
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
||||||
yym8 := z.EncBinary()
|
yym8 := z.EncBinary()
|
||||||
_ = yym8
|
_ = yym8
|
||||||
if false {
|
if false {
|
||||||
} else {
|
} else {
|
||||||
r.EncodeInt(int64(x.UpdatedReplicas))
|
r.EncodeInt(int64(x.Replicas))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -7099,7 +7100,7 @@ func (x *DeploymentStatus) CodecEncodeSelf(e *codec1978.Encoder) {
|
|||||||
_ = yym10
|
_ = yym10
|
||||||
if false {
|
if false {
|
||||||
} else {
|
} else {
|
||||||
r.EncodeInt(int64(x.AvailableReplicas))
|
r.EncodeInt(int64(x.UpdatedReplicas))
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
r.EncodeInt(0)
|
r.EncodeInt(0)
|
||||||
@ -7107,13 +7108,13 @@ func (x *DeploymentStatus) CodecEncodeSelf(e *codec1978.Encoder) {
|
|||||||
} else {
|
} else {
|
||||||
if yyq2[2] {
|
if yyq2[2] {
|
||||||
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
||||||
r.EncodeString(codecSelferC_UTF81234, string("availableReplicas"))
|
r.EncodeString(codecSelferC_UTF81234, string("updatedReplicas"))
|
||||||
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
||||||
yym11 := z.EncBinary()
|
yym11 := z.EncBinary()
|
||||||
_ = yym11
|
_ = yym11
|
||||||
if false {
|
if false {
|
||||||
} else {
|
} else {
|
||||||
r.EncodeInt(int64(x.AvailableReplicas))
|
r.EncodeInt(int64(x.UpdatedReplicas))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -7124,7 +7125,7 @@ func (x *DeploymentStatus) CodecEncodeSelf(e *codec1978.Encoder) {
|
|||||||
_ = yym13
|
_ = yym13
|
||||||
if false {
|
if false {
|
||||||
} else {
|
} else {
|
||||||
r.EncodeInt(int64(x.UnavailableReplicas))
|
r.EncodeInt(int64(x.AvailableReplicas))
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
r.EncodeInt(0)
|
r.EncodeInt(0)
|
||||||
@ -7132,11 +7133,36 @@ func (x *DeploymentStatus) CodecEncodeSelf(e *codec1978.Encoder) {
|
|||||||
} else {
|
} else {
|
||||||
if yyq2[3] {
|
if yyq2[3] {
|
||||||
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
||||||
r.EncodeString(codecSelferC_UTF81234, string("unavailableReplicas"))
|
r.EncodeString(codecSelferC_UTF81234, string("availableReplicas"))
|
||||||
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
||||||
yym14 := z.EncBinary()
|
yym14 := z.EncBinary()
|
||||||
_ = yym14
|
_ = yym14
|
||||||
if false {
|
if false {
|
||||||
|
} else {
|
||||||
|
r.EncodeInt(int64(x.AvailableReplicas))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if yyr2 || yy2arr2 {
|
||||||
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
||||||
|
if yyq2[4] {
|
||||||
|
yym16 := z.EncBinary()
|
||||||
|
_ = yym16
|
||||||
|
if false {
|
||||||
|
} else {
|
||||||
|
r.EncodeInt(int64(x.UnavailableReplicas))
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
r.EncodeInt(0)
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
if yyq2[4] {
|
||||||
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
||||||
|
r.EncodeString(codecSelferC_UTF81234, string("unavailableReplicas"))
|
||||||
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
||||||
|
yym17 := z.EncBinary()
|
||||||
|
_ = yym17
|
||||||
|
if false {
|
||||||
} else {
|
} else {
|
||||||
r.EncodeInt(int64(x.UnavailableReplicas))
|
r.EncodeInt(int64(x.UnavailableReplicas))
|
||||||
}
|
}
|
||||||
@ -7203,6 +7229,12 @@ func (x *DeploymentStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|||||||
yys3 := string(yys3Slc)
|
yys3 := string(yys3Slc)
|
||||||
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
||||||
switch yys3 {
|
switch yys3 {
|
||||||
|
case "observedGeneration":
|
||||||
|
if r.TryDecodeAsNil() {
|
||||||
|
x.ObservedGeneration = 0
|
||||||
|
} else {
|
||||||
|
x.ObservedGeneration = int64(r.DecodeInt(64))
|
||||||
|
}
|
||||||
case "replicas":
|
case "replicas":
|
||||||
if r.TryDecodeAsNil() {
|
if r.TryDecodeAsNil() {
|
||||||
x.Replicas = 0
|
x.Replicas = 0
|
||||||
@ -7238,16 +7270,32 @@ func (x *DeploymentStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder)
|
|||||||
var h codecSelfer1234
|
var h codecSelfer1234
|
||||||
z, r := codec1978.GenHelperDecoder(d)
|
z, r := codec1978.GenHelperDecoder(d)
|
||||||
_, _, _ = h, z, r
|
_, _, _ = h, z, r
|
||||||
var yyj8 int
|
var yyj9 int
|
||||||
var yyb8 bool
|
var yyb9 bool
|
||||||
var yyhl8 bool = l >= 0
|
var yyhl9 bool = l >= 0
|
||||||
yyj8++
|
yyj9++
|
||||||
if yyhl8 {
|
if yyhl9 {
|
||||||
yyb8 = yyj8 > l
|
yyb9 = yyj9 > l
|
||||||
} else {
|
} else {
|
||||||
yyb8 = r.CheckBreak()
|
yyb9 = r.CheckBreak()
|
||||||
}
|
}
|
||||||
if yyb8 {
|
if yyb9 {
|
||||||
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
||||||
|
if r.TryDecodeAsNil() {
|
||||||
|
x.ObservedGeneration = 0
|
||||||
|
} else {
|
||||||
|
x.ObservedGeneration = int64(r.DecodeInt(64))
|
||||||
|
}
|
||||||
|
yyj9++
|
||||||
|
if yyhl9 {
|
||||||
|
yyb9 = yyj9 > l
|
||||||
|
} else {
|
||||||
|
yyb9 = r.CheckBreak()
|
||||||
|
}
|
||||||
|
if yyb9 {
|
||||||
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -7257,13 +7305,13 @@ func (x *DeploymentStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder)
|
|||||||
} else {
|
} else {
|
||||||
x.Replicas = int(r.DecodeInt(codecSelferBitsize1234))
|
x.Replicas = int(r.DecodeInt(codecSelferBitsize1234))
|
||||||
}
|
}
|
||||||
yyj8++
|
yyj9++
|
||||||
if yyhl8 {
|
if yyhl9 {
|
||||||
yyb8 = yyj8 > l
|
yyb9 = yyj9 > l
|
||||||
} else {
|
} else {
|
||||||
yyb8 = r.CheckBreak()
|
yyb9 = r.CheckBreak()
|
||||||
}
|
}
|
||||||
if yyb8 {
|
if yyb9 {
|
||||||
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -7273,13 +7321,13 @@ func (x *DeploymentStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder)
|
|||||||
} else {
|
} else {
|
||||||
x.UpdatedReplicas = int(r.DecodeInt(codecSelferBitsize1234))
|
x.UpdatedReplicas = int(r.DecodeInt(codecSelferBitsize1234))
|
||||||
}
|
}
|
||||||
yyj8++
|
yyj9++
|
||||||
if yyhl8 {
|
if yyhl9 {
|
||||||
yyb8 = yyj8 > l
|
yyb9 = yyj9 > l
|
||||||
} else {
|
} else {
|
||||||
yyb8 = r.CheckBreak()
|
yyb9 = r.CheckBreak()
|
||||||
}
|
}
|
||||||
if yyb8 {
|
if yyb9 {
|
||||||
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -7289,13 +7337,13 @@ func (x *DeploymentStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder)
|
|||||||
} else {
|
} else {
|
||||||
x.AvailableReplicas = int(r.DecodeInt(codecSelferBitsize1234))
|
x.AvailableReplicas = int(r.DecodeInt(codecSelferBitsize1234))
|
||||||
}
|
}
|
||||||
yyj8++
|
yyj9++
|
||||||
if yyhl8 {
|
if yyhl9 {
|
||||||
yyb8 = yyj8 > l
|
yyb9 = yyj9 > l
|
||||||
} else {
|
} else {
|
||||||
yyb8 = r.CheckBreak()
|
yyb9 = r.CheckBreak()
|
||||||
}
|
}
|
||||||
if yyb8 {
|
if yyb9 {
|
||||||
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -7306,17 +7354,17 @@ func (x *DeploymentStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder)
|
|||||||
x.UnavailableReplicas = int(r.DecodeInt(codecSelferBitsize1234))
|
x.UnavailableReplicas = int(r.DecodeInt(codecSelferBitsize1234))
|
||||||
}
|
}
|
||||||
for {
|
for {
|
||||||
yyj8++
|
yyj9++
|
||||||
if yyhl8 {
|
if yyhl9 {
|
||||||
yyb8 = yyj8 > l
|
yyb9 = yyj9 > l
|
||||||
} else {
|
} else {
|
||||||
yyb8 = r.CheckBreak()
|
yyb9 = r.CheckBreak()
|
||||||
}
|
}
|
||||||
if yyb8 {
|
if yyb9 {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
||||||
z.DecStructFieldNotFound(yyj8-1, "")
|
z.DecStructFieldNotFound(yyj9-1, "")
|
||||||
}
|
}
|
||||||
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
||||||
}
|
}
|
||||||
@ -18881,7 +18929,7 @@ func (x codecSelfer1234) decSliceDeployment(v *[]Deployment, d *codec1978.Decode
|
|||||||
|
|
||||||
yyrg1 := len(yyv1) > 0
|
yyrg1 := len(yyv1) > 0
|
||||||
yyv21 := yyv1
|
yyv21 := yyv1
|
||||||
yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 624)
|
yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 632)
|
||||||
if yyrt1 {
|
if yyrt1 {
|
||||||
if yyrl1 <= cap(yyv1) {
|
if yyrl1 <= cap(yyv1) {
|
||||||
yyv1 = yyv1[:yyrl1]
|
yyv1 = yyv1[:yyrl1]
|
||||||
|
@ -2979,6 +2979,7 @@ func autoConvert_extensions_DeploymentStatus_To_v1beta1_DeploymentStatus(in *ext
|
|||||||
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
|
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
|
||||||
defaulting.(func(*extensions.DeploymentStatus))(in)
|
defaulting.(func(*extensions.DeploymentStatus))(in)
|
||||||
}
|
}
|
||||||
|
out.ObservedGeneration = in.ObservedGeneration
|
||||||
out.Replicas = int32(in.Replicas)
|
out.Replicas = int32(in.Replicas)
|
||||||
out.UpdatedReplicas = int32(in.UpdatedReplicas)
|
out.UpdatedReplicas = int32(in.UpdatedReplicas)
|
||||||
out.AvailableReplicas = int32(in.AvailableReplicas)
|
out.AvailableReplicas = int32(in.AvailableReplicas)
|
||||||
@ -4265,6 +4266,7 @@ func autoConvert_v1beta1_DeploymentStatus_To_extensions_DeploymentStatus(in *Dep
|
|||||||
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
|
if defaulting, found := s.DefaultingInterface(reflect.TypeOf(*in)); found {
|
||||||
defaulting.(func(*DeploymentStatus))(in)
|
defaulting.(func(*DeploymentStatus))(in)
|
||||||
}
|
}
|
||||||
|
out.ObservedGeneration = in.ObservedGeneration
|
||||||
out.Replicas = int(in.Replicas)
|
out.Replicas = int(in.Replicas)
|
||||||
out.UpdatedReplicas = int(in.UpdatedReplicas)
|
out.UpdatedReplicas = int(in.UpdatedReplicas)
|
||||||
out.AvailableReplicas = int(in.AvailableReplicas)
|
out.AvailableReplicas = int(in.AvailableReplicas)
|
||||||
|
@ -1233,6 +1233,7 @@ func deepCopy_v1beta1_DeploymentSpec(in DeploymentSpec, out *DeploymentSpec, c *
|
|||||||
}
|
}
|
||||||
|
|
||||||
func deepCopy_v1beta1_DeploymentStatus(in DeploymentStatus, out *DeploymentStatus, c *conversion.Cloner) error {
|
func deepCopy_v1beta1_DeploymentStatus(in DeploymentStatus, out *DeploymentStatus, c *conversion.Cloner) error {
|
||||||
|
out.ObservedGeneration = in.ObservedGeneration
|
||||||
out.Replicas = in.Replicas
|
out.Replicas = in.Replicas
|
||||||
out.UpdatedReplicas = in.UpdatedReplicas
|
out.UpdatedReplicas = in.UpdatedReplicas
|
||||||
out.AvailableReplicas = in.AvailableReplicas
|
out.AvailableReplicas = in.AvailableReplicas
|
||||||
|
@ -7056,16 +7056,17 @@ func (x *DeploymentStatus) CodecEncodeSelf(e *codec1978.Encoder) {
|
|||||||
} else {
|
} else {
|
||||||
yysep2 := !z.EncBinary()
|
yysep2 := !z.EncBinary()
|
||||||
yy2arr2 := z.EncBasicHandle().StructToArray
|
yy2arr2 := z.EncBasicHandle().StructToArray
|
||||||
var yyq2 [4]bool
|
var yyq2 [5]bool
|
||||||
_, _, _ = yysep2, yyq2, yy2arr2
|
_, _, _ = yysep2, yyq2, yy2arr2
|
||||||
const yyr2 bool = false
|
const yyr2 bool = false
|
||||||
yyq2[0] = x.Replicas != 0
|
yyq2[0] = x.ObservedGeneration != 0
|
||||||
yyq2[1] = x.UpdatedReplicas != 0
|
yyq2[1] = x.Replicas != 0
|
||||||
yyq2[2] = x.AvailableReplicas != 0
|
yyq2[2] = x.UpdatedReplicas != 0
|
||||||
yyq2[3] = x.UnavailableReplicas != 0
|
yyq2[3] = x.AvailableReplicas != 0
|
||||||
|
yyq2[4] = x.UnavailableReplicas != 0
|
||||||
var yynn2 int
|
var yynn2 int
|
||||||
if yyr2 || yy2arr2 {
|
if yyr2 || yy2arr2 {
|
||||||
r.EncodeArrayStart(4)
|
r.EncodeArrayStart(5)
|
||||||
} else {
|
} else {
|
||||||
yynn2 = 0
|
yynn2 = 0
|
||||||
for _, b := range yyq2 {
|
for _, b := range yyq2 {
|
||||||
@ -7083,7 +7084,7 @@ func (x *DeploymentStatus) CodecEncodeSelf(e *codec1978.Encoder) {
|
|||||||
_ = yym4
|
_ = yym4
|
||||||
if false {
|
if false {
|
||||||
} else {
|
} else {
|
||||||
r.EncodeInt(int64(x.Replicas))
|
r.EncodeInt(int64(x.ObservedGeneration))
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
r.EncodeInt(0)
|
r.EncodeInt(0)
|
||||||
@ -7091,13 +7092,13 @@ func (x *DeploymentStatus) CodecEncodeSelf(e *codec1978.Encoder) {
|
|||||||
} else {
|
} else {
|
||||||
if yyq2[0] {
|
if yyq2[0] {
|
||||||
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
||||||
r.EncodeString(codecSelferC_UTF81234, string("replicas"))
|
r.EncodeString(codecSelferC_UTF81234, string("observedGeneration"))
|
||||||
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
||||||
yym5 := z.EncBinary()
|
yym5 := z.EncBinary()
|
||||||
_ = yym5
|
_ = yym5
|
||||||
if false {
|
if false {
|
||||||
} else {
|
} else {
|
||||||
r.EncodeInt(int64(x.Replicas))
|
r.EncodeInt(int64(x.ObservedGeneration))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -7108,7 +7109,7 @@ func (x *DeploymentStatus) CodecEncodeSelf(e *codec1978.Encoder) {
|
|||||||
_ = yym7
|
_ = yym7
|
||||||
if false {
|
if false {
|
||||||
} else {
|
} else {
|
||||||
r.EncodeInt(int64(x.UpdatedReplicas))
|
r.EncodeInt(int64(x.Replicas))
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
r.EncodeInt(0)
|
r.EncodeInt(0)
|
||||||
@ -7116,13 +7117,13 @@ func (x *DeploymentStatus) CodecEncodeSelf(e *codec1978.Encoder) {
|
|||||||
} else {
|
} else {
|
||||||
if yyq2[1] {
|
if yyq2[1] {
|
||||||
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
||||||
r.EncodeString(codecSelferC_UTF81234, string("updatedReplicas"))
|
r.EncodeString(codecSelferC_UTF81234, string("replicas"))
|
||||||
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
||||||
yym8 := z.EncBinary()
|
yym8 := z.EncBinary()
|
||||||
_ = yym8
|
_ = yym8
|
||||||
if false {
|
if false {
|
||||||
} else {
|
} else {
|
||||||
r.EncodeInt(int64(x.UpdatedReplicas))
|
r.EncodeInt(int64(x.Replicas))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -7133,7 +7134,7 @@ func (x *DeploymentStatus) CodecEncodeSelf(e *codec1978.Encoder) {
|
|||||||
_ = yym10
|
_ = yym10
|
||||||
if false {
|
if false {
|
||||||
} else {
|
} else {
|
||||||
r.EncodeInt(int64(x.AvailableReplicas))
|
r.EncodeInt(int64(x.UpdatedReplicas))
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
r.EncodeInt(0)
|
r.EncodeInt(0)
|
||||||
@ -7141,13 +7142,13 @@ func (x *DeploymentStatus) CodecEncodeSelf(e *codec1978.Encoder) {
|
|||||||
} else {
|
} else {
|
||||||
if yyq2[2] {
|
if yyq2[2] {
|
||||||
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
||||||
r.EncodeString(codecSelferC_UTF81234, string("availableReplicas"))
|
r.EncodeString(codecSelferC_UTF81234, string("updatedReplicas"))
|
||||||
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
||||||
yym11 := z.EncBinary()
|
yym11 := z.EncBinary()
|
||||||
_ = yym11
|
_ = yym11
|
||||||
if false {
|
if false {
|
||||||
} else {
|
} else {
|
||||||
r.EncodeInt(int64(x.AvailableReplicas))
|
r.EncodeInt(int64(x.UpdatedReplicas))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -7158,7 +7159,7 @@ func (x *DeploymentStatus) CodecEncodeSelf(e *codec1978.Encoder) {
|
|||||||
_ = yym13
|
_ = yym13
|
||||||
if false {
|
if false {
|
||||||
} else {
|
} else {
|
||||||
r.EncodeInt(int64(x.UnavailableReplicas))
|
r.EncodeInt(int64(x.AvailableReplicas))
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
r.EncodeInt(0)
|
r.EncodeInt(0)
|
||||||
@ -7166,11 +7167,36 @@ func (x *DeploymentStatus) CodecEncodeSelf(e *codec1978.Encoder) {
|
|||||||
} else {
|
} else {
|
||||||
if yyq2[3] {
|
if yyq2[3] {
|
||||||
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
||||||
r.EncodeString(codecSelferC_UTF81234, string("unavailableReplicas"))
|
r.EncodeString(codecSelferC_UTF81234, string("availableReplicas"))
|
||||||
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
||||||
yym14 := z.EncBinary()
|
yym14 := z.EncBinary()
|
||||||
_ = yym14
|
_ = yym14
|
||||||
if false {
|
if false {
|
||||||
|
} else {
|
||||||
|
r.EncodeInt(int64(x.AvailableReplicas))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if yyr2 || yy2arr2 {
|
||||||
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
||||||
|
if yyq2[4] {
|
||||||
|
yym16 := z.EncBinary()
|
||||||
|
_ = yym16
|
||||||
|
if false {
|
||||||
|
} else {
|
||||||
|
r.EncodeInt(int64(x.UnavailableReplicas))
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
r.EncodeInt(0)
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
if yyq2[4] {
|
||||||
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
||||||
|
r.EncodeString(codecSelferC_UTF81234, string("unavailableReplicas"))
|
||||||
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
||||||
|
yym17 := z.EncBinary()
|
||||||
|
_ = yym17
|
||||||
|
if false {
|
||||||
} else {
|
} else {
|
||||||
r.EncodeInt(int64(x.UnavailableReplicas))
|
r.EncodeInt(int64(x.UnavailableReplicas))
|
||||||
}
|
}
|
||||||
@ -7237,6 +7263,12 @@ func (x *DeploymentStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|||||||
yys3 := string(yys3Slc)
|
yys3 := string(yys3Slc)
|
||||||
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
z.DecSendContainerState(codecSelfer_containerMapValue1234)
|
||||||
switch yys3 {
|
switch yys3 {
|
||||||
|
case "observedGeneration":
|
||||||
|
if r.TryDecodeAsNil() {
|
||||||
|
x.ObservedGeneration = 0
|
||||||
|
} else {
|
||||||
|
x.ObservedGeneration = int64(r.DecodeInt(64))
|
||||||
|
}
|
||||||
case "replicas":
|
case "replicas":
|
||||||
if r.TryDecodeAsNil() {
|
if r.TryDecodeAsNil() {
|
||||||
x.Replicas = 0
|
x.Replicas = 0
|
||||||
@ -7272,16 +7304,32 @@ func (x *DeploymentStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder)
|
|||||||
var h codecSelfer1234
|
var h codecSelfer1234
|
||||||
z, r := codec1978.GenHelperDecoder(d)
|
z, r := codec1978.GenHelperDecoder(d)
|
||||||
_, _, _ = h, z, r
|
_, _, _ = h, z, r
|
||||||
var yyj8 int
|
var yyj9 int
|
||||||
var yyb8 bool
|
var yyb9 bool
|
||||||
var yyhl8 bool = l >= 0
|
var yyhl9 bool = l >= 0
|
||||||
yyj8++
|
yyj9++
|
||||||
if yyhl8 {
|
if yyhl9 {
|
||||||
yyb8 = yyj8 > l
|
yyb9 = yyj9 > l
|
||||||
} else {
|
} else {
|
||||||
yyb8 = r.CheckBreak()
|
yyb9 = r.CheckBreak()
|
||||||
}
|
}
|
||||||
if yyb8 {
|
if yyb9 {
|
||||||
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
||||||
|
if r.TryDecodeAsNil() {
|
||||||
|
x.ObservedGeneration = 0
|
||||||
|
} else {
|
||||||
|
x.ObservedGeneration = int64(r.DecodeInt(64))
|
||||||
|
}
|
||||||
|
yyj9++
|
||||||
|
if yyhl9 {
|
||||||
|
yyb9 = yyj9 > l
|
||||||
|
} else {
|
||||||
|
yyb9 = r.CheckBreak()
|
||||||
|
}
|
||||||
|
if yyb9 {
|
||||||
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -7291,13 +7339,13 @@ func (x *DeploymentStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder)
|
|||||||
} else {
|
} else {
|
||||||
x.Replicas = int32(r.DecodeInt(32))
|
x.Replicas = int32(r.DecodeInt(32))
|
||||||
}
|
}
|
||||||
yyj8++
|
yyj9++
|
||||||
if yyhl8 {
|
if yyhl9 {
|
||||||
yyb8 = yyj8 > l
|
yyb9 = yyj9 > l
|
||||||
} else {
|
} else {
|
||||||
yyb8 = r.CheckBreak()
|
yyb9 = r.CheckBreak()
|
||||||
}
|
}
|
||||||
if yyb8 {
|
if yyb9 {
|
||||||
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -7307,13 +7355,13 @@ func (x *DeploymentStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder)
|
|||||||
} else {
|
} else {
|
||||||
x.UpdatedReplicas = int32(r.DecodeInt(32))
|
x.UpdatedReplicas = int32(r.DecodeInt(32))
|
||||||
}
|
}
|
||||||
yyj8++
|
yyj9++
|
||||||
if yyhl8 {
|
if yyhl9 {
|
||||||
yyb8 = yyj8 > l
|
yyb9 = yyj9 > l
|
||||||
} else {
|
} else {
|
||||||
yyb8 = r.CheckBreak()
|
yyb9 = r.CheckBreak()
|
||||||
}
|
}
|
||||||
if yyb8 {
|
if yyb9 {
|
||||||
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -7323,13 +7371,13 @@ func (x *DeploymentStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder)
|
|||||||
} else {
|
} else {
|
||||||
x.AvailableReplicas = int32(r.DecodeInt(32))
|
x.AvailableReplicas = int32(r.DecodeInt(32))
|
||||||
}
|
}
|
||||||
yyj8++
|
yyj9++
|
||||||
if yyhl8 {
|
if yyhl9 {
|
||||||
yyb8 = yyj8 > l
|
yyb9 = yyj9 > l
|
||||||
} else {
|
} else {
|
||||||
yyb8 = r.CheckBreak()
|
yyb9 = r.CheckBreak()
|
||||||
}
|
}
|
||||||
if yyb8 {
|
if yyb9 {
|
||||||
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -7340,17 +7388,17 @@ func (x *DeploymentStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder)
|
|||||||
x.UnavailableReplicas = int32(r.DecodeInt(32))
|
x.UnavailableReplicas = int32(r.DecodeInt(32))
|
||||||
}
|
}
|
||||||
for {
|
for {
|
||||||
yyj8++
|
yyj9++
|
||||||
if yyhl8 {
|
if yyhl9 {
|
||||||
yyb8 = yyj8 > l
|
yyb9 = yyj9 > l
|
||||||
} else {
|
} else {
|
||||||
yyb8 = r.CheckBreak()
|
yyb9 = r.CheckBreak()
|
||||||
}
|
}
|
||||||
if yyb8 {
|
if yyb9 {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
||||||
z.DecStructFieldNotFound(yyj8-1, "")
|
z.DecStructFieldNotFound(yyj9-1, "")
|
||||||
}
|
}
|
||||||
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
||||||
}
|
}
|
||||||
@ -20210,7 +20258,7 @@ func (x codecSelfer1234) decSliceDeployment(v *[]Deployment, d *codec1978.Decode
|
|||||||
|
|
||||||
yyrg1 := len(yyv1) > 0
|
yyrg1 := len(yyv1) > 0
|
||||||
yyv21 := yyv1
|
yyv21 := yyv1
|
||||||
yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 632)
|
yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 640)
|
||||||
if yyrt1 {
|
if yyrt1 {
|
||||||
if yyrl1 <= cap(yyv1) {
|
if yyrl1 <= cap(yyv1) {
|
||||||
yyv1 = yyv1[:yyrl1]
|
yyv1 = yyv1[:yyrl1]
|
||||||
|
@ -185,6 +185,7 @@ func (DeploymentSpec) SwaggerDoc() map[string]string {
|
|||||||
|
|
||||||
var map_DeploymentStatus = map[string]string{
|
var map_DeploymentStatus = map[string]string{
|
||||||
"": "DeploymentStatus is the most recently observed status of the Deployment.",
|
"": "DeploymentStatus is the most recently observed status of the Deployment.",
|
||||||
|
"observedGeneration": "The generation observed by the deployment controller.",
|
||||||
"replicas": "Total number of non-terminated pods targeted by this deployment (their labels match the selector).",
|
"replicas": "Total number of non-terminated pods targeted by this deployment (their labels match the selector).",
|
||||||
"updatedReplicas": "Total number of non-terminated pods targeted by this deployment that have the desired template spec.",
|
"updatedReplicas": "Total number of non-terminated pods targeted by this deployment that have the desired template spec.",
|
||||||
"availableReplicas": "Total number of available pods (ready for at least minReadySeconds) targeted by this deployment.",
|
"availableReplicas": "Total number of available pods (ready for at least minReadySeconds) targeted by this deployment.",
|
||||||
|
Loading…
Reference in New Issue
Block a user