Commit ada53fab authored by Marcin's avatar Marcin

Autogenerated stuff for PDB status observed generation

parent 8e234737
...@@ -33876,11 +33876,11 @@ ...@@ -33876,11 +33876,11 @@
"v1beta1.PodDisruptionBudgetStatus": { "v1beta1.PodDisruptionBudgetStatus": {
"description": "PodDisruptionBudgetStatus represents information about the status of a PodDisruptionBudget. Status may trail the actual state of a system.", "description": "PodDisruptionBudgetStatus represents information about the status of a PodDisruptionBudget. Status may trail the actual state of a system.",
"required": [ "required": [
"disruptedPods",
"disruptionsAllowed", "disruptionsAllowed",
"currentHealthy", "currentHealthy",
"desiredHealthy", "desiredHealthy",
"expectedPods", "expectedPods"
"disruptedPods"
], ],
"properties": { "properties": {
"currentHealthy": { "currentHealthy": {
...@@ -33909,6 +33909,11 @@ ...@@ -33909,6 +33909,11 @@
"description": "total number of pods counted by this disruption budget", "description": "total number of pods counted by this disruption budget",
"type": "integer", "type": "integer",
"format": "int32" "format": "int32"
},
"observedGeneration": {
"description": "Most recent generation observed when updating this PDB status. PodDisruptionsAllowed and other status informatio is valid only if observedGeneration equals to PDB's object generation.",
"type": "integer",
"format": "int64"
} }
} }
}, },
......
...@@ -1236,13 +1236,22 @@ ...@@ -1236,13 +1236,22 @@
"id": "v1beta1.PodDisruptionBudgetStatus", "id": "v1beta1.PodDisruptionBudgetStatus",
"description": "PodDisruptionBudgetStatus represents information about the status of a PodDisruptionBudget. Status may trail the actual state of a system.", "description": "PodDisruptionBudgetStatus represents information about the status of a PodDisruptionBudget. Status may trail the actual state of a system.",
"required": [ "required": [
"disruptedPods",
"disruptionsAllowed", "disruptionsAllowed",
"currentHealthy", "currentHealthy",
"desiredHealthy", "desiredHealthy",
"expectedPods", "expectedPods"
"disruptedPods"
], ],
"properties": { "properties": {
"observedGeneration": {
"type": "integer",
"format": "int64",
"description": "Most recent generation observed when updating this PDB status. PodDisruptionsAllowed and other status informatio is valid only if observedGeneration equals to PDB's object generation."
},
"disruptedPods": {
"type": "object",
"description": "DisruptedPods contains information about pods whose eviction was processed by the API server eviction subresource handler but has not yet been observed by the PodDisruptionBudget controller. A pod will be in this map from the time when the API server processed the eviction request to the time when the pod is seen by PDB controller as having been marked for deletion (or after a timeout). The key in the map is the name of the pod and the value is the time when the API server processed the eviction request. If the deletion didn't occur and a pod is still there it will be removed from the list automatically by PodDisruptionBudget controller after some time. If everything goes smooth this map should be empty for the most of the time. Large number of entries in the map may indicate problems with pod deletions."
},
"disruptionsAllowed": { "disruptionsAllowed": {
"type": "integer", "type": "integer",
"format": "int32", "format": "int32",
...@@ -1262,10 +1271,6 @@ ...@@ -1262,10 +1271,6 @@
"type": "integer", "type": "integer",
"format": "int32", "format": "int32",
"description": "total number of pods counted by this disruption budget" "description": "total number of pods counted by this disruption budget"
},
"disruptedPods": {
"type": "object",
"description": "DisruptedPods contains information about pods whose eviction was processed by the API server eviction subresource handler but has not yet been observed by the PodDisruptionBudget controller. A pod will be in this map from the time when the API server processed the eviction request to the time when the pod is seen by PDB controller as having been marked for deletion (or after a timeout). The key in the map is the name of the pod and the value is the time when the API server processed the eviction request. If the deletion didn't occur and a pod is still there it will be removed from the list automatically by PodDisruptionBudget controller after some time. If everything goes smooth this map should be empty for the most of the time. Large number of entries in the map may indicate problems with pod deletions."
} }
} }
}, },
......
...@@ -814,6 +814,20 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; } ...@@ -814,6 +814,20 @@ 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">Most recent generation observed when updating this PDB status. PodDisruptionsAllowed and other status informatio is valid only if observedGeneration equals to PDB&#8217;s object generation.</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">disruptedPods</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">DisruptedPods contains information about pods whose eviction was processed by the API server eviction subresource handler but has not yet been observed by the PodDisruptionBudget controller. A pod will be in this map from the time when the API server processed the eviction request to the time when the pod is seen by PDB controller as having been marked for deletion (or after a timeout). The key in the map is the name of the pod and the value is the time when the API server processed the eviction request. If the deletion didn&#8217;t occur and a pod is still there it will be removed from the list automatically by PodDisruptionBudget controller after some time. If everything goes smooth this map should be empty for the most of the time. Large number of entries in the map may indicate problems with pod deletions.</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">true</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">object</p></td>
<td class="tableblock halign-left valign-top"></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock">disruptionsAllowed</p></td> <td class="tableblock halign-left valign-top"><p class="tableblock">disruptionsAllowed</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">Number of pod disruptions that are currently allowed.</p></td> <td class="tableblock halign-left valign-top"><p class="tableblock">Number of pod disruptions that are currently allowed.</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">true</p></td> <td class="tableblock halign-left valign-top"><p class="tableblock">true</p></td>
...@@ -841,13 +855,6 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; } ...@@ -841,13 +855,6 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
<td class="tableblock halign-left valign-top"><p class="tableblock">integer (int32)</p></td> <td class="tableblock halign-left valign-top"><p class="tableblock">integer (int32)</p></td>
<td class="tableblock halign-left valign-top"></td> <td class="tableblock halign-left valign-top"></td>
</tr> </tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock">disruptedPods</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">DisruptedPods contains information about pods whose eviction was processed by the API server eviction subresource handler but has not yet been observed by the PodDisruptionBudget controller. A pod will be in this map from the time when the API server processed the eviction request to the time when the pod is seen by PDB controller as having been marked for deletion (or after a timeout). The key in the map is the name of the pod and the value is the time when the API server processed the eviction request. If the deletion didn&#8217;t occur and a pod is still there it will be removed from the list automatically by PodDisruptionBudget controller after some time. If everything goes smooth this map should be empty for the most of the time. Large number of entries in the map may indicate problems with pod deletions.</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">true</p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">object</p></td>
<td class="tableblock halign-left valign-top"></td>
</tr>
</tbody> </tbody>
</table> </table>
...@@ -1395,7 +1402,7 @@ Examples:<br> ...@@ -1395,7 +1402,7 @@ Examples:<br>
</div> </div>
<div id="footer"> <div id="footer">
<div id="footer-text"> <div id="footer-text">
Last updated 2016-11-06 12:57:24 UTC Last updated 2016-11-08 13:05:21 UTC
</div> </div>
</div> </div>
</body> </body>
......
...@@ -362,12 +362,13 @@ func (x *PodDisruptionBudgetStatus) CodecEncodeSelf(e *codec1978.Encoder) { ...@@ -362,12 +362,13 @@ func (x *PodDisruptionBudgetStatus) CodecEncodeSelf(e *codec1978.Encoder) {
} else { } else {
yysep24 := !z.EncBinary() yysep24 := !z.EncBinary()
yy2arr24 := z.EncBasicHandle().StructToArray yy2arr24 := z.EncBasicHandle().StructToArray
var yyq24 [5]bool var yyq24 [6]bool
_, _, _ = yysep24, yyq24, yy2arr24 _, _, _ = yysep24, yyq24, yy2arr24
const yyr24 bool = false const yyr24 bool = false
yyq24[0] = x.ObservedGeneration != 0
var yynn24 int var yynn24 int
if yyr24 || yy2arr24 { if yyr24 || yy2arr24 {
r.EncodeArrayStart(5) r.EncodeArrayStart(6)
} else { } else {
yynn24 = 5 yynn24 = 5
for _, b := range yyq24 { for _, b := range yyq24 {
...@@ -380,40 +381,54 @@ func (x *PodDisruptionBudgetStatus) CodecEncodeSelf(e *codec1978.Encoder) { ...@@ -380,40 +381,54 @@ func (x *PodDisruptionBudgetStatus) CodecEncodeSelf(e *codec1978.Encoder) {
} }
if yyr24 || yy2arr24 { if yyr24 || yy2arr24 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234) z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq24[0] {
yym26 := z.EncBinary() yym26 := z.EncBinary()
_ = yym26 _ = yym26
if false { if false {
} else { } else {
r.EncodeInt(int64(x.PodDisruptionsAllowed)) r.EncodeInt(int64(x.ObservedGeneration))
} }
} else { } else {
r.EncodeInt(0)
}
} else {
if yyq24[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234) z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("disruptionsAllowed")) r.EncodeString(codecSelferC_UTF81234, string("observedGeneration"))
z.EncSendContainerState(codecSelfer_containerMapValue1234) z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym27 := z.EncBinary() yym27 := z.EncBinary()
_ = yym27 _ = yym27
if false { if false {
} else { } else {
r.EncodeInt(int64(x.PodDisruptionsAllowed)) r.EncodeInt(int64(x.ObservedGeneration))
}
} }
} }
if yyr24 || yy2arr24 { if yyr24 || yy2arr24 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234) z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.DisruptedPods == nil {
r.EncodeNil()
} else {
yym29 := z.EncBinary() yym29 := z.EncBinary()
_ = yym29 _ = yym29
if false { if false {
} else { } else {
r.EncodeInt(int64(x.CurrentHealthy)) h.encMapstringunversioned_Time((map[string]pkg2_unversioned.Time)(x.DisruptedPods), e)
}
} }
} else { } else {
z.EncSendContainerState(codecSelfer_containerMapKey1234) z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("currentHealthy")) r.EncodeString(codecSelferC_UTF81234, string("disruptedPods"))
z.EncSendContainerState(codecSelfer_containerMapValue1234) z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.DisruptedPods == nil {
r.EncodeNil()
} else {
yym30 := z.EncBinary() yym30 := z.EncBinary()
_ = yym30 _ = yym30
if false { if false {
} else { } else {
r.EncodeInt(int64(x.CurrentHealthy)) h.encMapstringunversioned_Time((map[string]pkg2_unversioned.Time)(x.DisruptedPods), e)
}
} }
} }
if yyr24 || yy2arr24 { if yyr24 || yy2arr24 {
...@@ -422,17 +437,17 @@ func (x *PodDisruptionBudgetStatus) CodecEncodeSelf(e *codec1978.Encoder) { ...@@ -422,17 +437,17 @@ func (x *PodDisruptionBudgetStatus) CodecEncodeSelf(e *codec1978.Encoder) {
_ = yym32 _ = yym32
if false { if false {
} else { } else {
r.EncodeInt(int64(x.DesiredHealthy)) r.EncodeInt(int64(x.PodDisruptionsAllowed))
} }
} else { } else {
z.EncSendContainerState(codecSelfer_containerMapKey1234) z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("desiredHealthy")) r.EncodeString(codecSelferC_UTF81234, string("disruptionsAllowed"))
z.EncSendContainerState(codecSelfer_containerMapValue1234) z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym33 := z.EncBinary() yym33 := z.EncBinary()
_ = yym33 _ = yym33
if false { if false {
} else { } else {
r.EncodeInt(int64(x.DesiredHealthy)) r.EncodeInt(int64(x.PodDisruptionsAllowed))
} }
} }
if yyr24 || yy2arr24 { if yyr24 || yy2arr24 {
...@@ -441,45 +456,56 @@ func (x *PodDisruptionBudgetStatus) CodecEncodeSelf(e *codec1978.Encoder) { ...@@ -441,45 +456,56 @@ func (x *PodDisruptionBudgetStatus) CodecEncodeSelf(e *codec1978.Encoder) {
_ = yym35 _ = yym35
if false { if false {
} else { } else {
r.EncodeInt(int64(x.ExpectedPods)) r.EncodeInt(int64(x.CurrentHealthy))
} }
} else { } else {
z.EncSendContainerState(codecSelfer_containerMapKey1234) z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("expectedPods")) r.EncodeString(codecSelferC_UTF81234, string("currentHealthy"))
z.EncSendContainerState(codecSelfer_containerMapValue1234) z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym36 := z.EncBinary() yym36 := z.EncBinary()
_ = yym36 _ = yym36
if false { if false {
} else { } else {
r.EncodeInt(int64(x.ExpectedPods)) r.EncodeInt(int64(x.CurrentHealthy))
} }
} }
if yyr24 || yy2arr24 { if yyr24 || yy2arr24 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234) z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.DisruptedPods == nil {
r.EncodeNil()
} else {
yym38 := z.EncBinary() yym38 := z.EncBinary()
_ = yym38 _ = yym38
if false { if false {
} else { } else {
h.encMapstringunversioned_Time((map[string]pkg2_unversioned.Time)(x.DisruptedPods), e) r.EncodeInt(int64(x.DesiredHealthy))
}
} }
} else { } else {
z.EncSendContainerState(codecSelfer_containerMapKey1234) z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("disruptedPods")) r.EncodeString(codecSelferC_UTF81234, string("desiredHealthy"))
z.EncSendContainerState(codecSelfer_containerMapValue1234) z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.DisruptedPods == nil {
r.EncodeNil()
} else {
yym39 := z.EncBinary() yym39 := z.EncBinary()
_ = yym39 _ = yym39
if false { if false {
} else { } else {
h.encMapstringunversioned_Time((map[string]pkg2_unversioned.Time)(x.DisruptedPods), e) r.EncodeInt(int64(x.DesiredHealthy))
} }
} }
if yyr24 || yy2arr24 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym41 := z.EncBinary()
_ = yym41
if false {
} else {
r.EncodeInt(int64(x.ExpectedPods))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("expectedPods"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym42 := z.EncBinary()
_ = yym42
if false {
} else {
r.EncodeInt(int64(x.ExpectedPods))
}
} }
if yyr24 || yy2arr24 { if yyr24 || yy2arr24 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234) z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
...@@ -494,25 +520,25 @@ func (x *PodDisruptionBudgetStatus) CodecDecodeSelf(d *codec1978.Decoder) { ...@@ -494,25 +520,25 @@ func (x *PodDisruptionBudgetStatus) CodecDecodeSelf(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
yym40 := z.DecBinary() yym43 := z.DecBinary()
_ = yym40 _ = yym43
if false { if false {
} else if z.HasExtensions() && z.DecExt(x) { } else if z.HasExtensions() && z.DecExt(x) {
} else { } else {
yyct41 := r.ContainerType() yyct44 := r.ContainerType()
if yyct41 == codecSelferValueTypeMap1234 { if yyct44 == codecSelferValueTypeMap1234 {
yyl41 := r.ReadMapStart() yyl44 := r.ReadMapStart()
if yyl41 == 0 { if yyl44 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234) z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else { } else {
x.codecDecodeSelfFromMap(yyl41, d) x.codecDecodeSelfFromMap(yyl44, d)
} }
} else if yyct41 == codecSelferValueTypeArray1234 { } else if yyct44 == codecSelferValueTypeArray1234 {
yyl41 := r.ReadArrayStart() yyl44 := r.ReadArrayStart()
if yyl41 == 0 { if yyl44 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else { } else {
x.codecDecodeSelfFromArray(yyl41, d) x.codecDecodeSelfFromArray(yyl44, d)
} }
} else { } else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
...@@ -524,12 +550,12 @@ func (x *PodDisruptionBudgetStatus) codecDecodeSelfFromMap(l int, d *codec1978.D ...@@ -524,12 +550,12 @@ func (x *PodDisruptionBudgetStatus) codecDecodeSelfFromMap(l int, d *codec1978.D
var h codecSelfer1234 var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d) z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r _, _, _ = h, z, r
var yys42Slc = z.DecScratchBuffer() // default slice to decode into var yys45Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys42Slc _ = yys45Slc
var yyhl42 bool = l >= 0 var yyhl45 bool = l >= 0
for yyj42 := 0; ; yyj42++ { for yyj45 := 0; ; yyj45++ {
if yyhl42 { if yyhl45 {
if yyj42 >= l { if yyj45 >= l {
break break
} }
} else { } else {
...@@ -538,10 +564,28 @@ func (x *PodDisruptionBudgetStatus) codecDecodeSelfFromMap(l int, d *codec1978.D ...@@ -538,10 +564,28 @@ func (x *PodDisruptionBudgetStatus) codecDecodeSelfFromMap(l int, d *codec1978.D
} }
} }
z.DecSendContainerState(codecSelfer_containerMapKey1234) z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys42Slc = r.DecodeBytes(yys42Slc, true, true) yys45Slc = r.DecodeBytes(yys45Slc, true, true)
yys42 := string(yys42Slc) yys45 := string(yys45Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234) z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys42 { switch yys45 {
case "observedGeneration":
if r.TryDecodeAsNil() {
x.ObservedGeneration = 0
} else {
x.ObservedGeneration = int64(r.DecodeInt(64))
}
case "disruptedPods":
if r.TryDecodeAsNil() {
x.DisruptedPods = nil
} else {
yyv47 := &x.DisruptedPods
yym48 := z.DecBinary()
_ = yym48
if false {
} else {
h.decMapstringunversioned_Time((*map[string]pkg2_unversioned.Time)(yyv47), d)
}
}
case "disruptionsAllowed": case "disruptionsAllowed":
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.PodDisruptionsAllowed = 0 x.PodDisruptionsAllowed = 0
...@@ -566,22 +610,10 @@ func (x *PodDisruptionBudgetStatus) codecDecodeSelfFromMap(l int, d *codec1978.D ...@@ -566,22 +610,10 @@ func (x *PodDisruptionBudgetStatus) codecDecodeSelfFromMap(l int, d *codec1978.D
} else { } else {
x.ExpectedPods = int32(r.DecodeInt(32)) x.ExpectedPods = int32(r.DecodeInt(32))
} }
case "disruptedPods":
if r.TryDecodeAsNil() {
x.DisruptedPods = nil
} else {
yyv47 := &x.DisruptedPods
yym48 := z.DecBinary()
_ = yym48
if false {
} else {
h.decMapstringunversioned_Time((*map[string]pkg2_unversioned.Time)(yyv47), d)
}
}
default: default:
z.DecStructFieldNotFound(-1, yys42) z.DecStructFieldNotFound(-1, yys45)
} // end switch yys42 } // end switch yys45
} // end for yyj42 } // end for yyj45
z.DecSendContainerState(codecSelfer_containerMapEnd1234) z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} }
...@@ -589,107 +621,123 @@ func (x *PodDisruptionBudgetStatus) codecDecodeSelfFromArray(l int, d *codec1978 ...@@ -589,107 +621,123 @@ func (x *PodDisruptionBudgetStatus) codecDecodeSelfFromArray(l int, d *codec1978
var h codecSelfer1234 var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d) z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r _, _, _ = h, z, r
var yyj49 int var yyj53 int
var yyb49 bool var yyb53 bool
var yyhl49 bool = l >= 0 var yyhl53 bool = l >= 0
yyj49++ yyj53++
if yyhl49 { if yyhl53 {
yyb49 = yyj49 > l yyb53 = yyj53 > l
} else { } else {
yyb49 = r.CheckBreak() yyb53 = r.CheckBreak()
} }
if yyb49 { if yyb53 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.PodDisruptionsAllowed = 0 x.ObservedGeneration = 0
} else { } else {
x.PodDisruptionsAllowed = int32(r.DecodeInt(32)) x.ObservedGeneration = int64(r.DecodeInt(64))
} }
yyj49++ yyj53++
if yyhl49 { if yyhl53 {
yyb49 = yyj49 > l yyb53 = yyj53 > l
} else { } else {
yyb49 = r.CheckBreak() yyb53 = r.CheckBreak()
} }
if yyb49 { if yyb53 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.CurrentHealthy = 0 x.DisruptedPods = nil
} else { } else {
x.CurrentHealthy = int32(r.DecodeInt(32)) yyv55 := &x.DisruptedPods
yym56 := z.DecBinary()
_ = yym56
if false {
} else {
h.decMapstringunversioned_Time((*map[string]pkg2_unversioned.Time)(yyv55), d)
} }
yyj49++ }
if yyhl49 { yyj53++
yyb49 = yyj49 > l if yyhl53 {
yyb53 = yyj53 > l
} else { } else {
yyb49 = r.CheckBreak() yyb53 = r.CheckBreak()
} }
if yyb49 { if yyb53 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.DesiredHealthy = 0 x.PodDisruptionsAllowed = 0
} else { } else {
x.DesiredHealthy = int32(r.DecodeInt(32)) x.PodDisruptionsAllowed = int32(r.DecodeInt(32))
} }
yyj49++ yyj53++
if yyhl49 { if yyhl53 {
yyb49 = yyj49 > l yyb53 = yyj53 > l
} else { } else {
yyb49 = r.CheckBreak() yyb53 = r.CheckBreak()
} }
if yyb49 { if yyb53 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.ExpectedPods = 0 x.CurrentHealthy = 0
} else { } else {
x.ExpectedPods = int32(r.DecodeInt(32)) x.CurrentHealthy = int32(r.DecodeInt(32))
} }
yyj49++ yyj53++
if yyhl49 { if yyhl53 {
yyb49 = yyj49 > l yyb53 = yyj53 > l
} else { } else {
yyb49 = r.CheckBreak() yyb53 = r.CheckBreak()
} }
if yyb49 { if yyb53 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.DisruptedPods = nil x.DesiredHealthy = 0
} else { } else {
yyv54 := &x.DisruptedPods x.DesiredHealthy = int32(r.DecodeInt(32))
yym55 := z.DecBinary() }
_ = yym55 yyj53++
if false { if yyhl53 {
yyb53 = yyj53 > l
} else { } else {
h.decMapstringunversioned_Time((*map[string]pkg2_unversioned.Time)(yyv54), d) yyb53 = r.CheckBreak()
} }
if yyb53 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ExpectedPods = 0
} else {
x.ExpectedPods = int32(r.DecodeInt(32))
} }
for { for {
yyj49++ yyj53++
if yyhl49 { if yyhl53 {
yyb49 = yyj49 > l yyb53 = yyj53 > l
} else { } else {
yyb49 = r.CheckBreak() yyb53 = r.CheckBreak()
} }
if yyb49 { if yyb53 {
break break
} }
z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj49-1, "") z.DecStructFieldNotFound(yyj53-1, "")
} }
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} }
...@@ -701,39 +749,39 @@ func (x *PodDisruptionBudget) CodecEncodeSelf(e *codec1978.Encoder) { ...@@ -701,39 +749,39 @@ func (x *PodDisruptionBudget) CodecEncodeSelf(e *codec1978.Encoder) {
if x == nil { if x == nil {
r.EncodeNil() r.EncodeNil()
} else { } else {
yym56 := z.EncBinary() yym61 := z.EncBinary()
_ = yym56 _ = yym61
if false { if false {
} else if z.HasExtensions() && z.EncExt(x) { } else if z.HasExtensions() && z.EncExt(x) {
} else { } else {
yysep57 := !z.EncBinary() yysep62 := !z.EncBinary()
yy2arr57 := z.EncBasicHandle().StructToArray yy2arr62 := z.EncBasicHandle().StructToArray
var yyq57 [5]bool var yyq62 [5]bool
_, _, _ = yysep57, yyq57, yy2arr57 _, _, _ = yysep62, yyq62, yy2arr62
const yyr57 bool = false const yyr62 bool = false
yyq57[0] = x.Kind != "" yyq62[0] = x.Kind != ""
yyq57[1] = x.APIVersion != "" yyq62[1] = x.APIVersion != ""
yyq57[2] = true yyq62[2] = true
yyq57[3] = true yyq62[3] = true
yyq57[4] = true yyq62[4] = true
var yynn57 int var yynn62 int
if yyr57 || yy2arr57 { if yyr62 || yy2arr62 {
r.EncodeArrayStart(5) r.EncodeArrayStart(5)
} else { } else {
yynn57 = 0 yynn62 = 0
for _, b := range yyq57 { for _, b := range yyq62 {
if b { if b {
yynn57++ yynn62++
} }
} }
r.EncodeMapStart(yynn57) r.EncodeMapStart(yynn62)
yynn57 = 0 yynn62 = 0
} }
if yyr57 || yy2arr57 { if yyr62 || yy2arr62 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234) z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq57[0] { if yyq62[0] {
yym59 := z.EncBinary() yym64 := z.EncBinary()
_ = yym59 _ = yym64
if false { if false {
} else { } else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
...@@ -742,23 +790,23 @@ func (x *PodDisruptionBudget) CodecEncodeSelf(e *codec1978.Encoder) { ...@@ -742,23 +790,23 @@ func (x *PodDisruptionBudget) CodecEncodeSelf(e *codec1978.Encoder) {
r.EncodeString(codecSelferC_UTF81234, "") r.EncodeString(codecSelferC_UTF81234, "")
} }
} else { } else {
if yyq57[0] { if yyq62[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234) z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind")) r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234) z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym60 := z.EncBinary() yym65 := z.EncBinary()
_ = yym60 _ = yym65
if false { if false {
} else { } else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
} }
} }
} }
if yyr57 || yy2arr57 { if yyr62 || yy2arr62 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234) z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq57[1] { if yyq62[1] {
yym62 := z.EncBinary() yym67 := z.EncBinary()
_ = yym62 _ = yym67
if false { if false {
} else { } else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
...@@ -767,70 +815,70 @@ func (x *PodDisruptionBudget) CodecEncodeSelf(e *codec1978.Encoder) { ...@@ -767,70 +815,70 @@ func (x *PodDisruptionBudget) CodecEncodeSelf(e *codec1978.Encoder) {
r.EncodeString(codecSelferC_UTF81234, "") r.EncodeString(codecSelferC_UTF81234, "")
} }
} else { } else {
if yyq57[1] { if yyq62[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234) z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234) z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym63 := z.EncBinary() yym68 := z.EncBinary()
_ = yym63 _ = yym68
if false { if false {
} else { } else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
} }
} }
} }
if yyr57 || yy2arr57 { if yyr62 || yy2arr62 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234) z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq57[2] { if yyq62[2] {
yy65 := &x.ObjectMeta yy70 := &x.ObjectMeta
yy65.CodecEncodeSelf(e) yy70.CodecEncodeSelf(e)
} else { } else {
r.EncodeNil() r.EncodeNil()
} }
} else { } else {
if yyq57[2] { if yyq62[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234) z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata")) r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234) z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy66 := &x.ObjectMeta yy71 := &x.ObjectMeta
yy66.CodecEncodeSelf(e) yy71.CodecEncodeSelf(e)
} }
} }
if yyr57 || yy2arr57 { if yyr62 || yy2arr62 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234) z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq57[3] { if yyq62[3] {
yy68 := &x.Spec yy73 := &x.Spec
yy68.CodecEncodeSelf(e) yy73.CodecEncodeSelf(e)
} else { } else {
r.EncodeNil() r.EncodeNil()
} }
} else { } else {
if yyq57[3] { if yyq62[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234) z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("spec")) r.EncodeString(codecSelferC_UTF81234, string("spec"))
z.EncSendContainerState(codecSelfer_containerMapValue1234) z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy69 := &x.Spec yy74 := &x.Spec
yy69.CodecEncodeSelf(e) yy74.CodecEncodeSelf(e)
} }
} }
if yyr57 || yy2arr57 { if yyr62 || yy2arr62 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234) z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq57[4] { if yyq62[4] {
yy71 := &x.Status yy76 := &x.Status
yy71.CodecEncodeSelf(e) yy76.CodecEncodeSelf(e)
} else { } else {
r.EncodeNil() r.EncodeNil()
} }
} else { } else {
if yyq57[4] { if yyq62[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234) z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("status")) r.EncodeString(codecSelferC_UTF81234, string("status"))
z.EncSendContainerState(codecSelfer_containerMapValue1234) z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy72 := &x.Status yy77 := &x.Status
yy72.CodecEncodeSelf(e) yy77.CodecEncodeSelf(e)
} }
} }
if yyr57 || yy2arr57 { if yyr62 || yy2arr62 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234) z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else { } else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234) z.EncSendContainerState(codecSelfer_containerMapEnd1234)
...@@ -843,25 +891,25 @@ func (x *PodDisruptionBudget) CodecDecodeSelf(d *codec1978.Decoder) { ...@@ -843,25 +891,25 @@ func (x *PodDisruptionBudget) CodecDecodeSelf(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
yym73 := z.DecBinary() yym78 := z.DecBinary()
_ = yym73 _ = yym78
if false { if false {
} else if z.HasExtensions() && z.DecExt(x) { } else if z.HasExtensions() && z.DecExt(x) {
} else { } else {
yyct74 := r.ContainerType() yyct79 := r.ContainerType()
if yyct74 == codecSelferValueTypeMap1234 { if yyct79 == codecSelferValueTypeMap1234 {
yyl74 := r.ReadMapStart() yyl79 := r.ReadMapStart()
if yyl74 == 0 { if yyl79 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234) z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else { } else {
x.codecDecodeSelfFromMap(yyl74, d) x.codecDecodeSelfFromMap(yyl79, d)
} }
} else if yyct74 == codecSelferValueTypeArray1234 { } else if yyct79 == codecSelferValueTypeArray1234 {
yyl74 := r.ReadArrayStart() yyl79 := r.ReadArrayStart()
if yyl74 == 0 { if yyl79 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else { } else {
x.codecDecodeSelfFromArray(yyl74, d) x.codecDecodeSelfFromArray(yyl79, d)
} }
} else { } else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
...@@ -873,12 +921,12 @@ func (x *PodDisruptionBudget) codecDecodeSelfFromMap(l int, d *codec1978.Decoder ...@@ -873,12 +921,12 @@ func (x *PodDisruptionBudget) codecDecodeSelfFromMap(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 yys75Slc = z.DecScratchBuffer() // default slice to decode into var yys80Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys75Slc _ = yys80Slc
var yyhl75 bool = l >= 0 var yyhl80 bool = l >= 0
for yyj75 := 0; ; yyj75++ { for yyj80 := 0; ; yyj80++ {
if yyhl75 { if yyhl80 {
if yyj75 >= l { if yyj80 >= l {
break break
} }
} else { } else {
...@@ -887,10 +935,10 @@ func (x *PodDisruptionBudget) codecDecodeSelfFromMap(l int, d *codec1978.Decoder ...@@ -887,10 +935,10 @@ func (x *PodDisruptionBudget) codecDecodeSelfFromMap(l int, d *codec1978.Decoder
} }
} }
z.DecSendContainerState(codecSelfer_containerMapKey1234) z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys75Slc = r.DecodeBytes(yys75Slc, true, true) yys80Slc = r.DecodeBytes(yys80Slc, true, true)
yys75 := string(yys75Slc) yys80 := string(yys80Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234) z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys75 { switch yys80 {
case "kind": case "kind":
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.Kind = "" x.Kind = ""
...@@ -907,27 +955,27 @@ func (x *PodDisruptionBudget) codecDecodeSelfFromMap(l int, d *codec1978.Decoder ...@@ -907,27 +955,27 @@ func (x *PodDisruptionBudget) codecDecodeSelfFromMap(l int, d *codec1978.Decoder
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.ObjectMeta = pkg3_api.ObjectMeta{} x.ObjectMeta = pkg3_api.ObjectMeta{}
} else { } else {
yyv78 := &x.ObjectMeta yyv83 := &x.ObjectMeta
yyv78.CodecDecodeSelf(d) yyv83.CodecDecodeSelf(d)
} }
case "spec": case "spec":
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.Spec = PodDisruptionBudgetSpec{} x.Spec = PodDisruptionBudgetSpec{}
} else { } else {
yyv79 := &x.Spec yyv84 := &x.Spec
yyv79.CodecDecodeSelf(d) yyv84.CodecDecodeSelf(d)
} }
case "status": case "status":
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.Status = PodDisruptionBudgetStatus{} x.Status = PodDisruptionBudgetStatus{}
} else { } else {
yyv80 := &x.Status yyv85 := &x.Status
yyv80.CodecDecodeSelf(d) yyv85.CodecDecodeSelf(d)
} }
default: default:
z.DecStructFieldNotFound(-1, yys75) z.DecStructFieldNotFound(-1, yys80)
} // end switch yys75 } // end switch yys80
} // end for yyj75 } // end for yyj80
z.DecSendContainerState(codecSelfer_containerMapEnd1234) z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} }
...@@ -935,16 +983,16 @@ func (x *PodDisruptionBudget) codecDecodeSelfFromArray(l int, d *codec1978.Decod ...@@ -935,16 +983,16 @@ func (x *PodDisruptionBudget) codecDecodeSelfFromArray(l int, d *codec1978.Decod
var h codecSelfer1234 var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d) z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r _, _, _ = h, z, r
var yyj81 int var yyj86 int
var yyb81 bool var yyb86 bool
var yyhl81 bool = l >= 0 var yyhl86 bool = l >= 0
yyj81++ yyj86++
if yyhl81 { if yyhl86 {
yyb81 = yyj81 > l yyb86 = yyj86 > l
} else { } else {
yyb81 = r.CheckBreak() yyb86 = r.CheckBreak()
} }
if yyb81 { if yyb86 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
...@@ -954,13 +1002,13 @@ func (x *PodDisruptionBudget) codecDecodeSelfFromArray(l int, d *codec1978.Decod ...@@ -954,13 +1002,13 @@ func (x *PodDisruptionBudget) codecDecodeSelfFromArray(l int, d *codec1978.Decod
} else { } else {
x.Kind = string(r.DecodeString()) x.Kind = string(r.DecodeString())
} }
yyj81++ yyj86++
if yyhl81 { if yyhl86 {
yyb81 = yyj81 > l yyb86 = yyj86 > l
} else { } else {
yyb81 = r.CheckBreak() yyb86 = r.CheckBreak()
} }
if yyb81 { if yyb86 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
...@@ -970,13 +1018,13 @@ func (x *PodDisruptionBudget) codecDecodeSelfFromArray(l int, d *codec1978.Decod ...@@ -970,13 +1018,13 @@ func (x *PodDisruptionBudget) codecDecodeSelfFromArray(l int, d *codec1978.Decod
} else { } else {
x.APIVersion = string(r.DecodeString()) x.APIVersion = string(r.DecodeString())
} }
yyj81++ yyj86++
if yyhl81 { if yyhl86 {
yyb81 = yyj81 > l yyb86 = yyj86 > l
} else { } else {
yyb81 = r.CheckBreak() yyb86 = r.CheckBreak()
} }
if yyb81 { if yyb86 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
...@@ -984,16 +1032,16 @@ func (x *PodDisruptionBudget) codecDecodeSelfFromArray(l int, d *codec1978.Decod ...@@ -984,16 +1032,16 @@ func (x *PodDisruptionBudget) codecDecodeSelfFromArray(l int, d *codec1978.Decod
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.ObjectMeta = pkg3_api.ObjectMeta{} x.ObjectMeta = pkg3_api.ObjectMeta{}
} else { } else {
yyv84 := &x.ObjectMeta yyv89 := &x.ObjectMeta
yyv84.CodecDecodeSelf(d) yyv89.CodecDecodeSelf(d)
} }
yyj81++ yyj86++
if yyhl81 { if yyhl86 {
yyb81 = yyj81 > l yyb86 = yyj86 > l
} else { } else {
yyb81 = r.CheckBreak() yyb86 = r.CheckBreak()
} }
if yyb81 { if yyb86 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
...@@ -1001,16 +1049,16 @@ func (x *PodDisruptionBudget) codecDecodeSelfFromArray(l int, d *codec1978.Decod ...@@ -1001,16 +1049,16 @@ func (x *PodDisruptionBudget) codecDecodeSelfFromArray(l int, d *codec1978.Decod
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.Spec = PodDisruptionBudgetSpec{} x.Spec = PodDisruptionBudgetSpec{}
} else { } else {
yyv85 := &x.Spec yyv90 := &x.Spec
yyv85.CodecDecodeSelf(d) yyv90.CodecDecodeSelf(d)
} }
yyj81++ yyj86++
if yyhl81 { if yyhl86 {
yyb81 = yyj81 > l yyb86 = yyj86 > l
} else { } else {
yyb81 = r.CheckBreak() yyb86 = r.CheckBreak()
} }
if yyb81 { if yyb86 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
...@@ -1018,21 +1066,21 @@ func (x *PodDisruptionBudget) codecDecodeSelfFromArray(l int, d *codec1978.Decod ...@@ -1018,21 +1066,21 @@ func (x *PodDisruptionBudget) codecDecodeSelfFromArray(l int, d *codec1978.Decod
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.Status = PodDisruptionBudgetStatus{} x.Status = PodDisruptionBudgetStatus{}
} else { } else {
yyv86 := &x.Status yyv91 := &x.Status
yyv86.CodecDecodeSelf(d) yyv91.CodecDecodeSelf(d)
} }
for { for {
yyj81++ yyj86++
if yyhl81 { if yyhl86 {
yyb81 = yyj81 > l yyb86 = yyj86 > l
} else { } else {
yyb81 = r.CheckBreak() yyb86 = r.CheckBreak()
} }
if yyb81 { if yyb86 {
break break
} }
z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj81-1, "") z.DecStructFieldNotFound(yyj86-1, "")
} }
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} }
...@@ -1044,37 +1092,37 @@ func (x *PodDisruptionBudgetList) CodecEncodeSelf(e *codec1978.Encoder) { ...@@ -1044,37 +1092,37 @@ func (x *PodDisruptionBudgetList) CodecEncodeSelf(e *codec1978.Encoder) {
if x == nil { if x == nil {
r.EncodeNil() r.EncodeNil()
} else { } else {
yym87 := z.EncBinary() yym92 := z.EncBinary()
_ = yym87 _ = yym92
if false { if false {
} else if z.HasExtensions() && z.EncExt(x) { } else if z.HasExtensions() && z.EncExt(x) {
} else { } else {
yysep88 := !z.EncBinary() yysep93 := !z.EncBinary()
yy2arr88 := z.EncBasicHandle().StructToArray yy2arr93 := z.EncBasicHandle().StructToArray
var yyq88 [4]bool var yyq93 [4]bool
_, _, _ = yysep88, yyq88, yy2arr88 _, _, _ = yysep93, yyq93, yy2arr93
const yyr88 bool = false const yyr93 bool = false
yyq88[0] = x.Kind != "" yyq93[0] = x.Kind != ""
yyq88[1] = x.APIVersion != "" yyq93[1] = x.APIVersion != ""
yyq88[2] = true yyq93[2] = true
var yynn88 int var yynn93 int
if yyr88 || yy2arr88 { if yyr93 || yy2arr93 {
r.EncodeArrayStart(4) r.EncodeArrayStart(4)
} else { } else {
yynn88 = 1 yynn93 = 1
for _, b := range yyq88 { for _, b := range yyq93 {
if b { if b {
yynn88++ yynn93++
} }
} }
r.EncodeMapStart(yynn88) r.EncodeMapStart(yynn93)
yynn88 = 0 yynn93 = 0
} }
if yyr88 || yy2arr88 { if yyr93 || yy2arr93 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234) z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq88[0] { if yyq93[0] {
yym90 := z.EncBinary() yym95 := z.EncBinary()
_ = yym90 _ = yym95
if false { if false {
} else { } else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
...@@ -1083,23 +1131,23 @@ func (x *PodDisruptionBudgetList) CodecEncodeSelf(e *codec1978.Encoder) { ...@@ -1083,23 +1131,23 @@ func (x *PodDisruptionBudgetList) CodecEncodeSelf(e *codec1978.Encoder) {
r.EncodeString(codecSelferC_UTF81234, "") r.EncodeString(codecSelferC_UTF81234, "")
} }
} else { } else {
if yyq88[0] { if yyq93[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234) z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind")) r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234) z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym91 := z.EncBinary() yym96 := z.EncBinary()
_ = yym91 _ = yym96
if false { if false {
} else { } else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
} }
} }
} }
if yyr88 || yy2arr88 { if yyr93 || yy2arr93 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234) z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq88[1] { if yyq93[1] {
yym93 := z.EncBinary() yym98 := z.EncBinary()
_ = yym93 _ = yym98
if false { if false {
} else { } else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
...@@ -1108,54 +1156,54 @@ func (x *PodDisruptionBudgetList) CodecEncodeSelf(e *codec1978.Encoder) { ...@@ -1108,54 +1156,54 @@ func (x *PodDisruptionBudgetList) CodecEncodeSelf(e *codec1978.Encoder) {
r.EncodeString(codecSelferC_UTF81234, "") r.EncodeString(codecSelferC_UTF81234, "")
} }
} else { } else {
if yyq88[1] { if yyq93[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234) z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234) z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym94 := z.EncBinary() yym99 := z.EncBinary()
_ = yym94 _ = yym99
if false { if false {
} else { } else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
} }
} }
} }
if yyr88 || yy2arr88 { if yyr93 || yy2arr93 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234) z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq88[2] { if yyq93[2] {
yy96 := &x.ListMeta yy101 := &x.ListMeta
yym97 := z.EncBinary() yym102 := z.EncBinary()
_ = yym97 _ = yym102
if false { if false {
} else if z.HasExtensions() && z.EncExt(yy96) { } else if z.HasExtensions() && z.EncExt(yy101) {
} else { } else {
z.EncFallback(yy96) z.EncFallback(yy101)
} }
} else { } else {
r.EncodeNil() r.EncodeNil()
} }
} else { } else {
if yyq88[2] { if yyq93[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234) z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata")) r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234) z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy98 := &x.ListMeta yy103 := &x.ListMeta
yym99 := z.EncBinary() yym104 := z.EncBinary()
_ = yym99 _ = yym104
if false { if false {
} else if z.HasExtensions() && z.EncExt(yy98) { } else if z.HasExtensions() && z.EncExt(yy103) {
} else { } else {
z.EncFallback(yy98) z.EncFallback(yy103)
} }
} }
} }
if yyr88 || yy2arr88 { if yyr93 || yy2arr93 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234) z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil { if x.Items == nil {
r.EncodeNil() r.EncodeNil()
} else { } else {
yym101 := z.EncBinary() yym106 := z.EncBinary()
_ = yym101 _ = yym106
if false { if false {
} else { } else {
h.encSlicePodDisruptionBudget(([]PodDisruptionBudget)(x.Items), e) h.encSlicePodDisruptionBudget(([]PodDisruptionBudget)(x.Items), e)
...@@ -1168,15 +1216,15 @@ func (x *PodDisruptionBudgetList) CodecEncodeSelf(e *codec1978.Encoder) { ...@@ -1168,15 +1216,15 @@ func (x *PodDisruptionBudgetList) CodecEncodeSelf(e *codec1978.Encoder) {
if x.Items == nil { if x.Items == nil {
r.EncodeNil() r.EncodeNil()
} else { } else {
yym102 := z.EncBinary() yym107 := z.EncBinary()
_ = yym102 _ = yym107
if false { if false {
} else { } else {
h.encSlicePodDisruptionBudget(([]PodDisruptionBudget)(x.Items), e) h.encSlicePodDisruptionBudget(([]PodDisruptionBudget)(x.Items), e)
} }
} }
} }
if yyr88 || yy2arr88 { if yyr93 || yy2arr93 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234) z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else { } else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234) z.EncSendContainerState(codecSelfer_containerMapEnd1234)
...@@ -1189,25 +1237,25 @@ func (x *PodDisruptionBudgetList) CodecDecodeSelf(d *codec1978.Decoder) { ...@@ -1189,25 +1237,25 @@ func (x *PodDisruptionBudgetList) CodecDecodeSelf(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
yym103 := z.DecBinary() yym108 := z.DecBinary()
_ = yym103 _ = yym108
if false { if false {
} else if z.HasExtensions() && z.DecExt(x) { } else if z.HasExtensions() && z.DecExt(x) {
} else { } else {
yyct104 := r.ContainerType() yyct109 := r.ContainerType()
if yyct104 == codecSelferValueTypeMap1234 { if yyct109 == codecSelferValueTypeMap1234 {
yyl104 := r.ReadMapStart() yyl109 := r.ReadMapStart()
if yyl104 == 0 { if yyl109 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234) z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else { } else {
x.codecDecodeSelfFromMap(yyl104, d) x.codecDecodeSelfFromMap(yyl109, d)
} }
} else if yyct104 == codecSelferValueTypeArray1234 { } else if yyct109 == codecSelferValueTypeArray1234 {
yyl104 := r.ReadArrayStart() yyl109 := r.ReadArrayStart()
if yyl104 == 0 { if yyl109 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else { } else {
x.codecDecodeSelfFromArray(yyl104, d) x.codecDecodeSelfFromArray(yyl109, d)
} }
} else { } else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
...@@ -1219,12 +1267,12 @@ func (x *PodDisruptionBudgetList) codecDecodeSelfFromMap(l int, d *codec1978.Dec ...@@ -1219,12 +1267,12 @@ func (x *PodDisruptionBudgetList) codecDecodeSelfFromMap(l int, d *codec1978.Dec
var h codecSelfer1234 var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d) z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r _, _, _ = h, z, r
var yys105Slc = z.DecScratchBuffer() // default slice to decode into var yys110Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys105Slc _ = yys110Slc
var yyhl105 bool = l >= 0 var yyhl110 bool = l >= 0
for yyj105 := 0; ; yyj105++ { for yyj110 := 0; ; yyj110++ {
if yyhl105 { if yyhl110 {
if yyj105 >= l { if yyj110 >= l {
break break
} }
} else { } else {
...@@ -1233,10 +1281,10 @@ func (x *PodDisruptionBudgetList) codecDecodeSelfFromMap(l int, d *codec1978.Dec ...@@ -1233,10 +1281,10 @@ func (x *PodDisruptionBudgetList) codecDecodeSelfFromMap(l int, d *codec1978.Dec
} }
} }
z.DecSendContainerState(codecSelfer_containerMapKey1234) z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys105Slc = r.DecodeBytes(yys105Slc, true, true) yys110Slc = r.DecodeBytes(yys110Slc, true, true)
yys105 := string(yys105Slc) yys110 := string(yys110Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234) z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys105 { switch yys110 {
case "kind": case "kind":
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.Kind = "" x.Kind = ""
...@@ -1253,31 +1301,31 @@ func (x *PodDisruptionBudgetList) codecDecodeSelfFromMap(l int, d *codec1978.Dec ...@@ -1253,31 +1301,31 @@ func (x *PodDisruptionBudgetList) codecDecodeSelfFromMap(l int, d *codec1978.Dec
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{} x.ListMeta = pkg2_unversioned.ListMeta{}
} else { } else {
yyv108 := &x.ListMeta yyv113 := &x.ListMeta
yym109 := z.DecBinary() yym114 := z.DecBinary()
_ = yym109 _ = yym114
if false { if false {
} else if z.HasExtensions() && z.DecExt(yyv108) { } else if z.HasExtensions() && z.DecExt(yyv113) {
} else { } else {
z.DecFallback(yyv108, false) z.DecFallback(yyv113, false)
} }
} }
case "items": case "items":
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.Items = nil x.Items = nil
} else { } else {
yyv110 := &x.Items yyv115 := &x.Items
yym111 := z.DecBinary() yym116 := z.DecBinary()
_ = yym111 _ = yym116
if false { if false {
} else { } else {
h.decSlicePodDisruptionBudget((*[]PodDisruptionBudget)(yyv110), d) h.decSlicePodDisruptionBudget((*[]PodDisruptionBudget)(yyv115), d)
} }
} }
default: default:
z.DecStructFieldNotFound(-1, yys105) z.DecStructFieldNotFound(-1, yys110)
} // end switch yys105 } // end switch yys110
} // end for yyj105 } // end for yyj110
z.DecSendContainerState(codecSelfer_containerMapEnd1234) z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} }
...@@ -1285,16 +1333,16 @@ func (x *PodDisruptionBudgetList) codecDecodeSelfFromArray(l int, d *codec1978.D ...@@ -1285,16 +1333,16 @@ func (x *PodDisruptionBudgetList) codecDecodeSelfFromArray(l int, d *codec1978.D
var h codecSelfer1234 var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d) z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r _, _, _ = h, z, r
var yyj112 int var yyj117 int
var yyb112 bool var yyb117 bool
var yyhl112 bool = l >= 0 var yyhl117 bool = l >= 0
yyj112++ yyj117++
if yyhl112 { if yyhl117 {
yyb112 = yyj112 > l yyb117 = yyj117 > l
} else { } else {
yyb112 = r.CheckBreak() yyb117 = r.CheckBreak()
} }
if yyb112 { if yyb117 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
...@@ -1304,13 +1352,13 @@ func (x *PodDisruptionBudgetList) codecDecodeSelfFromArray(l int, d *codec1978.D ...@@ -1304,13 +1352,13 @@ func (x *PodDisruptionBudgetList) codecDecodeSelfFromArray(l int, d *codec1978.D
} else { } else {
x.Kind = string(r.DecodeString()) x.Kind = string(r.DecodeString())
} }
yyj112++ yyj117++
if yyhl112 { if yyhl117 {
yyb112 = yyj112 > l yyb117 = yyj117 > l
} else { } else {
yyb112 = r.CheckBreak() yyb117 = r.CheckBreak()
} }
if yyb112 { if yyb117 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
...@@ -1320,13 +1368,13 @@ func (x *PodDisruptionBudgetList) codecDecodeSelfFromArray(l int, d *codec1978.D ...@@ -1320,13 +1368,13 @@ func (x *PodDisruptionBudgetList) codecDecodeSelfFromArray(l int, d *codec1978.D
} else { } else {
x.APIVersion = string(r.DecodeString()) x.APIVersion = string(r.DecodeString())
} }
yyj112++ yyj117++
if yyhl112 { if yyhl117 {
yyb112 = yyj112 > l yyb117 = yyj117 > l
} else { } else {
yyb112 = r.CheckBreak() yyb117 = r.CheckBreak()
} }
if yyb112 { if yyb117 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
...@@ -1334,22 +1382,22 @@ func (x *PodDisruptionBudgetList) codecDecodeSelfFromArray(l int, d *codec1978.D ...@@ -1334,22 +1382,22 @@ func (x *PodDisruptionBudgetList) codecDecodeSelfFromArray(l int, d *codec1978.D
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{} x.ListMeta = pkg2_unversioned.ListMeta{}
} else { } else {
yyv115 := &x.ListMeta yyv120 := &x.ListMeta
yym116 := z.DecBinary() yym121 := z.DecBinary()
_ = yym116 _ = yym121
if false { if false {
} else if z.HasExtensions() && z.DecExt(yyv115) { } else if z.HasExtensions() && z.DecExt(yyv120) {
} else { } else {
z.DecFallback(yyv115, false) z.DecFallback(yyv120, false)
} }
} }
yyj112++ yyj117++
if yyhl112 { if yyhl117 {
yyb112 = yyj112 > l yyb117 = yyj117 > l
} else { } else {
yyb112 = r.CheckBreak() yyb117 = r.CheckBreak()
} }
if yyb112 { if yyb117 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
...@@ -1357,26 +1405,26 @@ func (x *PodDisruptionBudgetList) codecDecodeSelfFromArray(l int, d *codec1978.D ...@@ -1357,26 +1405,26 @@ func (x *PodDisruptionBudgetList) codecDecodeSelfFromArray(l int, d *codec1978.D
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.Items = nil x.Items = nil
} else { } else {
yyv117 := &x.Items yyv122 := &x.Items
yym118 := z.DecBinary() yym123 := z.DecBinary()
_ = yym118 _ = yym123
if false { if false {
} else { } else {
h.decSlicePodDisruptionBudget((*[]PodDisruptionBudget)(yyv117), d) h.decSlicePodDisruptionBudget((*[]PodDisruptionBudget)(yyv122), d)
} }
} }
for { for {
yyj112++ yyj117++
if yyhl112 { if yyhl117 {
yyb112 = yyj112 > l yyb117 = yyj117 > l
} else { } else {
yyb112 = r.CheckBreak() yyb117 = r.CheckBreak()
} }
if yyb112 { if yyb117 {
break break
} }
z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj112-1, "") z.DecStructFieldNotFound(yyj117-1, "")
} }
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} }
...@@ -1388,38 +1436,38 @@ func (x *Eviction) CodecEncodeSelf(e *codec1978.Encoder) { ...@@ -1388,38 +1436,38 @@ func (x *Eviction) CodecEncodeSelf(e *codec1978.Encoder) {
if x == nil { if x == nil {
r.EncodeNil() r.EncodeNil()
} else { } else {
yym119 := z.EncBinary() yym124 := z.EncBinary()
_ = yym119 _ = yym124
if false { if false {
} else if z.HasExtensions() && z.EncExt(x) { } else if z.HasExtensions() && z.EncExt(x) {
} else { } else {
yysep120 := !z.EncBinary() yysep125 := !z.EncBinary()
yy2arr120 := z.EncBasicHandle().StructToArray yy2arr125 := z.EncBasicHandle().StructToArray
var yyq120 [4]bool var yyq125 [4]bool
_, _, _ = yysep120, yyq120, yy2arr120 _, _, _ = yysep125, yyq125, yy2arr125
const yyr120 bool = false const yyr125 bool = false
yyq120[0] = x.Kind != "" yyq125[0] = x.Kind != ""
yyq120[1] = x.APIVersion != "" yyq125[1] = x.APIVersion != ""
yyq120[2] = true yyq125[2] = true
yyq120[3] = x.DeleteOptions != nil yyq125[3] = x.DeleteOptions != nil
var yynn120 int var yynn125 int
if yyr120 || yy2arr120 { if yyr125 || yy2arr125 {
r.EncodeArrayStart(4) r.EncodeArrayStart(4)
} else { } else {
yynn120 = 0 yynn125 = 0
for _, b := range yyq120 { for _, b := range yyq125 {
if b { if b {
yynn120++ yynn125++
} }
} }
r.EncodeMapStart(yynn120) r.EncodeMapStart(yynn125)
yynn120 = 0 yynn125 = 0
} }
if yyr120 || yy2arr120 { if yyr125 || yy2arr125 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234) z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq120[0] { if yyq125[0] {
yym122 := z.EncBinary() yym127 := z.EncBinary()
_ = yym122 _ = yym127
if false { if false {
} else { } else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
...@@ -1428,23 +1476,23 @@ func (x *Eviction) CodecEncodeSelf(e *codec1978.Encoder) { ...@@ -1428,23 +1476,23 @@ func (x *Eviction) CodecEncodeSelf(e *codec1978.Encoder) {
r.EncodeString(codecSelferC_UTF81234, "") r.EncodeString(codecSelferC_UTF81234, "")
} }
} else { } else {
if yyq120[0] { if yyq125[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234) z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind")) r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234) z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym123 := z.EncBinary() yym128 := z.EncBinary()
_ = yym123 _ = yym128
if false { if false {
} else { } else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
} }
} }
} }
if yyr120 || yy2arr120 { if yyr125 || yy2arr125 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234) z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq120[1] { if yyq125[1] {
yym125 := z.EncBinary() yym130 := z.EncBinary()
_ = yym125 _ = yym130
if false { if false {
} else { } else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
...@@ -1453,38 +1501,38 @@ func (x *Eviction) CodecEncodeSelf(e *codec1978.Encoder) { ...@@ -1453,38 +1501,38 @@ func (x *Eviction) CodecEncodeSelf(e *codec1978.Encoder) {
r.EncodeString(codecSelferC_UTF81234, "") r.EncodeString(codecSelferC_UTF81234, "")
} }
} else { } else {
if yyq120[1] { if yyq125[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234) z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234) z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym126 := z.EncBinary() yym131 := z.EncBinary()
_ = yym126 _ = yym131
if false { if false {
} else { } else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
} }
} }
} }
if yyr120 || yy2arr120 { if yyr125 || yy2arr125 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234) z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq120[2] { if yyq125[2] {
yy128 := &x.ObjectMeta yy133 := &x.ObjectMeta
yy128.CodecEncodeSelf(e) yy133.CodecEncodeSelf(e)
} else { } else {
r.EncodeNil() r.EncodeNil()
} }
} else { } else {
if yyq120[2] { if yyq125[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234) z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata")) r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234) z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy129 := &x.ObjectMeta yy134 := &x.ObjectMeta
yy129.CodecEncodeSelf(e) yy134.CodecEncodeSelf(e)
} }
} }
if yyr120 || yy2arr120 { if yyr125 || yy2arr125 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234) z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq120[3] { if yyq125[3] {
if x.DeleteOptions == nil { if x.DeleteOptions == nil {
r.EncodeNil() r.EncodeNil()
} else { } else {
...@@ -1494,7 +1542,7 @@ func (x *Eviction) CodecEncodeSelf(e *codec1978.Encoder) { ...@@ -1494,7 +1542,7 @@ func (x *Eviction) CodecEncodeSelf(e *codec1978.Encoder) {
r.EncodeNil() r.EncodeNil()
} }
} else { } else {
if yyq120[3] { if yyq125[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234) z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("deleteOptions")) r.EncodeString(codecSelferC_UTF81234, string("deleteOptions"))
z.EncSendContainerState(codecSelfer_containerMapValue1234) z.EncSendContainerState(codecSelfer_containerMapValue1234)
...@@ -1505,7 +1553,7 @@ func (x *Eviction) CodecEncodeSelf(e *codec1978.Encoder) { ...@@ -1505,7 +1553,7 @@ func (x *Eviction) CodecEncodeSelf(e *codec1978.Encoder) {
} }
} }
} }
if yyr120 || yy2arr120 { if yyr125 || yy2arr125 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234) z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else { } else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234) z.EncSendContainerState(codecSelfer_containerMapEnd1234)
...@@ -1518,25 +1566,25 @@ func (x *Eviction) CodecDecodeSelf(d *codec1978.Decoder) { ...@@ -1518,25 +1566,25 @@ func (x *Eviction) CodecDecodeSelf(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
yym131 := z.DecBinary() yym136 := z.DecBinary()
_ = yym131 _ = yym136
if false { if false {
} else if z.HasExtensions() && z.DecExt(x) { } else if z.HasExtensions() && z.DecExt(x) {
} else { } else {
yyct132 := r.ContainerType() yyct137 := r.ContainerType()
if yyct132 == codecSelferValueTypeMap1234 { if yyct137 == codecSelferValueTypeMap1234 {
yyl132 := r.ReadMapStart() yyl137 := r.ReadMapStart()
if yyl132 == 0 { if yyl137 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234) z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else { } else {
x.codecDecodeSelfFromMap(yyl132, d) x.codecDecodeSelfFromMap(yyl137, d)
} }
} else if yyct132 == codecSelferValueTypeArray1234 { } else if yyct137 == codecSelferValueTypeArray1234 {
yyl132 := r.ReadArrayStart() yyl137 := r.ReadArrayStart()
if yyl132 == 0 { if yyl137 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else { } else {
x.codecDecodeSelfFromArray(yyl132, d) x.codecDecodeSelfFromArray(yyl137, d)
} }
} else { } else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
...@@ -1548,12 +1596,12 @@ func (x *Eviction) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { ...@@ -1548,12 +1596,12 @@ func (x *Eviction) codecDecodeSelfFromMap(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 yys133Slc = z.DecScratchBuffer() // default slice to decode into var yys138Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys133Slc _ = yys138Slc
var yyhl133 bool = l >= 0 var yyhl138 bool = l >= 0
for yyj133 := 0; ; yyj133++ { for yyj138 := 0; ; yyj138++ {
if yyhl133 { if yyhl138 {
if yyj133 >= l { if yyj138 >= l {
break break
} }
} else { } else {
...@@ -1562,10 +1610,10 @@ func (x *Eviction) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { ...@@ -1562,10 +1610,10 @@ func (x *Eviction) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
} }
} }
z.DecSendContainerState(codecSelfer_containerMapKey1234) z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys133Slc = r.DecodeBytes(yys133Slc, true, true) yys138Slc = r.DecodeBytes(yys138Slc, true, true)
yys133 := string(yys133Slc) yys138 := string(yys138Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234) z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys133 { switch yys138 {
case "kind": case "kind":
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.Kind = "" x.Kind = ""
...@@ -1582,8 +1630,8 @@ func (x *Eviction) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { ...@@ -1582,8 +1630,8 @@ func (x *Eviction) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.ObjectMeta = pkg3_api.ObjectMeta{} x.ObjectMeta = pkg3_api.ObjectMeta{}
} else { } else {
yyv136 := &x.ObjectMeta yyv141 := &x.ObjectMeta
yyv136.CodecDecodeSelf(d) yyv141.CodecDecodeSelf(d)
} }
case "deleteOptions": case "deleteOptions":
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
...@@ -1597,9 +1645,9 @@ func (x *Eviction) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { ...@@ -1597,9 +1645,9 @@ func (x *Eviction) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
x.DeleteOptions.CodecDecodeSelf(d) x.DeleteOptions.CodecDecodeSelf(d)
} }
default: default:
z.DecStructFieldNotFound(-1, yys133) z.DecStructFieldNotFound(-1, yys138)
} // end switch yys133 } // end switch yys138
} // end for yyj133 } // end for yyj138
z.DecSendContainerState(codecSelfer_containerMapEnd1234) z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} }
...@@ -1607,16 +1655,16 @@ func (x *Eviction) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { ...@@ -1607,16 +1655,16 @@ func (x *Eviction) 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 yyj138 int var yyj143 int
var yyb138 bool var yyb143 bool
var yyhl138 bool = l >= 0 var yyhl143 bool = l >= 0
yyj138++ yyj143++
if yyhl138 { if yyhl143 {
yyb138 = yyj138 > l yyb143 = yyj143 > l
} else { } else {
yyb138 = r.CheckBreak() yyb143 = r.CheckBreak()
} }
if yyb138 { if yyb143 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
...@@ -1626,13 +1674,13 @@ func (x *Eviction) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { ...@@ -1626,13 +1674,13 @@ func (x *Eviction) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
} else { } else {
x.Kind = string(r.DecodeString()) x.Kind = string(r.DecodeString())
} }
yyj138++ yyj143++
if yyhl138 { if yyhl143 {
yyb138 = yyj138 > l yyb143 = yyj143 > l
} else { } else {
yyb138 = r.CheckBreak() yyb143 = r.CheckBreak()
} }
if yyb138 { if yyb143 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
...@@ -1642,13 +1690,13 @@ func (x *Eviction) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { ...@@ -1642,13 +1690,13 @@ func (x *Eviction) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
} else { } else {
x.APIVersion = string(r.DecodeString()) x.APIVersion = string(r.DecodeString())
} }
yyj138++ yyj143++
if yyhl138 { if yyhl143 {
yyb138 = yyj138 > l yyb143 = yyj143 > l
} else { } else {
yyb138 = r.CheckBreak() yyb143 = r.CheckBreak()
} }
if yyb138 { if yyb143 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
...@@ -1656,16 +1704,16 @@ func (x *Eviction) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { ...@@ -1656,16 +1704,16 @@ func (x *Eviction) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.ObjectMeta = pkg3_api.ObjectMeta{} x.ObjectMeta = pkg3_api.ObjectMeta{}
} else { } else {
yyv141 := &x.ObjectMeta yyv146 := &x.ObjectMeta
yyv141.CodecDecodeSelf(d) yyv146.CodecDecodeSelf(d)
} }
yyj138++ yyj143++
if yyhl138 { if yyhl143 {
yyb138 = yyj138 > l yyb143 = yyj143 > l
} else { } else {
yyb138 = r.CheckBreak() yyb143 = r.CheckBreak()
} }
if yyb138 { if yyb143 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
...@@ -1681,17 +1729,17 @@ func (x *Eviction) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { ...@@ -1681,17 +1729,17 @@ func (x *Eviction) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
x.DeleteOptions.CodecDecodeSelf(d) x.DeleteOptions.CodecDecodeSelf(d)
} }
for { for {
yyj138++ yyj143++
if yyhl138 { if yyhl143 {
yyb138 = yyj138 > l yyb143 = yyj143 > l
} else { } else {
yyb138 = r.CheckBreak() yyb143 = r.CheckBreak()
} }
if yyb138 { if yyb143 {
break break
} }
z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj138-1, "") z.DecStructFieldNotFound(yyj143-1, "")
} }
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} }
...@@ -1701,26 +1749,26 @@ func (x codecSelfer1234) encMapstringunversioned_Time(v map[string]pkg2_unversio ...@@ -1701,26 +1749,26 @@ func (x codecSelfer1234) encMapstringunversioned_Time(v map[string]pkg2_unversio
z, r := codec1978.GenHelperEncoder(e) z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r _, _, _ = h, z, r
r.EncodeMapStart(len(v)) r.EncodeMapStart(len(v))
for yyk143, yyv143 := range v { for yyk148, yyv148 := range v {
z.EncSendContainerState(codecSelfer_containerMapKey1234) z.EncSendContainerState(codecSelfer_containerMapKey1234)
yym144 := z.EncBinary() yym149 := z.EncBinary()
_ = yym144 _ = yym149
if false { if false {
} else { } else {
r.EncodeString(codecSelferC_UTF81234, string(yyk143)) r.EncodeString(codecSelferC_UTF81234, string(yyk148))
} }
z.EncSendContainerState(codecSelfer_containerMapValue1234) z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy145 := &yyv143 yy150 := &yyv148
yym146 := z.EncBinary() yym151 := z.EncBinary()
_ = yym146 _ = yym151
if false { if false {
} else if z.HasExtensions() && z.EncExt(yy145) { } else if z.HasExtensions() && z.EncExt(yy150) {
} else if yym146 { } else if yym151 {
z.EncBinaryMarshal(yy145) z.EncBinaryMarshal(yy150)
} else if !yym146 && z.IsJSONHandle() { } else if !yym151 && z.IsJSONHandle() {
z.EncJSONMarshal(yy145) z.EncJSONMarshal(yy150)
} else { } else {
z.EncFallback(yy145) z.EncFallback(yy150)
} }
} }
z.EncSendContainerState(codecSelfer_containerMapEnd1234) z.EncSendContainerState(codecSelfer_containerMapEnd1234)
...@@ -1731,90 +1779,90 @@ func (x codecSelfer1234) decMapstringunversioned_Time(v *map[string]pkg2_unversi ...@@ -1731,90 +1779,90 @@ func (x codecSelfer1234) decMapstringunversioned_Time(v *map[string]pkg2_unversi
z, r := codec1978.GenHelperDecoder(d) z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r _, _, _ = h, z, r
yyv147 := *v yyv152 := *v
yyl147 := r.ReadMapStart() yyl152 := r.ReadMapStart()
yybh147 := z.DecBasicHandle() yybh152 := z.DecBasicHandle()
if yyv147 == nil { if yyv152 == nil {
yyrl147, _ := z.DecInferLen(yyl147, yybh147.MaxInitLen, 40) yyrl152, _ := z.DecInferLen(yyl152, yybh152.MaxInitLen, 40)
yyv147 = make(map[string]pkg2_unversioned.Time, yyrl147) yyv152 = make(map[string]pkg2_unversioned.Time, yyrl152)
*v = yyv147 *v = yyv152
} }
var yymk147 string var yymk152 string
var yymv147 pkg2_unversioned.Time var yymv152 pkg2_unversioned.Time
var yymg147 bool var yymg152 bool
if yybh147.MapValueReset { if yybh152.MapValueReset {
yymg147 = true yymg152 = true
} }
if yyl147 > 0 { if yyl152 > 0 {
for yyj147 := 0; yyj147 < yyl147; yyj147++ { for yyj152 := 0; yyj152 < yyl152; yyj152++ {
z.DecSendContainerState(codecSelfer_containerMapKey1234) z.DecSendContainerState(codecSelfer_containerMapKey1234)
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
yymk147 = "" yymk152 = ""
} else { } else {
yymk147 = string(r.DecodeString()) yymk152 = string(r.DecodeString())
} }
if yymg147 { if yymg152 {
yymv147 = yyv147[yymk147] yymv152 = yyv152[yymk152]
} else { } else {
yymv147 = pkg2_unversioned.Time{} yymv152 = pkg2_unversioned.Time{}
} }
z.DecSendContainerState(codecSelfer_containerMapValue1234) z.DecSendContainerState(codecSelfer_containerMapValue1234)
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
yymv147 = pkg2_unversioned.Time{} yymv152 = pkg2_unversioned.Time{}
} else { } else {
yyv149 := &yymv147 yyv154 := &yymv152
yym150 := z.DecBinary() yym155 := z.DecBinary()
_ = yym150 _ = yym155
if false { if false {
} else if z.HasExtensions() && z.DecExt(yyv149) { } else if z.HasExtensions() && z.DecExt(yyv154) {
} else if yym150 { } else if yym155 {
z.DecBinaryUnmarshal(yyv149) z.DecBinaryUnmarshal(yyv154)
} else if !yym150 && z.IsJSONHandle() { } else if !yym155 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv149) z.DecJSONUnmarshal(yyv154)
} else { } else {
z.DecFallback(yyv149, false) z.DecFallback(yyv154, false)
} }
} }
if yyv147 != nil { if yyv152 != nil {
yyv147[yymk147] = yymv147 yyv152[yymk152] = yymv152
} }
} }
} else if yyl147 < 0 { } else if yyl152 < 0 {
for yyj147 := 0; !r.CheckBreak(); yyj147++ { for yyj152 := 0; !r.CheckBreak(); yyj152++ {
z.DecSendContainerState(codecSelfer_containerMapKey1234) z.DecSendContainerState(codecSelfer_containerMapKey1234)
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
yymk147 = "" yymk152 = ""
} else { } else {
yymk147 = string(r.DecodeString()) yymk152 = string(r.DecodeString())
} }
if yymg147 { if yymg152 {
yymv147 = yyv147[yymk147] yymv152 = yyv152[yymk152]
} else { } else {
yymv147 = pkg2_unversioned.Time{} yymv152 = pkg2_unversioned.Time{}
} }
z.DecSendContainerState(codecSelfer_containerMapValue1234) z.DecSendContainerState(codecSelfer_containerMapValue1234)
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
yymv147 = pkg2_unversioned.Time{} yymv152 = pkg2_unversioned.Time{}
} else { } else {
yyv152 := &yymv147 yyv157 := &yymv152
yym153 := z.DecBinary() yym158 := z.DecBinary()
_ = yym153 _ = yym158
if false { if false {
} else if z.HasExtensions() && z.DecExt(yyv152) { } else if z.HasExtensions() && z.DecExt(yyv157) {
} else if yym153 { } else if yym158 {
z.DecBinaryUnmarshal(yyv152) z.DecBinaryUnmarshal(yyv157)
} else if !yym153 && z.IsJSONHandle() { } else if !yym158 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv152) z.DecJSONUnmarshal(yyv157)
} else { } else {
z.DecFallback(yyv152, false) z.DecFallback(yyv157, false)
} }
} }
if yyv147 != nil { if yyv152 != nil {
yyv147[yymk147] = yymv147 yyv152[yymk152] = yymv152
} }
} }
} // else len==0: TODO: Should we clear map entries? } // else len==0: TODO: Should we clear map entries?
...@@ -1826,10 +1874,10 @@ func (x codecSelfer1234) encSlicePodDisruptionBudget(v []PodDisruptionBudget, e ...@@ -1826,10 +1874,10 @@ func (x codecSelfer1234) encSlicePodDisruptionBudget(v []PodDisruptionBudget, e
z, r := codec1978.GenHelperEncoder(e) z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r _, _, _ = h, z, r
r.EncodeArrayStart(len(v)) r.EncodeArrayStart(len(v))
for _, yyv154 := range v { for _, yyv159 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234) z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy155 := &yyv154 yy160 := &yyv159
yy155.CodecEncodeSelf(e) yy160.CodecEncodeSelf(e)
} }
z.EncSendContainerState(codecSelfer_containerArrayEnd1234) z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} }
...@@ -1839,83 +1887,83 @@ func (x codecSelfer1234) decSlicePodDisruptionBudget(v *[]PodDisruptionBudget, d ...@@ -1839,83 +1887,83 @@ func (x codecSelfer1234) decSlicePodDisruptionBudget(v *[]PodDisruptionBudget, d
z, r := codec1978.GenHelperDecoder(d) z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r _, _, _ = h, z, r
yyv156 := *v yyv161 := *v
yyh156, yyl156 := z.DecSliceHelperStart() yyh161, yyl161 := z.DecSliceHelperStart()
var yyc156 bool var yyc161 bool
if yyl156 == 0 { if yyl161 == 0 {
if yyv156 == nil { if yyv161 == nil {
yyv156 = []PodDisruptionBudget{} yyv161 = []PodDisruptionBudget{}
yyc156 = true yyc161 = true
} else if len(yyv156) != 0 { } else if len(yyv161) != 0 {
yyv156 = yyv156[:0] yyv161 = yyv161[:0]
yyc156 = true yyc161 = true
} }
} else if yyl156 > 0 { } else if yyl161 > 0 {
var yyrr156, yyrl156 int var yyrr161, yyrl161 int
var yyrt156 bool var yyrt161 bool
if yyl156 > cap(yyv156) { if yyl161 > cap(yyv161) {
yyrg156 := len(yyv156) > 0 yyrg161 := len(yyv161) > 0
yyv2156 := yyv156 yyv2161 := yyv161
yyrl156, yyrt156 = z.DecInferLen(yyl156, z.DecBasicHandle().MaxInitLen, 320) yyrl161, yyrt161 = z.DecInferLen(yyl161, z.DecBasicHandle().MaxInitLen, 328)
if yyrt156 { if yyrt161 {
if yyrl156 <= cap(yyv156) { if yyrl161 <= cap(yyv161) {
yyv156 = yyv156[:yyrl156] yyv161 = yyv161[:yyrl161]
} else { } else {
yyv156 = make([]PodDisruptionBudget, yyrl156) yyv161 = make([]PodDisruptionBudget, yyrl161)
} }
} else { } else {
yyv156 = make([]PodDisruptionBudget, yyrl156) yyv161 = make([]PodDisruptionBudget, yyrl161)
} }
yyc156 = true yyc161 = true
yyrr156 = len(yyv156) yyrr161 = len(yyv161)
if yyrg156 { if yyrg161 {
copy(yyv156, yyv2156) copy(yyv161, yyv2161)
} }
} else if yyl156 != len(yyv156) { } else if yyl161 != len(yyv161) {
yyv156 = yyv156[:yyl156] yyv161 = yyv161[:yyl161]
yyc156 = true yyc161 = true
} }
yyj156 := 0 yyj161 := 0
for ; yyj156 < yyrr156; yyj156++ { for ; yyj161 < yyrr161; yyj161++ {
yyh156.ElemContainerState(yyj156) yyh161.ElemContainerState(yyj161)
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
yyv156[yyj156] = PodDisruptionBudget{} yyv161[yyj161] = PodDisruptionBudget{}
} else { } else {
yyv157 := &yyv156[yyj156] yyv162 := &yyv161[yyj161]
yyv157.CodecDecodeSelf(d) yyv162.CodecDecodeSelf(d)
} }
} }
if yyrt156 { if yyrt161 {
for ; yyj156 < yyl156; yyj156++ { for ; yyj161 < yyl161; yyj161++ {
yyv156 = append(yyv156, PodDisruptionBudget{}) yyv161 = append(yyv161, PodDisruptionBudget{})
yyh156.ElemContainerState(yyj156) yyh161.ElemContainerState(yyj161)
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
yyv156[yyj156] = PodDisruptionBudget{} yyv161[yyj161] = PodDisruptionBudget{}
} else { } else {
yyv158 := &yyv156[yyj156] yyv163 := &yyv161[yyj161]
yyv158.CodecDecodeSelf(d) yyv163.CodecDecodeSelf(d)
} }
} }
} }
} else { } else {
yyj156 := 0 yyj161 := 0
for ; !r.CheckBreak(); yyj156++ { for ; !r.CheckBreak(); yyj161++ {
if yyj156 >= len(yyv156) { if yyj161 >= len(yyv161) {
yyv156 = append(yyv156, PodDisruptionBudget{}) // var yyz156 PodDisruptionBudget yyv161 = append(yyv161, PodDisruptionBudget{}) // var yyz161 PodDisruptionBudget
yyc156 = true yyc161 = true
} }
yyh156.ElemContainerState(yyj156) yyh161.ElemContainerState(yyj161)
if yyj156 < len(yyv156) { if yyj161 < len(yyv161) {
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
yyv156[yyj156] = PodDisruptionBudget{} yyv161[yyj161] = PodDisruptionBudget{}
} else { } else {
yyv159 := &yyv156[yyj156] yyv164 := &yyv161[yyj161]
yyv159.CodecDecodeSelf(d) yyv164.CodecDecodeSelf(d)
} }
} else { } else {
...@@ -1923,16 +1971,16 @@ func (x codecSelfer1234) decSlicePodDisruptionBudget(v *[]PodDisruptionBudget, d ...@@ -1923,16 +1971,16 @@ func (x codecSelfer1234) decSlicePodDisruptionBudget(v *[]PodDisruptionBudget, d
} }
} }
if yyj156 < len(yyv156) { if yyj161 < len(yyv161) {
yyv156 = yyv156[:yyj156] yyv161 = yyv161[:yyj161]
yyc156 = true yyc161 = true
} else if yyj156 == 0 && yyv156 == nil { } else if yyj161 == 0 && yyv161 == nil {
yyv156 = []PodDisruptionBudget{} yyv161 = []PodDisruptionBudget{}
yyc156 = true yyc161 = true
} }
} }
yyh156.End() yyh161.End()
if yyc156 { if yyc161 {
*v = yyv156 *v = yyv161
} }
} }
...@@ -253,19 +253,10 @@ func (m *PodDisruptionBudgetStatus) MarshalTo(data []byte) (int, error) { ...@@ -253,19 +253,10 @@ func (m *PodDisruptionBudgetStatus) MarshalTo(data []byte) (int, error) {
_ = l _ = l
data[i] = 0x8 data[i] = 0x8
i++ i++
i = encodeVarintGenerated(data, i, uint64(m.PodDisruptionsAllowed)) i = encodeVarintGenerated(data, i, uint64(m.ObservedGeneration))
data[i] = 0x10
i++
i = encodeVarintGenerated(data, i, uint64(m.CurrentHealthy))
data[i] = 0x18
i++
i = encodeVarintGenerated(data, i, uint64(m.DesiredHealthy))
data[i] = 0x20
i++
i = encodeVarintGenerated(data, i, uint64(m.ExpectedPods))
if len(m.DisruptedPods) > 0 { if len(m.DisruptedPods) > 0 {
for k := range m.DisruptedPods { for k := range m.DisruptedPods {
data[i] = 0x2a data[i] = 0x12
i++ i++
v := m.DisruptedPods[k] v := m.DisruptedPods[k]
msgSize := (&v).Size() msgSize := (&v).Size()
...@@ -285,6 +276,18 @@ func (m *PodDisruptionBudgetStatus) MarshalTo(data []byte) (int, error) { ...@@ -285,6 +276,18 @@ func (m *PodDisruptionBudgetStatus) MarshalTo(data []byte) (int, error) {
i += n9 i += n9
} }
} }
data[i] = 0x18
i++
i = encodeVarintGenerated(data, i, uint64(m.PodDisruptionsAllowed))
data[i] = 0x20
i++
i = encodeVarintGenerated(data, i, uint64(m.CurrentHealthy))
data[i] = 0x28
i++
i = encodeVarintGenerated(data, i, uint64(m.DesiredHealthy))
data[i] = 0x30
i++
i = encodeVarintGenerated(data, i, uint64(m.ExpectedPods))
return i, nil return i, nil
} }
...@@ -368,10 +371,7 @@ func (m *PodDisruptionBudgetSpec) Size() (n int) { ...@@ -368,10 +371,7 @@ func (m *PodDisruptionBudgetSpec) Size() (n int) {
func (m *PodDisruptionBudgetStatus) Size() (n int) { func (m *PodDisruptionBudgetStatus) Size() (n int) {
var l int var l int
_ = l _ = l
n += 1 + sovGenerated(uint64(m.PodDisruptionsAllowed)) n += 1 + sovGenerated(uint64(m.ObservedGeneration))
n += 1 + sovGenerated(uint64(m.CurrentHealthy))
n += 1 + sovGenerated(uint64(m.DesiredHealthy))
n += 1 + sovGenerated(uint64(m.ExpectedPods))
if len(m.DisruptedPods) > 0 { if len(m.DisruptedPods) > 0 {
for k, v := range m.DisruptedPods { for k, v := range m.DisruptedPods {
_ = k _ = k
...@@ -381,6 +381,10 @@ func (m *PodDisruptionBudgetStatus) Size() (n int) { ...@@ -381,6 +381,10 @@ func (m *PodDisruptionBudgetStatus) Size() (n int) {
n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize)) n += mapEntrySize + 1 + sovGenerated(uint64(mapEntrySize))
} }
} }
n += 1 + sovGenerated(uint64(m.PodDisruptionsAllowed))
n += 1 + sovGenerated(uint64(m.CurrentHealthy))
n += 1 + sovGenerated(uint64(m.DesiredHealthy))
n += 1 + sovGenerated(uint64(m.ExpectedPods))
return n return n
} }
...@@ -457,11 +461,12 @@ func (this *PodDisruptionBudgetStatus) String() string { ...@@ -457,11 +461,12 @@ func (this *PodDisruptionBudgetStatus) String() string {
} }
mapStringForDisruptedPods += "}" mapStringForDisruptedPods += "}"
s := strings.Join([]string{`&PodDisruptionBudgetStatus{`, s := strings.Join([]string{`&PodDisruptionBudgetStatus{`,
`ObservedGeneration:` + fmt.Sprintf("%v", this.ObservedGeneration) + `,`,
`DisruptedPods:` + mapStringForDisruptedPods + `,`,
`PodDisruptionsAllowed:` + fmt.Sprintf("%v", this.PodDisruptionsAllowed) + `,`, `PodDisruptionsAllowed:` + fmt.Sprintf("%v", this.PodDisruptionsAllowed) + `,`,
`CurrentHealthy:` + fmt.Sprintf("%v", this.CurrentHealthy) + `,`, `CurrentHealthy:` + fmt.Sprintf("%v", this.CurrentHealthy) + `,`,
`DesiredHealthy:` + fmt.Sprintf("%v", this.DesiredHealthy) + `,`, `DesiredHealthy:` + fmt.Sprintf("%v", this.DesiredHealthy) + `,`,
`ExpectedPods:` + fmt.Sprintf("%v", this.ExpectedPods) + `,`, `ExpectedPods:` + fmt.Sprintf("%v", this.ExpectedPods) + `,`,
`DisruptedPods:` + mapStringForDisruptedPods + `,`,
`}`, `}`,
}, "") }, "")
return s return s
...@@ -982,9 +987,9 @@ func (m *PodDisruptionBudgetStatus) Unmarshal(data []byte) error { ...@@ -982,9 +987,9 @@ func (m *PodDisruptionBudgetStatus) Unmarshal(data []byte) error {
switch fieldNum { switch fieldNum {
case 1: case 1:
if wireType != 0 { if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field PodDisruptionsAllowed", wireType) return fmt.Errorf("proto: wrong wireType = %d for field ObservedGeneration", wireType)
} }
m.PodDisruptionsAllowed = 0 m.ObservedGeneration = 0
for shift := uint(0); ; shift += 7 { for shift := uint(0); ; shift += 7 {
if shift >= 64 { if shift >= 64 {
return ErrIntOverflowGenerated return ErrIntOverflowGenerated
...@@ -994,69 +999,12 @@ func (m *PodDisruptionBudgetStatus) Unmarshal(data []byte) error { ...@@ -994,69 +999,12 @@ func (m *PodDisruptionBudgetStatus) Unmarshal(data []byte) error {
} }
b := data[iNdEx] b := data[iNdEx]
iNdEx++ iNdEx++
m.PodDisruptionsAllowed |= (int32(b) & 0x7F) << shift m.ObservedGeneration |= (int64(b) & 0x7F) << shift
if b < 0x80 { if b < 0x80 {
break break
} }
} }
case 2: case 2:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field CurrentHealthy", wireType)
}
m.CurrentHealthy = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowGenerated
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := data[iNdEx]
iNdEx++
m.CurrentHealthy |= (int32(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
case 3:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field DesiredHealthy", wireType)
}
m.DesiredHealthy = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowGenerated
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := data[iNdEx]
iNdEx++
m.DesiredHealthy |= (int32(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
case 4:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field ExpectedPods", wireType)
}
m.ExpectedPods = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowGenerated
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := data[iNdEx]
iNdEx++
m.ExpectedPods |= (int32(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
case 5:
if wireType != 2 { if wireType != 2 {
return fmt.Errorf("proto: wrong wireType = %d for field DisruptedPods", wireType) return fmt.Errorf("proto: wrong wireType = %d for field DisruptedPods", wireType)
} }
...@@ -1172,6 +1120,82 @@ func (m *PodDisruptionBudgetStatus) Unmarshal(data []byte) error { ...@@ -1172,6 +1120,82 @@ func (m *PodDisruptionBudgetStatus) Unmarshal(data []byte) error {
} }
m.DisruptedPods[mapkey] = *mapvalue m.DisruptedPods[mapkey] = *mapvalue
iNdEx = postIndex iNdEx = postIndex
case 3:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field PodDisruptionsAllowed", wireType)
}
m.PodDisruptionsAllowed = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowGenerated
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := data[iNdEx]
iNdEx++
m.PodDisruptionsAllowed |= (int32(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
case 4:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field CurrentHealthy", wireType)
}
m.CurrentHealthy = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowGenerated
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := data[iNdEx]
iNdEx++
m.CurrentHealthy |= (int32(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
case 5:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field DesiredHealthy", wireType)
}
m.DesiredHealthy = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowGenerated
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := data[iNdEx]
iNdEx++
m.DesiredHealthy |= (int32(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
case 6:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field ExpectedPods", wireType)
}
m.ExpectedPods = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return ErrIntOverflowGenerated
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := data[iNdEx]
iNdEx++
m.ExpectedPods |= (int32(b) & 0x7F) << shift
if b < 0x80 {
break
}
}
default: default:
iNdEx = preIndex iNdEx = preIndex
skippy, err := skipGenerated(data[iNdEx:]) skippy, err := skipGenerated(data[iNdEx:])
...@@ -1299,51 +1323,53 @@ var ( ...@@ -1299,51 +1323,53 @@ var (
) )
var fileDescriptorGenerated = []byte{ var fileDescriptorGenerated = []byte{
// 728 bytes of a gzipped FileDescriptorProto // 758 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xb4, 0x94, 0xcf, 0x6e, 0xd3, 0x4e, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xb4, 0x94, 0xcf, 0x6f, 0xdb, 0x36,
0x10, 0xc7, 0xe3, 0x26, 0xe9, 0x2f, 0xbf, 0x6d, 0x52, 0x95, 0x85, 0x42, 0x88, 0x84, 0x8b, 0x72, 0x14, 0xc7, 0xad, 0xd8, 0xce, 0x3c, 0xc6, 0x0e, 0x32, 0x6e, 0xd9, 0x3c, 0x03, 0x53, 0x06, 0x9f,
0x6a, 0x05, 0x5d, 0x2b, 0x15, 0x48, 0x85, 0x43, 0xa5, 0x9a, 0x54, 0xa2, 0x12, 0x55, 0x2b, 0x17, 0x12, 0x6c, 0xa1, 0xe0, 0x60, 0x03, 0xb2, 0x1d, 0x02, 0x44, 0x73, 0xb0, 0x65, 0x58, 0xe0, 0x40,
0x09, 0x84, 0x04, 0x92, 0x63, 0x0f, 0xee, 0x12, 0xc7, 0xb6, 0x76, 0xd7, 0x81, 0xdc, 0x78, 0x04, 0x19, 0xb0, 0x61, 0xc0, 0x0a, 0xe8, 0xc7, 0xab, 0xc2, 0x5a, 0x16, 0x05, 0x92, 0x52, 0xeb, 0x5b,
0x0e, 0x3c, 0x05, 0xaf, 0xc1, 0xa5, 0xe2, 0xd4, 0x23, 0x17, 0x2a, 0x9a, 0xbe, 0x08, 0xf2, 0x66, 0xff, 0x84, 0x1e, 0xfa, 0x1f, 0xf5, 0x12, 0xf4, 0x94, 0x63, 0x2f, 0x0d, 0x1a, 0xe7, 0x7f, 0xe8,
0x93, 0xda, 0xf9, 0x53, 0x55, 0x2a, 0xdc, 0xbc, 0xbb, 0xf3, 0xf9, 0xce, 0x7c, 0x67, 0x67, 0x8d, 0xb9, 0x90, 0x44, 0x3b, 0x96, 0x7f, 0x04, 0x01, 0xd2, 0xde, 0x44, 0xf2, 0x7d, 0xbe, 0xdf, 0xf7,
0x9e, 0xb4, 0x37, 0x39, 0xa1, 0xa1, 0xd1, 0x8e, 0x5b, 0xc0, 0x02, 0x10, 0xc0, 0x8d, 0xa8, 0xed, 0x1e, 0x1f, 0x85, 0x7e, 0xe9, 0xef, 0x0b, 0x42, 0x99, 0xd1, 0x8f, 0x1d, 0xe0, 0x21, 0x48, 0x10,
0x19, 0x76, 0x44, 0xb9, 0x11, 0x85, 0x3e, 0x75, 0x7a, 0x46, 0xb7, 0xd1, 0x02, 0x61, 0x37, 0x0c, 0x46, 0xd4, 0xf7, 0x0d, 0x3b, 0xa2, 0xc2, 0x88, 0x58, 0x40, 0xdd, 0xa1, 0x91, 0x74, 0x1c, 0x90,
0x0f, 0x02, 0x60, 0xb6, 0x00, 0x97, 0x44, 0x2c, 0x14, 0x21, 0x5e, 0x1b, 0xa0, 0xe4, 0x02, 0x25, 0x76, 0xc7, 0xf0, 0x21, 0x04, 0x6e, 0x4b, 0xf0, 0x48, 0xc4, 0x99, 0x64, 0x78, 0x27, 0x47, 0xc9,
0x51, 0xdb, 0x23, 0x09, 0x4a, 0x06, 0x28, 0x51, 0x68, 0x6d, 0xdd, 0xa3, 0xe2, 0x28, 0x6e, 0x11, 0x2d, 0x4a, 0xa2, 0xbe, 0x4f, 0x52, 0x94, 0xe4, 0x28, 0x51, 0x68, 0x6b, 0xd7, 0xa7, 0xf2, 0x3c,
0x27, 0xec, 0x18, 0x5e, 0xe8, 0x85, 0x86, 0x54, 0x68, 0xc5, 0xef, 0xe5, 0x4a, 0x2e, 0xe4, 0xd7, 0x76, 0x88, 0xcb, 0x06, 0x86, 0xcf, 0x7c, 0x66, 0x64, 0x0a, 0x4e, 0xfc, 0x38, 0x5b, 0x65, 0x8b,
0x40, 0xb9, 0xb6, 0x31, 0xb3, 0x28, 0x83, 0x01, 0x0f, 0x63, 0xe6, 0xc0, 0x78, 0x35, 0xb5, 0xc7, 0xec, 0x2b, 0x57, 0x6e, 0xed, 0x2d, 0x4d, 0xca, 0xe0, 0x20, 0x58, 0xcc, 0x5d, 0x98, 0xcd, 0xa6,
0xb3, 0x99, 0x38, 0xe8, 0x02, 0xe3, 0x34, 0x0c, 0xc0, 0x9d, 0xc0, 0x1e, 0xce, 0xc6, 0xba, 0x13, 0xf5, 0xf3, 0x72, 0x26, 0x0e, 0x13, 0xe0, 0x82, 0xb2, 0x10, 0xbc, 0x39, 0xec, 0xc7, 0xe5, 0x58,
0x96, 0x6b, 0xeb, 0xd3, 0xa3, 0x59, 0x1c, 0x08, 0xda, 0x99, 0xac, 0xa9, 0x31, 0x3d, 0x3c, 0x16, 0x32, 0x57, 0x72, 0x6b, 0x77, 0x71, 0x34, 0x8f, 0x43, 0x49, 0x07, 0xf3, 0x39, 0x75, 0x16, 0x87,
0xd4, 0x37, 0x68, 0x20, 0xb8, 0x60, 0xe3, 0x48, 0xfd, 0x87, 0x86, 0x4a, 0x3b, 0x5d, 0xea, 0x08, 0xc7, 0x92, 0x06, 0x06, 0x0d, 0xa5, 0x90, 0x7c, 0x16, 0x69, 0xbf, 0xd6, 0x50, 0xed, 0x28, 0xa1,
0x1a, 0x06, 0xf8, 0x35, 0x2a, 0x75, 0x40, 0xd8, 0xae, 0x2d, 0xec, 0xaa, 0x76, 0x5f, 0x5b, 0x5d, 0xae, 0xa4, 0x2c, 0xc4, 0xff, 0xa2, 0xda, 0x00, 0xa4, 0xed, 0xd9, 0xd2, 0x6e, 0x6a, 0xdf, 0x6b,
0xd8, 0x58, 0x25, 0x33, 0x9b, 0x4e, 0xba, 0x0d, 0xb2, 0xdf, 0xfa, 0x00, 0x8e, 0xd8, 0x03, 0x61, 0xdb, 0x6b, 0x7b, 0xdb, 0x64, 0x69, 0xd3, 0x49, 0xd2, 0x21, 0x3d, 0xe7, 0x09, 0xb8, 0xf2, 0x04,
0x9b, 0xf8, 0xf8, 0x74, 0x25, 0xd7, 0x3f, 0x5d, 0x41, 0x17, 0x7b, 0xd6, 0x48, 0x0d, 0xbb, 0xa8, 0xa4, 0x6d, 0xe2, 0x8b, 0xab, 0xad, 0xd2, 0xe8, 0x6a, 0x0b, 0xdd, 0xee, 0x59, 0x13, 0x35, 0xec,
0xe2, 0x82, 0x0f, 0x02, 0xf6, 0xa3, 0x24, 0x13, 0xaf, 0xce, 0x49, 0xf9, 0x07, 0x97, 0xcb, 0x37, 0xa1, 0x86, 0x07, 0x01, 0x48, 0xe8, 0x45, 0xa9, 0x93, 0x68, 0xae, 0x64, 0xf2, 0x3f, 0xdc, 0x2d,
0xd3, 0x88, 0x79, 0xa3, 0x7f, 0xba, 0x52, 0xc9, 0x6c, 0x59, 0x59, 0xd1, 0xfa, 0xf7, 0x39, 0x74, 0xdf, 0x9d, 0x46, 0xcc, 0x2f, 0x46, 0x57, 0x5b, 0x8d, 0xc2, 0x96, 0x55, 0x14, 0x6d, 0xbf, 0x5a,
0xf3, 0x20, 0x74, 0x9b, 0x94, 0xb3, 0x58, 0x6e, 0x99, 0xb1, 0xeb, 0x81, 0xf8, 0xa7, 0xbe, 0x0a, 0x41, 0x5f, 0x9e, 0x32, 0xaf, 0x4b, 0x05, 0x8f, 0xb3, 0x2d, 0x33, 0xf6, 0x7c, 0x90, 0x9f, 0xb4,
0x3c, 0x02, 0x47, 0xd9, 0x31, 0xc9, 0x95, 0x47, 0x94, 0x4c, 0xa9, 0xf3, 0x30, 0x02, 0xc7, 0x2c, 0xae, 0x8a, 0x88, 0xc0, 0x55, 0xe5, 0x98, 0xe4, 0xde, 0x23, 0x4a, 0x16, 0xe4, 0x79, 0x16, 0x81,
0xab, 0x7c, 0x85, 0x64, 0x65, 0x49, 0x75, 0xec, 0xa3, 0x79, 0x2e, 0x6c, 0x11, 0xf3, 0x6a, 0x5e, 0x6b, 0xd6, 0x95, 0x5f, 0x25, 0x5d, 0x59, 0x99, 0x3a, 0x0e, 0xd0, 0xaa, 0x90, 0xb6, 0x8c, 0x45,
0xe6, 0x69, 0x5e, 0x33, 0x8f, 0xd4, 0x32, 0x17, 0x55, 0xa6, 0xf9, 0xc1, 0xda, 0x52, 0x39, 0xea, 0xb3, 0x9c, 0xf9, 0x74, 0x1f, 0xe8, 0x93, 0x69, 0x99, 0xeb, 0xca, 0x69, 0x35, 0x5f, 0x5b, 0xca,
0xbf, 0x34, 0x74, 0x67, 0x0a, 0xf5, 0x82, 0x72, 0x81, 0xdf, 0x4e, 0x74, 0xd2, 0xb8, 0xa4, 0x93, 0xa3, 0xfd, 0x56, 0x43, 0xdf, 0x2c, 0xa0, 0xfe, 0xa2, 0x42, 0xe2, 0xff, 0xe7, 0x3a, 0x69, 0xdc,
0xa9, 0x87, 0x40, 0x12, 0x5c, 0x36, 0x74, 0x49, 0xa5, 0x2d, 0x0d, 0x77, 0x52, 0xed, 0x74, 0x50, 0xd1, 0xc9, 0xa9, 0x87, 0x40, 0x52, 0x3c, 0x6b, 0xe8, 0x86, 0xb2, 0xad, 0x8d, 0x77, 0xa6, 0xda,
0x91, 0x0a, 0xe8, 0x24, 0xe3, 0x91, 0x5f, 0x5d, 0xd8, 0xd8, 0xba, 0x9e, 0x4f, 0xb3, 0xa2, 0x52, 0xe9, 0xa2, 0x2a, 0x95, 0x30, 0x48, 0xc7, 0xa3, 0xbc, 0xbd, 0xb6, 0x77, 0xf0, 0xb0, 0x3a, 0xcd,
0x15, 0x77, 0x13, 0x51, 0x6b, 0xa0, 0x5d, 0x3f, 0x9f, 0xee, 0x2f, 0xe9, 0x37, 0x3e, 0x42, 0xe5, 0x86, 0xb2, 0xaa, 0x1e, 0xa7, 0xa2, 0x56, 0xae, 0xdd, 0xbe, 0x59, 0x5c, 0x5f, 0xda, 0x6f, 0x7c,
0x0e, 0x0d, 0xb6, 0xbb, 0x36, 0xf5, 0xed, 0x96, 0x0f, 0xca, 0x23, 0x99, 0x51, 0x47, 0xf2, 0xb0, 0x8e, 0xea, 0x03, 0x1a, 0x1e, 0x26, 0x36, 0x0d, 0x6c, 0x27, 0x00, 0x55, 0x23, 0x59, 0x92, 0x47,
0xc8, 0xe0, 0x61, 0x91, 0xdd, 0x40, 0xec, 0xb3, 0x43, 0xc1, 0x68, 0xe0, 0x99, 0xb7, 0x54, 0xde, 0xfa, 0xb0, 0x48, 0xfe, 0xb0, 0xc8, 0x71, 0x28, 0x7b, 0xfc, 0x4c, 0x72, 0x1a, 0xfa, 0xe6, 0x57,
0xf2, 0x5e, 0x4a, 0xcb, 0xca, 0x28, 0xe3, 0x77, 0xa8, 0xc4, 0xc1, 0x07, 0x47, 0x84, 0x4c, 0x4d, 0xca, 0xb7, 0x7e, 0x32, 0xa5, 0x65, 0x15, 0x94, 0xf1, 0x23, 0x54, 0x13, 0x10, 0x80, 0x2b, 0x19,
0xcf, 0xa3, 0xab, 0x76, 0xd2, 0x6e, 0x81, 0x7f, 0xa8, 0x58, 0xb3, 0x9c, 0xb4, 0x72, 0xb8, 0xb2, 0x57, 0xd3, 0xf3, 0xd3, 0x7d, 0x3b, 0x69, 0x3b, 0x10, 0x9c, 0x29, 0xd6, 0xac, 0xa7, 0xad, 0x1c,
0x46, 0x9a, 0xf5, 0x6f, 0x05, 0x74, 0x77, 0xe6, 0xdd, 0xe3, 0x3d, 0x84, 0xdd, 0xd1, 0x09, 0xdf, 0xaf, 0xac, 0x89, 0x66, 0xfb, 0x7d, 0x05, 0x7d, 0xbb, 0xf4, 0xee, 0xf1, 0x9f, 0x08, 0x33, 0x47,
0xf6, 0xfd, 0xf0, 0x23, 0xb8, 0xd2, 0x6d, 0xd1, 0xbc, 0xa7, 0xaa, 0x5f, 0xce, 0xe0, 0xc3, 0x20, 0x00, 0x4f, 0xc0, 0xfb, 0x3d, 0xff, 0x23, 0x50, 0x16, 0x66, 0xd5, 0x96, 0xcd, 0x96, 0xca, 0x1e,
0x6b, 0x0a, 0x88, 0xb7, 0xd0, 0xa2, 0x13, 0x33, 0x06, 0x81, 0x78, 0x0e, 0xb6, 0x2f, 0x8e, 0x7a, 0xf7, 0xe6, 0x22, 0xac, 0x05, 0x14, 0x7e, 0xa9, 0xa1, 0x86, 0x97, 0xdb, 0x80, 0x77, 0xca, 0xbc,
0xd2, 0x52, 0xd1, 0xbc, 0xad, 0xa4, 0x16, 0x9f, 0x65, 0x4e, 0xad, 0xb1, 0xe8, 0x84, 0x77, 0x81, 0xf1, 0xed, 0xfd, 0xf3, 0x31, 0xa6, 0x94, 0x74, 0xa7, 0x95, 0x8f, 0x42, 0xc9, 0x87, 0xe6, 0xa6,
0x53, 0x06, 0xee, 0x90, 0xcf, 0x67, 0xf9, 0x66, 0xe6, 0xd4, 0x1a, 0x8b, 0xc6, 0x9b, 0xa8, 0x0c, 0x4a, 0xb0, 0x51, 0x38, 0xb3, 0x8a, 0x49, 0xe0, 0x13, 0x84, 0xbd, 0x89, 0xa4, 0x38, 0x0c, 0x02,
0x9f, 0x22, 0x70, 0x04, 0xb8, 0x07, 0xa1, 0xcb, 0xab, 0x05, 0x49, 0x8f, 0xae, 0x61, 0x27, 0x75, 0xf6, 0x14, 0xbc, 0xec, 0x01, 0x55, 0xcd, 0xef, 0x94, 0xc2, 0x66, 0xc1, 0x77, 0x1c, 0x64, 0x2d,
0x66, 0x65, 0x22, 0xf1, 0x57, 0x0d, 0x55, 0x94, 0x21, 0xc5, 0x16, 0xe5, 0xe8, 0xbd, 0xfa, 0x1b, 0x00, 0xf1, 0x01, 0x5a, 0x77, 0x63, 0xce, 0x21, 0x94, 0x7f, 0x80, 0x1d, 0xc8, 0xf3, 0x61, 0xb3,
0x4f, 0x8c, 0x34, 0xd3, 0xca, 0x3b, 0x81, 0x60, 0x3d, 0x73, 0x59, 0x15, 0x55, 0xc9, 0x9c, 0x59, 0x92, 0x49, 0x7d, 0xad, 0xa4, 0xd6, 0x7f, 0x2b, 0x9c, 0x5a, 0x33, 0xd1, 0x29, 0xef, 0x81, 0xa0,
0xd9, 0x22, 0x6a, 0x1d, 0x84, 0x27, 0x59, 0xbc, 0x84, 0xf2, 0x6d, 0xe8, 0xc9, 0x6b, 0xfa, 0xdf, 0x1c, 0xbc, 0x31, 0x5f, 0x2d, 0xf2, 0xdd, 0xc2, 0xa9, 0x35, 0x13, 0x8d, 0xf7, 0x51, 0x1d, 0x9e,
0x4a, 0x3e, 0xf1, 0x36, 0x2a, 0x76, 0x6d, 0x3f, 0x86, 0x2b, 0xfc, 0x4f, 0xd3, 0x23, 0xf4, 0x92, 0x45, 0xe0, 0x8e, 0x7b, 0xbc, 0x9a, 0xd1, 0x93, 0x49, 0x3b, 0x9a, 0x3a, 0xb3, 0x0a, 0x91, 0xad,
0x76, 0xc0, 0x1a, 0x90, 0x4f, 0xe7, 0x36, 0x35, 0x73, 0xed, 0xf8, 0x4c, 0xcf, 0x9d, 0x9c, 0xe9, 0x01, 0xc2, 0xf3, 0x4d, 0xc4, 0x1b, 0xa8, 0xdc, 0x87, 0x61, 0x76, 0xe5, 0x9f, 0x5b, 0xe9, 0x27,
0xb9, 0x9f, 0x67, 0x7a, 0xee, 0x73, 0x5f, 0xd7, 0x8e, 0xfb, 0xba, 0x76, 0xd2, 0xd7, 0xb5, 0xdf, 0x3e, 0x44, 0xd5, 0xc4, 0x0e, 0x62, 0xb8, 0xc7, 0xbf, 0x79, 0x7a, 0x1c, 0xff, 0xa6, 0x03, 0xb0,
0x7d, 0x5d, 0xfb, 0x72, 0xae, 0xe7, 0xde, 0xfc, 0xa7, 0xcc, 0xfe, 0x09, 0x00, 0x00, 0xff, 0xff, 0x72, 0xf2, 0xd7, 0x95, 0x7d, 0xcd, 0xdc, 0xb9, 0xb8, 0xd6, 0x4b, 0x97, 0xd7, 0x7a, 0xe9, 0xcd,
0xd0, 0x3c, 0x91, 0x46, 0xc1, 0x07, 0x00, 0x00, 0xb5, 0x5e, 0x7a, 0x3e, 0xd2, 0xb5, 0x8b, 0x91, 0xae, 0x5d, 0x8e, 0x74, 0xed, 0xdd, 0x48, 0xd7,
0x5e, 0xdc, 0xe8, 0xa5, 0xff, 0x3e, 0x53, 0xb7, 0xfe, 0x21, 0x00, 0x00, 0xff, 0xff, 0x59, 0x3e,
0xe1, 0xf8, 0x0d, 0x08, 0x00, 0x00,
} }
...@@ -75,17 +75,10 @@ message PodDisruptionBudgetSpec { ...@@ -75,17 +75,10 @@ message PodDisruptionBudgetSpec {
// PodDisruptionBudgetStatus represents information about the status of a // PodDisruptionBudgetStatus represents information about the status of a
// PodDisruptionBudget. Status may trail the actual state of a system. // PodDisruptionBudget. Status may trail the actual state of a system.
message PodDisruptionBudgetStatus { message PodDisruptionBudgetStatus {
// Number of pod disruptions that are currently allowed. // Most recent generation observed when updating this PDB status. PodDisruptionsAllowed and other
optional int32 disruptionsAllowed = 1; // status informatio is valid only if observedGeneration equals to PDB's object generation.
// +optional
// current number of healthy pods optional int64 observedGeneration = 1;
optional int32 currentHealthy = 2;
// minimum desired number of healthy pods
optional int32 desiredHealthy = 3;
// total number of pods counted by this disruption budget
optional int32 expectedPods = 4;
// DisruptedPods contains information about pods whose eviction was // DisruptedPods contains information about pods whose eviction was
// processed by the API server eviction subresource handler but has not // processed by the API server eviction subresource handler but has not
...@@ -98,6 +91,18 @@ message PodDisruptionBudgetStatus { ...@@ -98,6 +91,18 @@ message PodDisruptionBudgetStatus {
// the list automatically by PodDisruptionBudget controller after some time. // the list automatically by PodDisruptionBudget controller after some time.
// If everything goes smooth this map should be empty for the most of the time. // If everything goes smooth this map should be empty for the most of the time.
// Large number of entries in the map may indicate problems with pod deletions. // Large number of entries in the map may indicate problems with pod deletions.
map<string, k8s.io.kubernetes.pkg.api.unversioned.Time> disruptedPods = 5; map<string, k8s.io.kubernetes.pkg.api.unversioned.Time> disruptedPods = 2;
// Number of pod disruptions that are currently allowed.
optional int32 disruptionsAllowed = 3;
// current number of healthy pods
optional int32 currentHealthy = 4;
// minimum desired number of healthy pods
optional int32 desiredHealthy = 5;
// total number of pods counted by this disruption budget
optional int32 expectedPods = 6;
} }
...@@ -362,12 +362,13 @@ func (x *PodDisruptionBudgetStatus) CodecEncodeSelf(e *codec1978.Encoder) { ...@@ -362,12 +362,13 @@ func (x *PodDisruptionBudgetStatus) CodecEncodeSelf(e *codec1978.Encoder) {
} else { } else {
yysep24 := !z.EncBinary() yysep24 := !z.EncBinary()
yy2arr24 := z.EncBasicHandle().StructToArray yy2arr24 := z.EncBasicHandle().StructToArray
var yyq24 [5]bool var yyq24 [6]bool
_, _, _ = yysep24, yyq24, yy2arr24 _, _, _ = yysep24, yyq24, yy2arr24
const yyr24 bool = false const yyr24 bool = false
yyq24[0] = x.ObservedGeneration != 0
var yynn24 int var yynn24 int
if yyr24 || yy2arr24 { if yyr24 || yy2arr24 {
r.EncodeArrayStart(5) r.EncodeArrayStart(6)
} else { } else {
yynn24 = 5 yynn24 = 5
for _, b := range yyq24 { for _, b := range yyq24 {
...@@ -380,40 +381,54 @@ func (x *PodDisruptionBudgetStatus) CodecEncodeSelf(e *codec1978.Encoder) { ...@@ -380,40 +381,54 @@ func (x *PodDisruptionBudgetStatus) CodecEncodeSelf(e *codec1978.Encoder) {
} }
if yyr24 || yy2arr24 { if yyr24 || yy2arr24 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234) z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq24[0] {
yym26 := z.EncBinary() yym26 := z.EncBinary()
_ = yym26 _ = yym26
if false { if false {
} else { } else {
r.EncodeInt(int64(x.PodDisruptionsAllowed)) r.EncodeInt(int64(x.ObservedGeneration))
} }
} else { } else {
r.EncodeInt(0)
}
} else {
if yyq24[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234) z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("disruptionsAllowed")) r.EncodeString(codecSelferC_UTF81234, string("observedGeneration"))
z.EncSendContainerState(codecSelfer_containerMapValue1234) z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym27 := z.EncBinary() yym27 := z.EncBinary()
_ = yym27 _ = yym27
if false { if false {
} else { } else {
r.EncodeInt(int64(x.PodDisruptionsAllowed)) r.EncodeInt(int64(x.ObservedGeneration))
}
} }
} }
if yyr24 || yy2arr24 { if yyr24 || yy2arr24 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234) z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.DisruptedPods == nil {
r.EncodeNil()
} else {
yym29 := z.EncBinary() yym29 := z.EncBinary()
_ = yym29 _ = yym29
if false { if false {
} else { } else {
r.EncodeInt(int64(x.CurrentHealthy)) h.encMapstringunversioned_Time((map[string]pkg2_unversioned.Time)(x.DisruptedPods), e)
}
} }
} else { } else {
z.EncSendContainerState(codecSelfer_containerMapKey1234) z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("currentHealthy")) r.EncodeString(codecSelferC_UTF81234, string("disruptedPods"))
z.EncSendContainerState(codecSelfer_containerMapValue1234) z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.DisruptedPods == nil {
r.EncodeNil()
} else {
yym30 := z.EncBinary() yym30 := z.EncBinary()
_ = yym30 _ = yym30
if false { if false {
} else { } else {
r.EncodeInt(int64(x.CurrentHealthy)) h.encMapstringunversioned_Time((map[string]pkg2_unversioned.Time)(x.DisruptedPods), e)
}
} }
} }
if yyr24 || yy2arr24 { if yyr24 || yy2arr24 {
...@@ -422,17 +437,17 @@ func (x *PodDisruptionBudgetStatus) CodecEncodeSelf(e *codec1978.Encoder) { ...@@ -422,17 +437,17 @@ func (x *PodDisruptionBudgetStatus) CodecEncodeSelf(e *codec1978.Encoder) {
_ = yym32 _ = yym32
if false { if false {
} else { } else {
r.EncodeInt(int64(x.DesiredHealthy)) r.EncodeInt(int64(x.PodDisruptionsAllowed))
} }
} else { } else {
z.EncSendContainerState(codecSelfer_containerMapKey1234) z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("desiredHealthy")) r.EncodeString(codecSelferC_UTF81234, string("disruptionsAllowed"))
z.EncSendContainerState(codecSelfer_containerMapValue1234) z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym33 := z.EncBinary() yym33 := z.EncBinary()
_ = yym33 _ = yym33
if false { if false {
} else { } else {
r.EncodeInt(int64(x.DesiredHealthy)) r.EncodeInt(int64(x.PodDisruptionsAllowed))
} }
} }
if yyr24 || yy2arr24 { if yyr24 || yy2arr24 {
...@@ -441,45 +456,56 @@ func (x *PodDisruptionBudgetStatus) CodecEncodeSelf(e *codec1978.Encoder) { ...@@ -441,45 +456,56 @@ func (x *PodDisruptionBudgetStatus) CodecEncodeSelf(e *codec1978.Encoder) {
_ = yym35 _ = yym35
if false { if false {
} else { } else {
r.EncodeInt(int64(x.ExpectedPods)) r.EncodeInt(int64(x.CurrentHealthy))
} }
} else { } else {
z.EncSendContainerState(codecSelfer_containerMapKey1234) z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("expectedPods")) r.EncodeString(codecSelferC_UTF81234, string("currentHealthy"))
z.EncSendContainerState(codecSelfer_containerMapValue1234) z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym36 := z.EncBinary() yym36 := z.EncBinary()
_ = yym36 _ = yym36
if false { if false {
} else { } else {
r.EncodeInt(int64(x.ExpectedPods)) r.EncodeInt(int64(x.CurrentHealthy))
} }
} }
if yyr24 || yy2arr24 { if yyr24 || yy2arr24 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234) z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.DisruptedPods == nil {
r.EncodeNil()
} else {
yym38 := z.EncBinary() yym38 := z.EncBinary()
_ = yym38 _ = yym38
if false { if false {
} else { } else {
h.encMapstringunversioned_Time((map[string]pkg2_unversioned.Time)(x.DisruptedPods), e) r.EncodeInt(int64(x.DesiredHealthy))
}
} }
} else { } else {
z.EncSendContainerState(codecSelfer_containerMapKey1234) z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("disruptedPods")) r.EncodeString(codecSelferC_UTF81234, string("desiredHealthy"))
z.EncSendContainerState(codecSelfer_containerMapValue1234) z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.DisruptedPods == nil {
r.EncodeNil()
} else {
yym39 := z.EncBinary() yym39 := z.EncBinary()
_ = yym39 _ = yym39
if false { if false {
} else { } else {
h.encMapstringunversioned_Time((map[string]pkg2_unversioned.Time)(x.DisruptedPods), e) r.EncodeInt(int64(x.DesiredHealthy))
} }
} }
if yyr24 || yy2arr24 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym41 := z.EncBinary()
_ = yym41
if false {
} else {
r.EncodeInt(int64(x.ExpectedPods))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("expectedPods"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym42 := z.EncBinary()
_ = yym42
if false {
} else {
r.EncodeInt(int64(x.ExpectedPods))
}
} }
if yyr24 || yy2arr24 { if yyr24 || yy2arr24 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234) z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
...@@ -494,25 +520,25 @@ func (x *PodDisruptionBudgetStatus) CodecDecodeSelf(d *codec1978.Decoder) { ...@@ -494,25 +520,25 @@ func (x *PodDisruptionBudgetStatus) CodecDecodeSelf(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
yym40 := z.DecBinary() yym43 := z.DecBinary()
_ = yym40 _ = yym43
if false { if false {
} else if z.HasExtensions() && z.DecExt(x) { } else if z.HasExtensions() && z.DecExt(x) {
} else { } else {
yyct41 := r.ContainerType() yyct44 := r.ContainerType()
if yyct41 == codecSelferValueTypeMap1234 { if yyct44 == codecSelferValueTypeMap1234 {
yyl41 := r.ReadMapStart() yyl44 := r.ReadMapStart()
if yyl41 == 0 { if yyl44 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234) z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else { } else {
x.codecDecodeSelfFromMap(yyl41, d) x.codecDecodeSelfFromMap(yyl44, d)
} }
} else if yyct41 == codecSelferValueTypeArray1234 { } else if yyct44 == codecSelferValueTypeArray1234 {
yyl41 := r.ReadArrayStart() yyl44 := r.ReadArrayStart()
if yyl41 == 0 { if yyl44 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else { } else {
x.codecDecodeSelfFromArray(yyl41, d) x.codecDecodeSelfFromArray(yyl44, d)
} }
} else { } else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
...@@ -524,12 +550,12 @@ func (x *PodDisruptionBudgetStatus) codecDecodeSelfFromMap(l int, d *codec1978.D ...@@ -524,12 +550,12 @@ func (x *PodDisruptionBudgetStatus) codecDecodeSelfFromMap(l int, d *codec1978.D
var h codecSelfer1234 var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d) z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r _, _, _ = h, z, r
var yys42Slc = z.DecScratchBuffer() // default slice to decode into var yys45Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys42Slc _ = yys45Slc
var yyhl42 bool = l >= 0 var yyhl45 bool = l >= 0
for yyj42 := 0; ; yyj42++ { for yyj45 := 0; ; yyj45++ {
if yyhl42 { if yyhl45 {
if yyj42 >= l { if yyj45 >= l {
break break
} }
} else { } else {
...@@ -538,10 +564,28 @@ func (x *PodDisruptionBudgetStatus) codecDecodeSelfFromMap(l int, d *codec1978.D ...@@ -538,10 +564,28 @@ func (x *PodDisruptionBudgetStatus) codecDecodeSelfFromMap(l int, d *codec1978.D
} }
} }
z.DecSendContainerState(codecSelfer_containerMapKey1234) z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys42Slc = r.DecodeBytes(yys42Slc, true, true) yys45Slc = r.DecodeBytes(yys45Slc, true, true)
yys42 := string(yys42Slc) yys45 := string(yys45Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234) z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys42 { switch yys45 {
case "observedGeneration":
if r.TryDecodeAsNil() {
x.ObservedGeneration = 0
} else {
x.ObservedGeneration = int64(r.DecodeInt(64))
}
case "disruptedPods":
if r.TryDecodeAsNil() {
x.DisruptedPods = nil
} else {
yyv47 := &x.DisruptedPods
yym48 := z.DecBinary()
_ = yym48
if false {
} else {
h.decMapstringunversioned_Time((*map[string]pkg2_unversioned.Time)(yyv47), d)
}
}
case "disruptionsAllowed": case "disruptionsAllowed":
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.PodDisruptionsAllowed = 0 x.PodDisruptionsAllowed = 0
...@@ -566,22 +610,10 @@ func (x *PodDisruptionBudgetStatus) codecDecodeSelfFromMap(l int, d *codec1978.D ...@@ -566,22 +610,10 @@ func (x *PodDisruptionBudgetStatus) codecDecodeSelfFromMap(l int, d *codec1978.D
} else { } else {
x.ExpectedPods = int32(r.DecodeInt(32)) x.ExpectedPods = int32(r.DecodeInt(32))
} }
case "disruptedPods":
if r.TryDecodeAsNil() {
x.DisruptedPods = nil
} else {
yyv47 := &x.DisruptedPods
yym48 := z.DecBinary()
_ = yym48
if false {
} else {
h.decMapstringunversioned_Time((*map[string]pkg2_unversioned.Time)(yyv47), d)
}
}
default: default:
z.DecStructFieldNotFound(-1, yys42) z.DecStructFieldNotFound(-1, yys45)
} // end switch yys42 } // end switch yys45
} // end for yyj42 } // end for yyj45
z.DecSendContainerState(codecSelfer_containerMapEnd1234) z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} }
...@@ -589,107 +621,123 @@ func (x *PodDisruptionBudgetStatus) codecDecodeSelfFromArray(l int, d *codec1978 ...@@ -589,107 +621,123 @@ func (x *PodDisruptionBudgetStatus) codecDecodeSelfFromArray(l int, d *codec1978
var h codecSelfer1234 var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d) z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r _, _, _ = h, z, r
var yyj49 int var yyj53 int
var yyb49 bool var yyb53 bool
var yyhl49 bool = l >= 0 var yyhl53 bool = l >= 0
yyj49++ yyj53++
if yyhl49 { if yyhl53 {
yyb49 = yyj49 > l yyb53 = yyj53 > l
} else { } else {
yyb49 = r.CheckBreak() yyb53 = r.CheckBreak()
} }
if yyb49 { if yyb53 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.PodDisruptionsAllowed = 0 x.ObservedGeneration = 0
} else { } else {
x.PodDisruptionsAllowed = int32(r.DecodeInt(32)) x.ObservedGeneration = int64(r.DecodeInt(64))
} }
yyj49++ yyj53++
if yyhl49 { if yyhl53 {
yyb49 = yyj49 > l yyb53 = yyj53 > l
} else { } else {
yyb49 = r.CheckBreak() yyb53 = r.CheckBreak()
} }
if yyb49 { if yyb53 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.CurrentHealthy = 0 x.DisruptedPods = nil
} else { } else {
x.CurrentHealthy = int32(r.DecodeInt(32)) yyv55 := &x.DisruptedPods
yym56 := z.DecBinary()
_ = yym56
if false {
} else {
h.decMapstringunversioned_Time((*map[string]pkg2_unversioned.Time)(yyv55), d)
} }
yyj49++ }
if yyhl49 { yyj53++
yyb49 = yyj49 > l if yyhl53 {
yyb53 = yyj53 > l
} else { } else {
yyb49 = r.CheckBreak() yyb53 = r.CheckBreak()
} }
if yyb49 { if yyb53 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.DesiredHealthy = 0 x.PodDisruptionsAllowed = 0
} else { } else {
x.DesiredHealthy = int32(r.DecodeInt(32)) x.PodDisruptionsAllowed = int32(r.DecodeInt(32))
} }
yyj49++ yyj53++
if yyhl49 { if yyhl53 {
yyb49 = yyj49 > l yyb53 = yyj53 > l
} else { } else {
yyb49 = r.CheckBreak() yyb53 = r.CheckBreak()
} }
if yyb49 { if yyb53 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.ExpectedPods = 0 x.CurrentHealthy = 0
} else { } else {
x.ExpectedPods = int32(r.DecodeInt(32)) x.CurrentHealthy = int32(r.DecodeInt(32))
} }
yyj49++ yyj53++
if yyhl49 { if yyhl53 {
yyb49 = yyj49 > l yyb53 = yyj53 > l
} else { } else {
yyb49 = r.CheckBreak() yyb53 = r.CheckBreak()
} }
if yyb49 { if yyb53 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.DisruptedPods = nil x.DesiredHealthy = 0
} else { } else {
yyv54 := &x.DisruptedPods x.DesiredHealthy = int32(r.DecodeInt(32))
yym55 := z.DecBinary() }
_ = yym55 yyj53++
if false { if yyhl53 {
yyb53 = yyj53 > l
} else { } else {
h.decMapstringunversioned_Time((*map[string]pkg2_unversioned.Time)(yyv54), d) yyb53 = r.CheckBreak()
} }
if yyb53 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ExpectedPods = 0
} else {
x.ExpectedPods = int32(r.DecodeInt(32))
} }
for { for {
yyj49++ yyj53++
if yyhl49 { if yyhl53 {
yyb49 = yyj49 > l yyb53 = yyj53 > l
} else { } else {
yyb49 = r.CheckBreak() yyb53 = r.CheckBreak()
} }
if yyb49 { if yyb53 {
break break
} }
z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj49-1, "") z.DecStructFieldNotFound(yyj53-1, "")
} }
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} }
...@@ -701,39 +749,39 @@ func (x *PodDisruptionBudget) CodecEncodeSelf(e *codec1978.Encoder) { ...@@ -701,39 +749,39 @@ func (x *PodDisruptionBudget) CodecEncodeSelf(e *codec1978.Encoder) {
if x == nil { if x == nil {
r.EncodeNil() r.EncodeNil()
} else { } else {
yym56 := z.EncBinary() yym61 := z.EncBinary()
_ = yym56 _ = yym61
if false { if false {
} else if z.HasExtensions() && z.EncExt(x) { } else if z.HasExtensions() && z.EncExt(x) {
} else { } else {
yysep57 := !z.EncBinary() yysep62 := !z.EncBinary()
yy2arr57 := z.EncBasicHandle().StructToArray yy2arr62 := z.EncBasicHandle().StructToArray
var yyq57 [5]bool var yyq62 [5]bool
_, _, _ = yysep57, yyq57, yy2arr57 _, _, _ = yysep62, yyq62, yy2arr62
const yyr57 bool = false const yyr62 bool = false
yyq57[0] = x.Kind != "" yyq62[0] = x.Kind != ""
yyq57[1] = x.APIVersion != "" yyq62[1] = x.APIVersion != ""
yyq57[2] = true yyq62[2] = true
yyq57[3] = true yyq62[3] = true
yyq57[4] = true yyq62[4] = true
var yynn57 int var yynn62 int
if yyr57 || yy2arr57 { if yyr62 || yy2arr62 {
r.EncodeArrayStart(5) r.EncodeArrayStart(5)
} else { } else {
yynn57 = 0 yynn62 = 0
for _, b := range yyq57 { for _, b := range yyq62 {
if b { if b {
yynn57++ yynn62++
} }
} }
r.EncodeMapStart(yynn57) r.EncodeMapStart(yynn62)
yynn57 = 0 yynn62 = 0
} }
if yyr57 || yy2arr57 { if yyr62 || yy2arr62 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234) z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq57[0] { if yyq62[0] {
yym59 := z.EncBinary() yym64 := z.EncBinary()
_ = yym59 _ = yym64
if false { if false {
} else { } else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
...@@ -742,23 +790,23 @@ func (x *PodDisruptionBudget) CodecEncodeSelf(e *codec1978.Encoder) { ...@@ -742,23 +790,23 @@ func (x *PodDisruptionBudget) CodecEncodeSelf(e *codec1978.Encoder) {
r.EncodeString(codecSelferC_UTF81234, "") r.EncodeString(codecSelferC_UTF81234, "")
} }
} else { } else {
if yyq57[0] { if yyq62[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234) z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind")) r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234) z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym60 := z.EncBinary() yym65 := z.EncBinary()
_ = yym60 _ = yym65
if false { if false {
} else { } else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
} }
} }
} }
if yyr57 || yy2arr57 { if yyr62 || yy2arr62 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234) z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq57[1] { if yyq62[1] {
yym62 := z.EncBinary() yym67 := z.EncBinary()
_ = yym62 _ = yym67
if false { if false {
} else { } else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
...@@ -767,70 +815,70 @@ func (x *PodDisruptionBudget) CodecEncodeSelf(e *codec1978.Encoder) { ...@@ -767,70 +815,70 @@ func (x *PodDisruptionBudget) CodecEncodeSelf(e *codec1978.Encoder) {
r.EncodeString(codecSelferC_UTF81234, "") r.EncodeString(codecSelferC_UTF81234, "")
} }
} else { } else {
if yyq57[1] { if yyq62[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234) z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234) z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym63 := z.EncBinary() yym68 := z.EncBinary()
_ = yym63 _ = yym68
if false { if false {
} else { } else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
} }
} }
} }
if yyr57 || yy2arr57 { if yyr62 || yy2arr62 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234) z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq57[2] { if yyq62[2] {
yy65 := &x.ObjectMeta yy70 := &x.ObjectMeta
yy65.CodecEncodeSelf(e) yy70.CodecEncodeSelf(e)
} else { } else {
r.EncodeNil() r.EncodeNil()
} }
} else { } else {
if yyq57[2] { if yyq62[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234) z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata")) r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234) z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy66 := &x.ObjectMeta yy71 := &x.ObjectMeta
yy66.CodecEncodeSelf(e) yy71.CodecEncodeSelf(e)
} }
} }
if yyr57 || yy2arr57 { if yyr62 || yy2arr62 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234) z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq57[3] { if yyq62[3] {
yy68 := &x.Spec yy73 := &x.Spec
yy68.CodecEncodeSelf(e) yy73.CodecEncodeSelf(e)
} else { } else {
r.EncodeNil() r.EncodeNil()
} }
} else { } else {
if yyq57[3] { if yyq62[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234) z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("spec")) r.EncodeString(codecSelferC_UTF81234, string("spec"))
z.EncSendContainerState(codecSelfer_containerMapValue1234) z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy69 := &x.Spec yy74 := &x.Spec
yy69.CodecEncodeSelf(e) yy74.CodecEncodeSelf(e)
} }
} }
if yyr57 || yy2arr57 { if yyr62 || yy2arr62 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234) z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq57[4] { if yyq62[4] {
yy71 := &x.Status yy76 := &x.Status
yy71.CodecEncodeSelf(e) yy76.CodecEncodeSelf(e)
} else { } else {
r.EncodeNil() r.EncodeNil()
} }
} else { } else {
if yyq57[4] { if yyq62[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234) z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("status")) r.EncodeString(codecSelferC_UTF81234, string("status"))
z.EncSendContainerState(codecSelfer_containerMapValue1234) z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy72 := &x.Status yy77 := &x.Status
yy72.CodecEncodeSelf(e) yy77.CodecEncodeSelf(e)
} }
} }
if yyr57 || yy2arr57 { if yyr62 || yy2arr62 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234) z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else { } else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234) z.EncSendContainerState(codecSelfer_containerMapEnd1234)
...@@ -843,25 +891,25 @@ func (x *PodDisruptionBudget) CodecDecodeSelf(d *codec1978.Decoder) { ...@@ -843,25 +891,25 @@ func (x *PodDisruptionBudget) CodecDecodeSelf(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
yym73 := z.DecBinary() yym78 := z.DecBinary()
_ = yym73 _ = yym78
if false { if false {
} else if z.HasExtensions() && z.DecExt(x) { } else if z.HasExtensions() && z.DecExt(x) {
} else { } else {
yyct74 := r.ContainerType() yyct79 := r.ContainerType()
if yyct74 == codecSelferValueTypeMap1234 { if yyct79 == codecSelferValueTypeMap1234 {
yyl74 := r.ReadMapStart() yyl79 := r.ReadMapStart()
if yyl74 == 0 { if yyl79 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234) z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else { } else {
x.codecDecodeSelfFromMap(yyl74, d) x.codecDecodeSelfFromMap(yyl79, d)
} }
} else if yyct74 == codecSelferValueTypeArray1234 { } else if yyct79 == codecSelferValueTypeArray1234 {
yyl74 := r.ReadArrayStart() yyl79 := r.ReadArrayStart()
if yyl74 == 0 { if yyl79 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else { } else {
x.codecDecodeSelfFromArray(yyl74, d) x.codecDecodeSelfFromArray(yyl79, d)
} }
} else { } else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
...@@ -873,12 +921,12 @@ func (x *PodDisruptionBudget) codecDecodeSelfFromMap(l int, d *codec1978.Decoder ...@@ -873,12 +921,12 @@ func (x *PodDisruptionBudget) codecDecodeSelfFromMap(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 yys75Slc = z.DecScratchBuffer() // default slice to decode into var yys80Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys75Slc _ = yys80Slc
var yyhl75 bool = l >= 0 var yyhl80 bool = l >= 0
for yyj75 := 0; ; yyj75++ { for yyj80 := 0; ; yyj80++ {
if yyhl75 { if yyhl80 {
if yyj75 >= l { if yyj80 >= l {
break break
} }
} else { } else {
...@@ -887,10 +935,10 @@ func (x *PodDisruptionBudget) codecDecodeSelfFromMap(l int, d *codec1978.Decoder ...@@ -887,10 +935,10 @@ func (x *PodDisruptionBudget) codecDecodeSelfFromMap(l int, d *codec1978.Decoder
} }
} }
z.DecSendContainerState(codecSelfer_containerMapKey1234) z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys75Slc = r.DecodeBytes(yys75Slc, true, true) yys80Slc = r.DecodeBytes(yys80Slc, true, true)
yys75 := string(yys75Slc) yys80 := string(yys80Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234) z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys75 { switch yys80 {
case "kind": case "kind":
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.Kind = "" x.Kind = ""
...@@ -907,27 +955,27 @@ func (x *PodDisruptionBudget) codecDecodeSelfFromMap(l int, d *codec1978.Decoder ...@@ -907,27 +955,27 @@ func (x *PodDisruptionBudget) codecDecodeSelfFromMap(l int, d *codec1978.Decoder
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.ObjectMeta = pkg3_v1.ObjectMeta{} x.ObjectMeta = pkg3_v1.ObjectMeta{}
} else { } else {
yyv78 := &x.ObjectMeta yyv83 := &x.ObjectMeta
yyv78.CodecDecodeSelf(d) yyv83.CodecDecodeSelf(d)
} }
case "spec": case "spec":
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.Spec = PodDisruptionBudgetSpec{} x.Spec = PodDisruptionBudgetSpec{}
} else { } else {
yyv79 := &x.Spec yyv84 := &x.Spec
yyv79.CodecDecodeSelf(d) yyv84.CodecDecodeSelf(d)
} }
case "status": case "status":
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.Status = PodDisruptionBudgetStatus{} x.Status = PodDisruptionBudgetStatus{}
} else { } else {
yyv80 := &x.Status yyv85 := &x.Status
yyv80.CodecDecodeSelf(d) yyv85.CodecDecodeSelf(d)
} }
default: default:
z.DecStructFieldNotFound(-1, yys75) z.DecStructFieldNotFound(-1, yys80)
} // end switch yys75 } // end switch yys80
} // end for yyj75 } // end for yyj80
z.DecSendContainerState(codecSelfer_containerMapEnd1234) z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} }
...@@ -935,16 +983,16 @@ func (x *PodDisruptionBudget) codecDecodeSelfFromArray(l int, d *codec1978.Decod ...@@ -935,16 +983,16 @@ func (x *PodDisruptionBudget) codecDecodeSelfFromArray(l int, d *codec1978.Decod
var h codecSelfer1234 var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d) z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r _, _, _ = h, z, r
var yyj81 int var yyj86 int
var yyb81 bool var yyb86 bool
var yyhl81 bool = l >= 0 var yyhl86 bool = l >= 0
yyj81++ yyj86++
if yyhl81 { if yyhl86 {
yyb81 = yyj81 > l yyb86 = yyj86 > l
} else { } else {
yyb81 = r.CheckBreak() yyb86 = r.CheckBreak()
} }
if yyb81 { if yyb86 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
...@@ -954,13 +1002,13 @@ func (x *PodDisruptionBudget) codecDecodeSelfFromArray(l int, d *codec1978.Decod ...@@ -954,13 +1002,13 @@ func (x *PodDisruptionBudget) codecDecodeSelfFromArray(l int, d *codec1978.Decod
} else { } else {
x.Kind = string(r.DecodeString()) x.Kind = string(r.DecodeString())
} }
yyj81++ yyj86++
if yyhl81 { if yyhl86 {
yyb81 = yyj81 > l yyb86 = yyj86 > l
} else { } else {
yyb81 = r.CheckBreak() yyb86 = r.CheckBreak()
} }
if yyb81 { if yyb86 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
...@@ -970,13 +1018,13 @@ func (x *PodDisruptionBudget) codecDecodeSelfFromArray(l int, d *codec1978.Decod ...@@ -970,13 +1018,13 @@ func (x *PodDisruptionBudget) codecDecodeSelfFromArray(l int, d *codec1978.Decod
} else { } else {
x.APIVersion = string(r.DecodeString()) x.APIVersion = string(r.DecodeString())
} }
yyj81++ yyj86++
if yyhl81 { if yyhl86 {
yyb81 = yyj81 > l yyb86 = yyj86 > l
} else { } else {
yyb81 = r.CheckBreak() yyb86 = r.CheckBreak()
} }
if yyb81 { if yyb86 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
...@@ -984,16 +1032,16 @@ func (x *PodDisruptionBudget) codecDecodeSelfFromArray(l int, d *codec1978.Decod ...@@ -984,16 +1032,16 @@ func (x *PodDisruptionBudget) codecDecodeSelfFromArray(l int, d *codec1978.Decod
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.ObjectMeta = pkg3_v1.ObjectMeta{} x.ObjectMeta = pkg3_v1.ObjectMeta{}
} else { } else {
yyv84 := &x.ObjectMeta yyv89 := &x.ObjectMeta
yyv84.CodecDecodeSelf(d) yyv89.CodecDecodeSelf(d)
} }
yyj81++ yyj86++
if yyhl81 { if yyhl86 {
yyb81 = yyj81 > l yyb86 = yyj86 > l
} else { } else {
yyb81 = r.CheckBreak() yyb86 = r.CheckBreak()
} }
if yyb81 { if yyb86 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
...@@ -1001,16 +1049,16 @@ func (x *PodDisruptionBudget) codecDecodeSelfFromArray(l int, d *codec1978.Decod ...@@ -1001,16 +1049,16 @@ func (x *PodDisruptionBudget) codecDecodeSelfFromArray(l int, d *codec1978.Decod
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.Spec = PodDisruptionBudgetSpec{} x.Spec = PodDisruptionBudgetSpec{}
} else { } else {
yyv85 := &x.Spec yyv90 := &x.Spec
yyv85.CodecDecodeSelf(d) yyv90.CodecDecodeSelf(d)
} }
yyj81++ yyj86++
if yyhl81 { if yyhl86 {
yyb81 = yyj81 > l yyb86 = yyj86 > l
} else { } else {
yyb81 = r.CheckBreak() yyb86 = r.CheckBreak()
} }
if yyb81 { if yyb86 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
...@@ -1018,21 +1066,21 @@ func (x *PodDisruptionBudget) codecDecodeSelfFromArray(l int, d *codec1978.Decod ...@@ -1018,21 +1066,21 @@ func (x *PodDisruptionBudget) codecDecodeSelfFromArray(l int, d *codec1978.Decod
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.Status = PodDisruptionBudgetStatus{} x.Status = PodDisruptionBudgetStatus{}
} else { } else {
yyv86 := &x.Status yyv91 := &x.Status
yyv86.CodecDecodeSelf(d) yyv91.CodecDecodeSelf(d)
} }
for { for {
yyj81++ yyj86++
if yyhl81 { if yyhl86 {
yyb81 = yyj81 > l yyb86 = yyj86 > l
} else { } else {
yyb81 = r.CheckBreak() yyb86 = r.CheckBreak()
} }
if yyb81 { if yyb86 {
break break
} }
z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj81-1, "") z.DecStructFieldNotFound(yyj86-1, "")
} }
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} }
...@@ -1044,37 +1092,37 @@ func (x *PodDisruptionBudgetList) CodecEncodeSelf(e *codec1978.Encoder) { ...@@ -1044,37 +1092,37 @@ func (x *PodDisruptionBudgetList) CodecEncodeSelf(e *codec1978.Encoder) {
if x == nil { if x == nil {
r.EncodeNil() r.EncodeNil()
} else { } else {
yym87 := z.EncBinary() yym92 := z.EncBinary()
_ = yym87 _ = yym92
if false { if false {
} else if z.HasExtensions() && z.EncExt(x) { } else if z.HasExtensions() && z.EncExt(x) {
} else { } else {
yysep88 := !z.EncBinary() yysep93 := !z.EncBinary()
yy2arr88 := z.EncBasicHandle().StructToArray yy2arr93 := z.EncBasicHandle().StructToArray
var yyq88 [4]bool var yyq93 [4]bool
_, _, _ = yysep88, yyq88, yy2arr88 _, _, _ = yysep93, yyq93, yy2arr93
const yyr88 bool = false const yyr93 bool = false
yyq88[0] = x.Kind != "" yyq93[0] = x.Kind != ""
yyq88[1] = x.APIVersion != "" yyq93[1] = x.APIVersion != ""
yyq88[2] = true yyq93[2] = true
var yynn88 int var yynn93 int
if yyr88 || yy2arr88 { if yyr93 || yy2arr93 {
r.EncodeArrayStart(4) r.EncodeArrayStart(4)
} else { } else {
yynn88 = 1 yynn93 = 1
for _, b := range yyq88 { for _, b := range yyq93 {
if b { if b {
yynn88++ yynn93++
} }
} }
r.EncodeMapStart(yynn88) r.EncodeMapStart(yynn93)
yynn88 = 0 yynn93 = 0
} }
if yyr88 || yy2arr88 { if yyr93 || yy2arr93 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234) z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq88[0] { if yyq93[0] {
yym90 := z.EncBinary() yym95 := z.EncBinary()
_ = yym90 _ = yym95
if false { if false {
} else { } else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
...@@ -1083,23 +1131,23 @@ func (x *PodDisruptionBudgetList) CodecEncodeSelf(e *codec1978.Encoder) { ...@@ -1083,23 +1131,23 @@ func (x *PodDisruptionBudgetList) CodecEncodeSelf(e *codec1978.Encoder) {
r.EncodeString(codecSelferC_UTF81234, "") r.EncodeString(codecSelferC_UTF81234, "")
} }
} else { } else {
if yyq88[0] { if yyq93[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234) z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind")) r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234) z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym91 := z.EncBinary() yym96 := z.EncBinary()
_ = yym91 _ = yym96
if false { if false {
} else { } else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
} }
} }
} }
if yyr88 || yy2arr88 { if yyr93 || yy2arr93 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234) z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq88[1] { if yyq93[1] {
yym93 := z.EncBinary() yym98 := z.EncBinary()
_ = yym93 _ = yym98
if false { if false {
} else { } else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
...@@ -1108,54 +1156,54 @@ func (x *PodDisruptionBudgetList) CodecEncodeSelf(e *codec1978.Encoder) { ...@@ -1108,54 +1156,54 @@ func (x *PodDisruptionBudgetList) CodecEncodeSelf(e *codec1978.Encoder) {
r.EncodeString(codecSelferC_UTF81234, "") r.EncodeString(codecSelferC_UTF81234, "")
} }
} else { } else {
if yyq88[1] { if yyq93[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234) z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234) z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym94 := z.EncBinary() yym99 := z.EncBinary()
_ = yym94 _ = yym99
if false { if false {
} else { } else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
} }
} }
} }
if yyr88 || yy2arr88 { if yyr93 || yy2arr93 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234) z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq88[2] { if yyq93[2] {
yy96 := &x.ListMeta yy101 := &x.ListMeta
yym97 := z.EncBinary() yym102 := z.EncBinary()
_ = yym97 _ = yym102
if false { if false {
} else if z.HasExtensions() && z.EncExt(yy96) { } else if z.HasExtensions() && z.EncExt(yy101) {
} else { } else {
z.EncFallback(yy96) z.EncFallback(yy101)
} }
} else { } else {
r.EncodeNil() r.EncodeNil()
} }
} else { } else {
if yyq88[2] { if yyq93[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234) z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata")) r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234) z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy98 := &x.ListMeta yy103 := &x.ListMeta
yym99 := z.EncBinary() yym104 := z.EncBinary()
_ = yym99 _ = yym104
if false { if false {
} else if z.HasExtensions() && z.EncExt(yy98) { } else if z.HasExtensions() && z.EncExt(yy103) {
} else { } else {
z.EncFallback(yy98) z.EncFallback(yy103)
} }
} }
} }
if yyr88 || yy2arr88 { if yyr93 || yy2arr93 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234) z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil { if x.Items == nil {
r.EncodeNil() r.EncodeNil()
} else { } else {
yym101 := z.EncBinary() yym106 := z.EncBinary()
_ = yym101 _ = yym106
if false { if false {
} else { } else {
h.encSlicePodDisruptionBudget(([]PodDisruptionBudget)(x.Items), e) h.encSlicePodDisruptionBudget(([]PodDisruptionBudget)(x.Items), e)
...@@ -1168,15 +1216,15 @@ func (x *PodDisruptionBudgetList) CodecEncodeSelf(e *codec1978.Encoder) { ...@@ -1168,15 +1216,15 @@ func (x *PodDisruptionBudgetList) CodecEncodeSelf(e *codec1978.Encoder) {
if x.Items == nil { if x.Items == nil {
r.EncodeNil() r.EncodeNil()
} else { } else {
yym102 := z.EncBinary() yym107 := z.EncBinary()
_ = yym102 _ = yym107
if false { if false {
} else { } else {
h.encSlicePodDisruptionBudget(([]PodDisruptionBudget)(x.Items), e) h.encSlicePodDisruptionBudget(([]PodDisruptionBudget)(x.Items), e)
} }
} }
} }
if yyr88 || yy2arr88 { if yyr93 || yy2arr93 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234) z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else { } else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234) z.EncSendContainerState(codecSelfer_containerMapEnd1234)
...@@ -1189,25 +1237,25 @@ func (x *PodDisruptionBudgetList) CodecDecodeSelf(d *codec1978.Decoder) { ...@@ -1189,25 +1237,25 @@ func (x *PodDisruptionBudgetList) CodecDecodeSelf(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
yym103 := z.DecBinary() yym108 := z.DecBinary()
_ = yym103 _ = yym108
if false { if false {
} else if z.HasExtensions() && z.DecExt(x) { } else if z.HasExtensions() && z.DecExt(x) {
} else { } else {
yyct104 := r.ContainerType() yyct109 := r.ContainerType()
if yyct104 == codecSelferValueTypeMap1234 { if yyct109 == codecSelferValueTypeMap1234 {
yyl104 := r.ReadMapStart() yyl109 := r.ReadMapStart()
if yyl104 == 0 { if yyl109 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234) z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else { } else {
x.codecDecodeSelfFromMap(yyl104, d) x.codecDecodeSelfFromMap(yyl109, d)
} }
} else if yyct104 == codecSelferValueTypeArray1234 { } else if yyct109 == codecSelferValueTypeArray1234 {
yyl104 := r.ReadArrayStart() yyl109 := r.ReadArrayStart()
if yyl104 == 0 { if yyl109 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else { } else {
x.codecDecodeSelfFromArray(yyl104, d) x.codecDecodeSelfFromArray(yyl109, d)
} }
} else { } else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
...@@ -1219,12 +1267,12 @@ func (x *PodDisruptionBudgetList) codecDecodeSelfFromMap(l int, d *codec1978.Dec ...@@ -1219,12 +1267,12 @@ func (x *PodDisruptionBudgetList) codecDecodeSelfFromMap(l int, d *codec1978.Dec
var h codecSelfer1234 var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d) z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r _, _, _ = h, z, r
var yys105Slc = z.DecScratchBuffer() // default slice to decode into var yys110Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys105Slc _ = yys110Slc
var yyhl105 bool = l >= 0 var yyhl110 bool = l >= 0
for yyj105 := 0; ; yyj105++ { for yyj110 := 0; ; yyj110++ {
if yyhl105 { if yyhl110 {
if yyj105 >= l { if yyj110 >= l {
break break
} }
} else { } else {
...@@ -1233,10 +1281,10 @@ func (x *PodDisruptionBudgetList) codecDecodeSelfFromMap(l int, d *codec1978.Dec ...@@ -1233,10 +1281,10 @@ func (x *PodDisruptionBudgetList) codecDecodeSelfFromMap(l int, d *codec1978.Dec
} }
} }
z.DecSendContainerState(codecSelfer_containerMapKey1234) z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys105Slc = r.DecodeBytes(yys105Slc, true, true) yys110Slc = r.DecodeBytes(yys110Slc, true, true)
yys105 := string(yys105Slc) yys110 := string(yys110Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234) z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys105 { switch yys110 {
case "kind": case "kind":
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.Kind = "" x.Kind = ""
...@@ -1253,31 +1301,31 @@ func (x *PodDisruptionBudgetList) codecDecodeSelfFromMap(l int, d *codec1978.Dec ...@@ -1253,31 +1301,31 @@ func (x *PodDisruptionBudgetList) codecDecodeSelfFromMap(l int, d *codec1978.Dec
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{} x.ListMeta = pkg2_unversioned.ListMeta{}
} else { } else {
yyv108 := &x.ListMeta yyv113 := &x.ListMeta
yym109 := z.DecBinary() yym114 := z.DecBinary()
_ = yym109 _ = yym114
if false { if false {
} else if z.HasExtensions() && z.DecExt(yyv108) { } else if z.HasExtensions() && z.DecExt(yyv113) {
} else { } else {
z.DecFallback(yyv108, false) z.DecFallback(yyv113, false)
} }
} }
case "items": case "items":
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.Items = nil x.Items = nil
} else { } else {
yyv110 := &x.Items yyv115 := &x.Items
yym111 := z.DecBinary() yym116 := z.DecBinary()
_ = yym111 _ = yym116
if false { if false {
} else { } else {
h.decSlicePodDisruptionBudget((*[]PodDisruptionBudget)(yyv110), d) h.decSlicePodDisruptionBudget((*[]PodDisruptionBudget)(yyv115), d)
} }
} }
default: default:
z.DecStructFieldNotFound(-1, yys105) z.DecStructFieldNotFound(-1, yys110)
} // end switch yys105 } // end switch yys110
} // end for yyj105 } // end for yyj110
z.DecSendContainerState(codecSelfer_containerMapEnd1234) z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} }
...@@ -1285,16 +1333,16 @@ func (x *PodDisruptionBudgetList) codecDecodeSelfFromArray(l int, d *codec1978.D ...@@ -1285,16 +1333,16 @@ func (x *PodDisruptionBudgetList) codecDecodeSelfFromArray(l int, d *codec1978.D
var h codecSelfer1234 var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d) z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r _, _, _ = h, z, r
var yyj112 int var yyj117 int
var yyb112 bool var yyb117 bool
var yyhl112 bool = l >= 0 var yyhl117 bool = l >= 0
yyj112++ yyj117++
if yyhl112 { if yyhl117 {
yyb112 = yyj112 > l yyb117 = yyj117 > l
} else { } else {
yyb112 = r.CheckBreak() yyb117 = r.CheckBreak()
} }
if yyb112 { if yyb117 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
...@@ -1304,13 +1352,13 @@ func (x *PodDisruptionBudgetList) codecDecodeSelfFromArray(l int, d *codec1978.D ...@@ -1304,13 +1352,13 @@ func (x *PodDisruptionBudgetList) codecDecodeSelfFromArray(l int, d *codec1978.D
} else { } else {
x.Kind = string(r.DecodeString()) x.Kind = string(r.DecodeString())
} }
yyj112++ yyj117++
if yyhl112 { if yyhl117 {
yyb112 = yyj112 > l yyb117 = yyj117 > l
} else { } else {
yyb112 = r.CheckBreak() yyb117 = r.CheckBreak()
} }
if yyb112 { if yyb117 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
...@@ -1320,13 +1368,13 @@ func (x *PodDisruptionBudgetList) codecDecodeSelfFromArray(l int, d *codec1978.D ...@@ -1320,13 +1368,13 @@ func (x *PodDisruptionBudgetList) codecDecodeSelfFromArray(l int, d *codec1978.D
} else { } else {
x.APIVersion = string(r.DecodeString()) x.APIVersion = string(r.DecodeString())
} }
yyj112++ yyj117++
if yyhl112 { if yyhl117 {
yyb112 = yyj112 > l yyb117 = yyj117 > l
} else { } else {
yyb112 = r.CheckBreak() yyb117 = r.CheckBreak()
} }
if yyb112 { if yyb117 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
...@@ -1334,22 +1382,22 @@ func (x *PodDisruptionBudgetList) codecDecodeSelfFromArray(l int, d *codec1978.D ...@@ -1334,22 +1382,22 @@ func (x *PodDisruptionBudgetList) codecDecodeSelfFromArray(l int, d *codec1978.D
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{} x.ListMeta = pkg2_unversioned.ListMeta{}
} else { } else {
yyv115 := &x.ListMeta yyv120 := &x.ListMeta
yym116 := z.DecBinary() yym121 := z.DecBinary()
_ = yym116 _ = yym121
if false { if false {
} else if z.HasExtensions() && z.DecExt(yyv115) { } else if z.HasExtensions() && z.DecExt(yyv120) {
} else { } else {
z.DecFallback(yyv115, false) z.DecFallback(yyv120, false)
} }
} }
yyj112++ yyj117++
if yyhl112 { if yyhl117 {
yyb112 = yyj112 > l yyb117 = yyj117 > l
} else { } else {
yyb112 = r.CheckBreak() yyb117 = r.CheckBreak()
} }
if yyb112 { if yyb117 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
...@@ -1357,26 +1405,26 @@ func (x *PodDisruptionBudgetList) codecDecodeSelfFromArray(l int, d *codec1978.D ...@@ -1357,26 +1405,26 @@ func (x *PodDisruptionBudgetList) codecDecodeSelfFromArray(l int, d *codec1978.D
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.Items = nil x.Items = nil
} else { } else {
yyv117 := &x.Items yyv122 := &x.Items
yym118 := z.DecBinary() yym123 := z.DecBinary()
_ = yym118 _ = yym123
if false { if false {
} else { } else {
h.decSlicePodDisruptionBudget((*[]PodDisruptionBudget)(yyv117), d) h.decSlicePodDisruptionBudget((*[]PodDisruptionBudget)(yyv122), d)
} }
} }
for { for {
yyj112++ yyj117++
if yyhl112 { if yyhl117 {
yyb112 = yyj112 > l yyb117 = yyj117 > l
} else { } else {
yyb112 = r.CheckBreak() yyb117 = r.CheckBreak()
} }
if yyb112 { if yyb117 {
break break
} }
z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj112-1, "") z.DecStructFieldNotFound(yyj117-1, "")
} }
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} }
...@@ -1388,38 +1436,38 @@ func (x *Eviction) CodecEncodeSelf(e *codec1978.Encoder) { ...@@ -1388,38 +1436,38 @@ func (x *Eviction) CodecEncodeSelf(e *codec1978.Encoder) {
if x == nil { if x == nil {
r.EncodeNil() r.EncodeNil()
} else { } else {
yym119 := z.EncBinary() yym124 := z.EncBinary()
_ = yym119 _ = yym124
if false { if false {
} else if z.HasExtensions() && z.EncExt(x) { } else if z.HasExtensions() && z.EncExt(x) {
} else { } else {
yysep120 := !z.EncBinary() yysep125 := !z.EncBinary()
yy2arr120 := z.EncBasicHandle().StructToArray yy2arr125 := z.EncBasicHandle().StructToArray
var yyq120 [4]bool var yyq125 [4]bool
_, _, _ = yysep120, yyq120, yy2arr120 _, _, _ = yysep125, yyq125, yy2arr125
const yyr120 bool = false const yyr125 bool = false
yyq120[0] = x.Kind != "" yyq125[0] = x.Kind != ""
yyq120[1] = x.APIVersion != "" yyq125[1] = x.APIVersion != ""
yyq120[2] = true yyq125[2] = true
yyq120[3] = x.DeleteOptions != nil yyq125[3] = x.DeleteOptions != nil
var yynn120 int var yynn125 int
if yyr120 || yy2arr120 { if yyr125 || yy2arr125 {
r.EncodeArrayStart(4) r.EncodeArrayStart(4)
} else { } else {
yynn120 = 0 yynn125 = 0
for _, b := range yyq120 { for _, b := range yyq125 {
if b { if b {
yynn120++ yynn125++
} }
} }
r.EncodeMapStart(yynn120) r.EncodeMapStart(yynn125)
yynn120 = 0 yynn125 = 0
} }
if yyr120 || yy2arr120 { if yyr125 || yy2arr125 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234) z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq120[0] { if yyq125[0] {
yym122 := z.EncBinary() yym127 := z.EncBinary()
_ = yym122 _ = yym127
if false { if false {
} else { } else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
...@@ -1428,23 +1476,23 @@ func (x *Eviction) CodecEncodeSelf(e *codec1978.Encoder) { ...@@ -1428,23 +1476,23 @@ func (x *Eviction) CodecEncodeSelf(e *codec1978.Encoder) {
r.EncodeString(codecSelferC_UTF81234, "") r.EncodeString(codecSelferC_UTF81234, "")
} }
} else { } else {
if yyq120[0] { if yyq125[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234) z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind")) r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234) z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym123 := z.EncBinary() yym128 := z.EncBinary()
_ = yym123 _ = yym128
if false { if false {
} else { } else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
} }
} }
} }
if yyr120 || yy2arr120 { if yyr125 || yy2arr125 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234) z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq120[1] { if yyq125[1] {
yym125 := z.EncBinary() yym130 := z.EncBinary()
_ = yym125 _ = yym130
if false { if false {
} else { } else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
...@@ -1453,38 +1501,38 @@ func (x *Eviction) CodecEncodeSelf(e *codec1978.Encoder) { ...@@ -1453,38 +1501,38 @@ func (x *Eviction) CodecEncodeSelf(e *codec1978.Encoder) {
r.EncodeString(codecSelferC_UTF81234, "") r.EncodeString(codecSelferC_UTF81234, "")
} }
} else { } else {
if yyq120[1] { if yyq125[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234) z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234) z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym126 := z.EncBinary() yym131 := z.EncBinary()
_ = yym126 _ = yym131
if false { if false {
} else { } else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
} }
} }
} }
if yyr120 || yy2arr120 { if yyr125 || yy2arr125 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234) z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq120[2] { if yyq125[2] {
yy128 := &x.ObjectMeta yy133 := &x.ObjectMeta
yy128.CodecEncodeSelf(e) yy133.CodecEncodeSelf(e)
} else { } else {
r.EncodeNil() r.EncodeNil()
} }
} else { } else {
if yyq120[2] { if yyq125[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234) z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata")) r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234) z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy129 := &x.ObjectMeta yy134 := &x.ObjectMeta
yy129.CodecEncodeSelf(e) yy134.CodecEncodeSelf(e)
} }
} }
if yyr120 || yy2arr120 { if yyr125 || yy2arr125 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234) z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq120[3] { if yyq125[3] {
if x.DeleteOptions == nil { if x.DeleteOptions == nil {
r.EncodeNil() r.EncodeNil()
} else { } else {
...@@ -1494,7 +1542,7 @@ func (x *Eviction) CodecEncodeSelf(e *codec1978.Encoder) { ...@@ -1494,7 +1542,7 @@ func (x *Eviction) CodecEncodeSelf(e *codec1978.Encoder) {
r.EncodeNil() r.EncodeNil()
} }
} else { } else {
if yyq120[3] { if yyq125[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234) z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("deleteOptions")) r.EncodeString(codecSelferC_UTF81234, string("deleteOptions"))
z.EncSendContainerState(codecSelfer_containerMapValue1234) z.EncSendContainerState(codecSelfer_containerMapValue1234)
...@@ -1505,7 +1553,7 @@ func (x *Eviction) CodecEncodeSelf(e *codec1978.Encoder) { ...@@ -1505,7 +1553,7 @@ func (x *Eviction) CodecEncodeSelf(e *codec1978.Encoder) {
} }
} }
} }
if yyr120 || yy2arr120 { if yyr125 || yy2arr125 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234) z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else { } else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234) z.EncSendContainerState(codecSelfer_containerMapEnd1234)
...@@ -1518,25 +1566,25 @@ func (x *Eviction) CodecDecodeSelf(d *codec1978.Decoder) { ...@@ -1518,25 +1566,25 @@ func (x *Eviction) CodecDecodeSelf(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
yym131 := z.DecBinary() yym136 := z.DecBinary()
_ = yym131 _ = yym136
if false { if false {
} else if z.HasExtensions() && z.DecExt(x) { } else if z.HasExtensions() && z.DecExt(x) {
} else { } else {
yyct132 := r.ContainerType() yyct137 := r.ContainerType()
if yyct132 == codecSelferValueTypeMap1234 { if yyct137 == codecSelferValueTypeMap1234 {
yyl132 := r.ReadMapStart() yyl137 := r.ReadMapStart()
if yyl132 == 0 { if yyl137 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234) z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else { } else {
x.codecDecodeSelfFromMap(yyl132, d) x.codecDecodeSelfFromMap(yyl137, d)
} }
} else if yyct132 == codecSelferValueTypeArray1234 { } else if yyct137 == codecSelferValueTypeArray1234 {
yyl132 := r.ReadArrayStart() yyl137 := r.ReadArrayStart()
if yyl132 == 0 { if yyl137 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else { } else {
x.codecDecodeSelfFromArray(yyl132, d) x.codecDecodeSelfFromArray(yyl137, d)
} }
} else { } else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
...@@ -1548,12 +1596,12 @@ func (x *Eviction) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { ...@@ -1548,12 +1596,12 @@ func (x *Eviction) codecDecodeSelfFromMap(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 yys133Slc = z.DecScratchBuffer() // default slice to decode into var yys138Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys133Slc _ = yys138Slc
var yyhl133 bool = l >= 0 var yyhl138 bool = l >= 0
for yyj133 := 0; ; yyj133++ { for yyj138 := 0; ; yyj138++ {
if yyhl133 { if yyhl138 {
if yyj133 >= l { if yyj138 >= l {
break break
} }
} else { } else {
...@@ -1562,10 +1610,10 @@ func (x *Eviction) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { ...@@ -1562,10 +1610,10 @@ func (x *Eviction) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
} }
} }
z.DecSendContainerState(codecSelfer_containerMapKey1234) z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys133Slc = r.DecodeBytes(yys133Slc, true, true) yys138Slc = r.DecodeBytes(yys138Slc, true, true)
yys133 := string(yys133Slc) yys138 := string(yys138Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234) z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys133 { switch yys138 {
case "kind": case "kind":
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.Kind = "" x.Kind = ""
...@@ -1582,8 +1630,8 @@ func (x *Eviction) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { ...@@ -1582,8 +1630,8 @@ func (x *Eviction) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.ObjectMeta = pkg3_v1.ObjectMeta{} x.ObjectMeta = pkg3_v1.ObjectMeta{}
} else { } else {
yyv136 := &x.ObjectMeta yyv141 := &x.ObjectMeta
yyv136.CodecDecodeSelf(d) yyv141.CodecDecodeSelf(d)
} }
case "deleteOptions": case "deleteOptions":
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
...@@ -1597,9 +1645,9 @@ func (x *Eviction) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { ...@@ -1597,9 +1645,9 @@ func (x *Eviction) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
x.DeleteOptions.CodecDecodeSelf(d) x.DeleteOptions.CodecDecodeSelf(d)
} }
default: default:
z.DecStructFieldNotFound(-1, yys133) z.DecStructFieldNotFound(-1, yys138)
} // end switch yys133 } // end switch yys138
} // end for yyj133 } // end for yyj138
z.DecSendContainerState(codecSelfer_containerMapEnd1234) z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} }
...@@ -1607,16 +1655,16 @@ func (x *Eviction) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { ...@@ -1607,16 +1655,16 @@ func (x *Eviction) 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 yyj138 int var yyj143 int
var yyb138 bool var yyb143 bool
var yyhl138 bool = l >= 0 var yyhl143 bool = l >= 0
yyj138++ yyj143++
if yyhl138 { if yyhl143 {
yyb138 = yyj138 > l yyb143 = yyj143 > l
} else { } else {
yyb138 = r.CheckBreak() yyb143 = r.CheckBreak()
} }
if yyb138 { if yyb143 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
...@@ -1626,13 +1674,13 @@ func (x *Eviction) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { ...@@ -1626,13 +1674,13 @@ func (x *Eviction) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
} else { } else {
x.Kind = string(r.DecodeString()) x.Kind = string(r.DecodeString())
} }
yyj138++ yyj143++
if yyhl138 { if yyhl143 {
yyb138 = yyj138 > l yyb143 = yyj143 > l
} else { } else {
yyb138 = r.CheckBreak() yyb143 = r.CheckBreak()
} }
if yyb138 { if yyb143 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
...@@ -1642,13 +1690,13 @@ func (x *Eviction) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { ...@@ -1642,13 +1690,13 @@ func (x *Eviction) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
} else { } else {
x.APIVersion = string(r.DecodeString()) x.APIVersion = string(r.DecodeString())
} }
yyj138++ yyj143++
if yyhl138 { if yyhl143 {
yyb138 = yyj138 > l yyb143 = yyj143 > l
} else { } else {
yyb138 = r.CheckBreak() yyb143 = r.CheckBreak()
} }
if yyb138 { if yyb143 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
...@@ -1656,16 +1704,16 @@ func (x *Eviction) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { ...@@ -1656,16 +1704,16 @@ func (x *Eviction) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
x.ObjectMeta = pkg3_v1.ObjectMeta{} x.ObjectMeta = pkg3_v1.ObjectMeta{}
} else { } else {
yyv141 := &x.ObjectMeta yyv146 := &x.ObjectMeta
yyv141.CodecDecodeSelf(d) yyv146.CodecDecodeSelf(d)
} }
yyj138++ yyj143++
if yyhl138 { if yyhl143 {
yyb138 = yyj138 > l yyb143 = yyj143 > l
} else { } else {
yyb138 = r.CheckBreak() yyb143 = r.CheckBreak()
} }
if yyb138 { if yyb143 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return return
} }
...@@ -1681,17 +1729,17 @@ func (x *Eviction) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { ...@@ -1681,17 +1729,17 @@ func (x *Eviction) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
x.DeleteOptions.CodecDecodeSelf(d) x.DeleteOptions.CodecDecodeSelf(d)
} }
for { for {
yyj138++ yyj143++
if yyhl138 { if yyhl143 {
yyb138 = yyj138 > l yyb143 = yyj143 > l
} else { } else {
yyb138 = r.CheckBreak() yyb143 = r.CheckBreak()
} }
if yyb138 { if yyb143 {
break break
} }
z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj138-1, "") z.DecStructFieldNotFound(yyj143-1, "")
} }
z.DecSendContainerState(codecSelfer_containerArrayEnd1234) z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} }
...@@ -1701,26 +1749,26 @@ func (x codecSelfer1234) encMapstringunversioned_Time(v map[string]pkg2_unversio ...@@ -1701,26 +1749,26 @@ func (x codecSelfer1234) encMapstringunversioned_Time(v map[string]pkg2_unversio
z, r := codec1978.GenHelperEncoder(e) z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r _, _, _ = h, z, r
r.EncodeMapStart(len(v)) r.EncodeMapStart(len(v))
for yyk143, yyv143 := range v { for yyk148, yyv148 := range v {
z.EncSendContainerState(codecSelfer_containerMapKey1234) z.EncSendContainerState(codecSelfer_containerMapKey1234)
yym144 := z.EncBinary() yym149 := z.EncBinary()
_ = yym144 _ = yym149
if false { if false {
} else { } else {
r.EncodeString(codecSelferC_UTF81234, string(yyk143)) r.EncodeString(codecSelferC_UTF81234, string(yyk148))
} }
z.EncSendContainerState(codecSelfer_containerMapValue1234) z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy145 := &yyv143 yy150 := &yyv148
yym146 := z.EncBinary() yym151 := z.EncBinary()
_ = yym146 _ = yym151
if false { if false {
} else if z.HasExtensions() && z.EncExt(yy145) { } else if z.HasExtensions() && z.EncExt(yy150) {
} else if yym146 { } else if yym151 {
z.EncBinaryMarshal(yy145) z.EncBinaryMarshal(yy150)
} else if !yym146 && z.IsJSONHandle() { } else if !yym151 && z.IsJSONHandle() {
z.EncJSONMarshal(yy145) z.EncJSONMarshal(yy150)
} else { } else {
z.EncFallback(yy145) z.EncFallback(yy150)
} }
} }
z.EncSendContainerState(codecSelfer_containerMapEnd1234) z.EncSendContainerState(codecSelfer_containerMapEnd1234)
...@@ -1731,90 +1779,90 @@ func (x codecSelfer1234) decMapstringunversioned_Time(v *map[string]pkg2_unversi ...@@ -1731,90 +1779,90 @@ func (x codecSelfer1234) decMapstringunversioned_Time(v *map[string]pkg2_unversi
z, r := codec1978.GenHelperDecoder(d) z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r _, _, _ = h, z, r
yyv147 := *v yyv152 := *v
yyl147 := r.ReadMapStart() yyl152 := r.ReadMapStart()
yybh147 := z.DecBasicHandle() yybh152 := z.DecBasicHandle()
if yyv147 == nil { if yyv152 == nil {
yyrl147, _ := z.DecInferLen(yyl147, yybh147.MaxInitLen, 40) yyrl152, _ := z.DecInferLen(yyl152, yybh152.MaxInitLen, 40)
yyv147 = make(map[string]pkg2_unversioned.Time, yyrl147) yyv152 = make(map[string]pkg2_unversioned.Time, yyrl152)
*v = yyv147 *v = yyv152
} }
var yymk147 string var yymk152 string
var yymv147 pkg2_unversioned.Time var yymv152 pkg2_unversioned.Time
var yymg147 bool var yymg152 bool
if yybh147.MapValueReset { if yybh152.MapValueReset {
yymg147 = true yymg152 = true
} }
if yyl147 > 0 { if yyl152 > 0 {
for yyj147 := 0; yyj147 < yyl147; yyj147++ { for yyj152 := 0; yyj152 < yyl152; yyj152++ {
z.DecSendContainerState(codecSelfer_containerMapKey1234) z.DecSendContainerState(codecSelfer_containerMapKey1234)
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
yymk147 = "" yymk152 = ""
} else { } else {
yymk147 = string(r.DecodeString()) yymk152 = string(r.DecodeString())
} }
if yymg147 { if yymg152 {
yymv147 = yyv147[yymk147] yymv152 = yyv152[yymk152]
} else { } else {
yymv147 = pkg2_unversioned.Time{} yymv152 = pkg2_unversioned.Time{}
} }
z.DecSendContainerState(codecSelfer_containerMapValue1234) z.DecSendContainerState(codecSelfer_containerMapValue1234)
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
yymv147 = pkg2_unversioned.Time{} yymv152 = pkg2_unversioned.Time{}
} else { } else {
yyv149 := &yymv147 yyv154 := &yymv152
yym150 := z.DecBinary() yym155 := z.DecBinary()
_ = yym150 _ = yym155
if false { if false {
} else if z.HasExtensions() && z.DecExt(yyv149) { } else if z.HasExtensions() && z.DecExt(yyv154) {
} else if yym150 { } else if yym155 {
z.DecBinaryUnmarshal(yyv149) z.DecBinaryUnmarshal(yyv154)
} else if !yym150 && z.IsJSONHandle() { } else if !yym155 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv149) z.DecJSONUnmarshal(yyv154)
} else { } else {
z.DecFallback(yyv149, false) z.DecFallback(yyv154, false)
} }
} }
if yyv147 != nil { if yyv152 != nil {
yyv147[yymk147] = yymv147 yyv152[yymk152] = yymv152
} }
} }
} else if yyl147 < 0 { } else if yyl152 < 0 {
for yyj147 := 0; !r.CheckBreak(); yyj147++ { for yyj152 := 0; !r.CheckBreak(); yyj152++ {
z.DecSendContainerState(codecSelfer_containerMapKey1234) z.DecSendContainerState(codecSelfer_containerMapKey1234)
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
yymk147 = "" yymk152 = ""
} else { } else {
yymk147 = string(r.DecodeString()) yymk152 = string(r.DecodeString())
} }
if yymg147 { if yymg152 {
yymv147 = yyv147[yymk147] yymv152 = yyv152[yymk152]
} else { } else {
yymv147 = pkg2_unversioned.Time{} yymv152 = pkg2_unversioned.Time{}
} }
z.DecSendContainerState(codecSelfer_containerMapValue1234) z.DecSendContainerState(codecSelfer_containerMapValue1234)
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
yymv147 = pkg2_unversioned.Time{} yymv152 = pkg2_unversioned.Time{}
} else { } else {
yyv152 := &yymv147 yyv157 := &yymv152
yym153 := z.DecBinary() yym158 := z.DecBinary()
_ = yym153 _ = yym158
if false { if false {
} else if z.HasExtensions() && z.DecExt(yyv152) { } else if z.HasExtensions() && z.DecExt(yyv157) {
} else if yym153 { } else if yym158 {
z.DecBinaryUnmarshal(yyv152) z.DecBinaryUnmarshal(yyv157)
} else if !yym153 && z.IsJSONHandle() { } else if !yym158 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv152) z.DecJSONUnmarshal(yyv157)
} else { } else {
z.DecFallback(yyv152, false) z.DecFallback(yyv157, false)
} }
} }
if yyv147 != nil { if yyv152 != nil {
yyv147[yymk147] = yymv147 yyv152[yymk152] = yymv152
} }
} }
} // else len==0: TODO: Should we clear map entries? } // else len==0: TODO: Should we clear map entries?
...@@ -1826,10 +1874,10 @@ func (x codecSelfer1234) encSlicePodDisruptionBudget(v []PodDisruptionBudget, e ...@@ -1826,10 +1874,10 @@ func (x codecSelfer1234) encSlicePodDisruptionBudget(v []PodDisruptionBudget, e
z, r := codec1978.GenHelperEncoder(e) z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r _, _, _ = h, z, r
r.EncodeArrayStart(len(v)) r.EncodeArrayStart(len(v))
for _, yyv154 := range v { for _, yyv159 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234) z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy155 := &yyv154 yy160 := &yyv159
yy155.CodecEncodeSelf(e) yy160.CodecEncodeSelf(e)
} }
z.EncSendContainerState(codecSelfer_containerArrayEnd1234) z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} }
...@@ -1839,83 +1887,83 @@ func (x codecSelfer1234) decSlicePodDisruptionBudget(v *[]PodDisruptionBudget, d ...@@ -1839,83 +1887,83 @@ func (x codecSelfer1234) decSlicePodDisruptionBudget(v *[]PodDisruptionBudget, d
z, r := codec1978.GenHelperDecoder(d) z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r _, _, _ = h, z, r
yyv156 := *v yyv161 := *v
yyh156, yyl156 := z.DecSliceHelperStart() yyh161, yyl161 := z.DecSliceHelperStart()
var yyc156 bool var yyc161 bool
if yyl156 == 0 { if yyl161 == 0 {
if yyv156 == nil { if yyv161 == nil {
yyv156 = []PodDisruptionBudget{} yyv161 = []PodDisruptionBudget{}
yyc156 = true yyc161 = true
} else if len(yyv156) != 0 { } else if len(yyv161) != 0 {
yyv156 = yyv156[:0] yyv161 = yyv161[:0]
yyc156 = true yyc161 = true
} }
} else if yyl156 > 0 { } else if yyl161 > 0 {
var yyrr156, yyrl156 int var yyrr161, yyrl161 int
var yyrt156 bool var yyrt161 bool
if yyl156 > cap(yyv156) { if yyl161 > cap(yyv161) {
yyrg156 := len(yyv156) > 0 yyrg161 := len(yyv161) > 0
yyv2156 := yyv156 yyv2161 := yyv161
yyrl156, yyrt156 = z.DecInferLen(yyl156, z.DecBasicHandle().MaxInitLen, 320) yyrl161, yyrt161 = z.DecInferLen(yyl161, z.DecBasicHandle().MaxInitLen, 328)
if yyrt156 { if yyrt161 {
if yyrl156 <= cap(yyv156) { if yyrl161 <= cap(yyv161) {
yyv156 = yyv156[:yyrl156] yyv161 = yyv161[:yyrl161]
} else { } else {
yyv156 = make([]PodDisruptionBudget, yyrl156) yyv161 = make([]PodDisruptionBudget, yyrl161)
} }
} else { } else {
yyv156 = make([]PodDisruptionBudget, yyrl156) yyv161 = make([]PodDisruptionBudget, yyrl161)
} }
yyc156 = true yyc161 = true
yyrr156 = len(yyv156) yyrr161 = len(yyv161)
if yyrg156 { if yyrg161 {
copy(yyv156, yyv2156) copy(yyv161, yyv2161)
} }
} else if yyl156 != len(yyv156) { } else if yyl161 != len(yyv161) {
yyv156 = yyv156[:yyl156] yyv161 = yyv161[:yyl161]
yyc156 = true yyc161 = true
} }
yyj156 := 0 yyj161 := 0
for ; yyj156 < yyrr156; yyj156++ { for ; yyj161 < yyrr161; yyj161++ {
yyh156.ElemContainerState(yyj156) yyh161.ElemContainerState(yyj161)
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
yyv156[yyj156] = PodDisruptionBudget{} yyv161[yyj161] = PodDisruptionBudget{}
} else { } else {
yyv157 := &yyv156[yyj156] yyv162 := &yyv161[yyj161]
yyv157.CodecDecodeSelf(d) yyv162.CodecDecodeSelf(d)
} }
} }
if yyrt156 { if yyrt161 {
for ; yyj156 < yyl156; yyj156++ { for ; yyj161 < yyl161; yyj161++ {
yyv156 = append(yyv156, PodDisruptionBudget{}) yyv161 = append(yyv161, PodDisruptionBudget{})
yyh156.ElemContainerState(yyj156) yyh161.ElemContainerState(yyj161)
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
yyv156[yyj156] = PodDisruptionBudget{} yyv161[yyj161] = PodDisruptionBudget{}
} else { } else {
yyv158 := &yyv156[yyj156] yyv163 := &yyv161[yyj161]
yyv158.CodecDecodeSelf(d) yyv163.CodecDecodeSelf(d)
} }
} }
} }
} else { } else {
yyj156 := 0 yyj161 := 0
for ; !r.CheckBreak(); yyj156++ { for ; !r.CheckBreak(); yyj161++ {
if yyj156 >= len(yyv156) { if yyj161 >= len(yyv161) {
yyv156 = append(yyv156, PodDisruptionBudget{}) // var yyz156 PodDisruptionBudget yyv161 = append(yyv161, PodDisruptionBudget{}) // var yyz161 PodDisruptionBudget
yyc156 = true yyc161 = true
} }
yyh156.ElemContainerState(yyj156) yyh161.ElemContainerState(yyj161)
if yyj156 < len(yyv156) { if yyj161 < len(yyv161) {
if r.TryDecodeAsNil() { if r.TryDecodeAsNil() {
yyv156[yyj156] = PodDisruptionBudget{} yyv161[yyj161] = PodDisruptionBudget{}
} else { } else {
yyv159 := &yyv156[yyj156] yyv164 := &yyv161[yyj161]
yyv159.CodecDecodeSelf(d) yyv164.CodecDecodeSelf(d)
} }
} else { } else {
...@@ -1923,16 +1971,16 @@ func (x codecSelfer1234) decSlicePodDisruptionBudget(v *[]PodDisruptionBudget, d ...@@ -1923,16 +1971,16 @@ func (x codecSelfer1234) decSlicePodDisruptionBudget(v *[]PodDisruptionBudget, d
} }
} }
if yyj156 < len(yyv156) { if yyj161 < len(yyv161) {
yyv156 = yyv156[:yyj156] yyv161 = yyv161[:yyj161]
yyc156 = true yyc161 = true
} else if yyj156 == 0 && yyv156 == nil { } else if yyj161 == 0 && yyv161 == nil {
yyv156 = []PodDisruptionBudget{} yyv161 = []PodDisruptionBudget{}
yyc156 = true yyc161 = true
} }
} }
yyh156.End() yyh161.End()
if yyc156 { if yyc161 {
*v = yyv156 *v = yyv161
} }
} }
...@@ -67,11 +67,12 @@ func (PodDisruptionBudgetSpec) SwaggerDoc() map[string]string { ...@@ -67,11 +67,12 @@ func (PodDisruptionBudgetSpec) SwaggerDoc() map[string]string {
var map_PodDisruptionBudgetStatus = map[string]string{ var map_PodDisruptionBudgetStatus = map[string]string{
"": "PodDisruptionBudgetStatus represents information about the status of a PodDisruptionBudget. Status may trail the actual state of a system.", "": "PodDisruptionBudgetStatus represents information about the status of a PodDisruptionBudget. Status may trail the actual state of a system.",
"observedGeneration": "Most recent generation observed when updating this PDB status. PodDisruptionsAllowed and other status informatio is valid only if observedGeneration equals to PDB's object generation.",
"disruptedPods": "DisruptedPods contains information about pods whose eviction was processed by the API server eviction subresource handler but has not yet been observed by the PodDisruptionBudget controller. A pod will be in this map from the time when the API server processed the eviction request to the time when the pod is seen by PDB controller as having been marked for deletion (or after a timeout). The key in the map is the name of the pod and the value is the time when the API server processed the eviction request. If the deletion didn't occur and a pod is still there it will be removed from the list automatically by PodDisruptionBudget controller after some time. If everything goes smooth this map should be empty for the most of the time. Large number of entries in the map may indicate problems with pod deletions.",
"disruptionsAllowed": "Number of pod disruptions that are currently allowed.", "disruptionsAllowed": "Number of pod disruptions that are currently allowed.",
"currentHealthy": "current number of healthy pods", "currentHealthy": "current number of healthy pods",
"desiredHealthy": "minimum desired number of healthy pods", "desiredHealthy": "minimum desired number of healthy pods",
"expectedPods": "total number of pods counted by this disruption budget", "expectedPods": "total number of pods counted by this disruption budget",
"disruptedPods": "DisruptedPods contains information about pods whose eviction was processed by the API server eviction subresource handler but has not yet been observed by the PodDisruptionBudget controller. A pod will be in this map from the time when the API server processed the eviction request to the time when the pod is seen by PDB controller as having been marked for deletion (or after a timeout). The key in the map is the name of the pod and the value is the time when the API server processed the eviction request. If the deletion didn't occur and a pod is still there it will be removed from the list automatically by PodDisruptionBudget controller after some time. If everything goes smooth this map should be empty for the most of the time. Large number of entries in the map may indicate problems with pod deletions.",
} }
func (PodDisruptionBudgetStatus) SwaggerDoc() map[string]string { func (PodDisruptionBudgetStatus) SwaggerDoc() map[string]string {
......
...@@ -154,11 +154,12 @@ func Convert_policy_PodDisruptionBudgetSpec_To_v1beta1_PodDisruptionBudgetSpec(i ...@@ -154,11 +154,12 @@ func Convert_policy_PodDisruptionBudgetSpec_To_v1beta1_PodDisruptionBudgetSpec(i
} }
func autoConvert_v1beta1_PodDisruptionBudgetStatus_To_policy_PodDisruptionBudgetStatus(in *PodDisruptionBudgetStatus, out *policy.PodDisruptionBudgetStatus, s conversion.Scope) error { func autoConvert_v1beta1_PodDisruptionBudgetStatus_To_policy_PodDisruptionBudgetStatus(in *PodDisruptionBudgetStatus, out *policy.PodDisruptionBudgetStatus, s conversion.Scope) error {
out.ObservedGeneration = in.ObservedGeneration
out.DisruptedPods = *(*map[string]unversioned.Time)(unsafe.Pointer(&in.DisruptedPods))
out.PodDisruptionsAllowed = in.PodDisruptionsAllowed out.PodDisruptionsAllowed = in.PodDisruptionsAllowed
out.CurrentHealthy = in.CurrentHealthy out.CurrentHealthy = in.CurrentHealthy
out.DesiredHealthy = in.DesiredHealthy out.DesiredHealthy = in.DesiredHealthy
out.ExpectedPods = in.ExpectedPods out.ExpectedPods = in.ExpectedPods
out.DisruptedPods = *(*map[string]unversioned.Time)(unsafe.Pointer(&in.DisruptedPods))
return nil return nil
} }
...@@ -167,11 +168,12 @@ func Convert_v1beta1_PodDisruptionBudgetStatus_To_policy_PodDisruptionBudgetStat ...@@ -167,11 +168,12 @@ func Convert_v1beta1_PodDisruptionBudgetStatus_To_policy_PodDisruptionBudgetStat
} }
func autoConvert_policy_PodDisruptionBudgetStatus_To_v1beta1_PodDisruptionBudgetStatus(in *policy.PodDisruptionBudgetStatus, out *PodDisruptionBudgetStatus, s conversion.Scope) error { func autoConvert_policy_PodDisruptionBudgetStatus_To_v1beta1_PodDisruptionBudgetStatus(in *policy.PodDisruptionBudgetStatus, out *PodDisruptionBudgetStatus, s conversion.Scope) error {
out.ObservedGeneration = in.ObservedGeneration
out.DisruptedPods = *(*map[string]unversioned.Time)(unsafe.Pointer(&in.DisruptedPods))
out.PodDisruptionsAllowed = in.PodDisruptionsAllowed out.PodDisruptionsAllowed = in.PodDisruptionsAllowed
out.CurrentHealthy = in.CurrentHealthy out.CurrentHealthy = in.CurrentHealthy
out.DesiredHealthy = in.DesiredHealthy out.DesiredHealthy = in.DesiredHealthy
out.ExpectedPods = in.ExpectedPods out.ExpectedPods = in.ExpectedPods
out.DisruptedPods = *(*map[string]unversioned.Time)(unsafe.Pointer(&in.DisruptedPods))
return nil return nil
} }
......
...@@ -126,10 +126,7 @@ func DeepCopy_v1beta1_PodDisruptionBudgetStatus(in interface{}, out interface{}, ...@@ -126,10 +126,7 @@ func DeepCopy_v1beta1_PodDisruptionBudgetStatus(in interface{}, out interface{},
{ {
in := in.(*PodDisruptionBudgetStatus) in := in.(*PodDisruptionBudgetStatus)
out := out.(*PodDisruptionBudgetStatus) out := out.(*PodDisruptionBudgetStatus)
out.PodDisruptionsAllowed = in.PodDisruptionsAllowed out.ObservedGeneration = in.ObservedGeneration
out.CurrentHealthy = in.CurrentHealthy
out.DesiredHealthy = in.DesiredHealthy
out.ExpectedPods = in.ExpectedPods
if in.DisruptedPods != nil { if in.DisruptedPods != nil {
in, out := &in.DisruptedPods, &out.DisruptedPods in, out := &in.DisruptedPods, &out.DisruptedPods
*out = make(map[string]unversioned.Time) *out = make(map[string]unversioned.Time)
...@@ -139,6 +136,10 @@ func DeepCopy_v1beta1_PodDisruptionBudgetStatus(in interface{}, out interface{}, ...@@ -139,6 +136,10 @@ func DeepCopy_v1beta1_PodDisruptionBudgetStatus(in interface{}, out interface{},
} else { } else {
out.DisruptedPods = nil out.DisruptedPods = nil
} }
out.PodDisruptionsAllowed = in.PodDisruptionsAllowed
out.CurrentHealthy = in.CurrentHealthy
out.DesiredHealthy = in.DesiredHealthy
out.ExpectedPods = in.ExpectedPods
return nil return nil
} }
} }
...@@ -126,10 +126,7 @@ func DeepCopy_policy_PodDisruptionBudgetStatus(in interface{}, out interface{}, ...@@ -126,10 +126,7 @@ func DeepCopy_policy_PodDisruptionBudgetStatus(in interface{}, out interface{},
{ {
in := in.(*PodDisruptionBudgetStatus) in := in.(*PodDisruptionBudgetStatus)
out := out.(*PodDisruptionBudgetStatus) out := out.(*PodDisruptionBudgetStatus)
out.PodDisruptionsAllowed = in.PodDisruptionsAllowed out.ObservedGeneration = in.ObservedGeneration
out.CurrentHealthy = in.CurrentHealthy
out.DesiredHealthy = in.DesiredHealthy
out.ExpectedPods = in.ExpectedPods
if in.DisruptedPods != nil { if in.DisruptedPods != nil {
in, out := &in.DisruptedPods, &out.DisruptedPods in, out := &in.DisruptedPods, &out.DisruptedPods
*out = make(map[string]unversioned.Time) *out = make(map[string]unversioned.Time)
...@@ -139,6 +136,10 @@ func DeepCopy_policy_PodDisruptionBudgetStatus(in interface{}, out interface{}, ...@@ -139,6 +136,10 @@ func DeepCopy_policy_PodDisruptionBudgetStatus(in interface{}, out interface{},
} else { } else {
out.DisruptedPods = nil out.DisruptedPods = nil
} }
out.PodDisruptionsAllowed = in.PodDisruptionsAllowed
out.CurrentHealthy = in.CurrentHealthy
out.DesiredHealthy = in.DesiredHealthy
out.ExpectedPods = in.ExpectedPods
return nil return nil
} }
} }
...@@ -5212,6 +5212,26 @@ var OpenAPIDefinitions *common.OpenAPIDefinitions = &common.OpenAPIDefinitions{ ...@@ -5212,6 +5212,26 @@ var OpenAPIDefinitions *common.OpenAPIDefinitions = &common.OpenAPIDefinitions{
SchemaProps: spec.SchemaProps{ SchemaProps: spec.SchemaProps{
Description: "PodDisruptionBudgetStatus represents information about the status of a PodDisruptionBudget. Status may trail the actual state of a system.", Description: "PodDisruptionBudgetStatus represents information about the status of a PodDisruptionBudget. Status may trail the actual state of a system.",
Properties: map[string]spec.Schema{ Properties: map[string]spec.Schema{
"observedGeneration": {
SchemaProps: spec.SchemaProps{
Description: "Most recent generation observed when updating this PDB status. PodDisruptionsAllowed and other status informatio is valid only if observedGeneration equals to PDB's object generation.",
Type: []string{"integer"},
Format: "int64",
},
},
"disruptedPods": {
SchemaProps: spec.SchemaProps{
Description: "DisruptedPods contains information about pods whose eviction was processed by the API server eviction subresource handler but has not yet been observed by the PodDisruptionBudget controller. A pod will be in this map from the time when the API server processed the eviction request to the time when the pod is seen by PDB controller as having been marked for deletion (or after a timeout). The key in the map is the name of the pod and the value is the time when the API server processed the eviction request. If the deletion didn't occur and a pod is still there it will be removed from the list automatically by PodDisruptionBudget controller after some time. If everything goes smooth this map should be empty for the most of the time. Large number of entries in the map may indicate problems with pod deletions.",
Type: []string{"object"},
AdditionalProperties: &spec.SchemaOrBool{
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Ref: spec.MustCreateRef("#/definitions/unversioned.Time"),
},
},
},
},
},
"disruptionsAllowed": { "disruptionsAllowed": {
SchemaProps: spec.SchemaProps{ SchemaProps: spec.SchemaProps{
Description: "Number of pod disruptions that are currently allowed.", Description: "Number of pod disruptions that are currently allowed.",
...@@ -5240,21 +5260,8 @@ var OpenAPIDefinitions *common.OpenAPIDefinitions = &common.OpenAPIDefinitions{ ...@@ -5240,21 +5260,8 @@ var OpenAPIDefinitions *common.OpenAPIDefinitions = &common.OpenAPIDefinitions{
Format: "int32", Format: "int32",
}, },
}, },
"disruptedPods": {
SchemaProps: spec.SchemaProps{
Description: "DisruptedPods contains information about pods whose eviction was processed by the API server eviction subresource handler but has not yet been observed by the PodDisruptionBudget controller. A pod will be in this map from the time when the API server processed the eviction request to the time when the pod is seen by PDB controller as having been marked for deletion (or after a timeout). The key in the map is the name of the pod and the value is the time when the API server processed the eviction request. If the deletion didn't occur and a pod is still there it will be removed from the list automatically by PodDisruptionBudget controller after some time. If everything goes smooth this map should be empty for the most of the time. Large number of entries in the map may indicate problems with pod deletions.",
Type: []string{"object"},
AdditionalProperties: &spec.SchemaOrBool{
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Ref: spec.MustCreateRef("#/definitions/unversioned.Time"),
},
},
},
},
},
}, },
Required: []string{"disruptionsAllowed", "currentHealthy", "desiredHealthy", "expectedPods", "disruptedPods"}, Required: []string{"disruptedPods", "disruptionsAllowed", "currentHealthy", "desiredHealthy", "expectedPods"},
}, },
}, },
Dependencies: []string{ Dependencies: []string{
...@@ -16959,6 +16966,26 @@ var OpenAPIDefinitions *common.OpenAPIDefinitions = &common.OpenAPIDefinitions{ ...@@ -16959,6 +16966,26 @@ var OpenAPIDefinitions *common.OpenAPIDefinitions = &common.OpenAPIDefinitions{
SchemaProps: spec.SchemaProps{ SchemaProps: spec.SchemaProps{
Description: "PodDisruptionBudgetStatus represents information about the status of a PodDisruptionBudget. Status may trail the actual state of a system.", Description: "PodDisruptionBudgetStatus represents information about the status of a PodDisruptionBudget. Status may trail the actual state of a system.",
Properties: map[string]spec.Schema{ Properties: map[string]spec.Schema{
"observedGeneration": {
SchemaProps: spec.SchemaProps{
Description: "Most recent generation observed when updating this PDB status. PodDisruptionsAllowed and other status informatio is valid only if observedGeneration equals to PDB's object generation.",
Type: []string{"integer"},
Format: "int64",
},
},
"disruptedPods": {
SchemaProps: spec.SchemaProps{
Description: "DisruptedPods contains information about pods whose eviction was processed by the API server eviction subresource handler but has not yet been observed by the PodDisruptionBudget controller. A pod will be in this map from the time when the API server processed the eviction request to the time when the pod is seen by PDB controller as having been marked for deletion (or after a timeout). The key in the map is the name of the pod and the value is the time when the API server processed the eviction request. If the deletion didn't occur and a pod is still there it will be removed from the list automatically by PodDisruptionBudget controller after some time. If everything goes smooth this map should be empty for the most of the time. Large number of entries in the map may indicate problems with pod deletions.",
Type: []string{"object"},
AdditionalProperties: &spec.SchemaOrBool{
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Ref: spec.MustCreateRef("#/definitions/unversioned.Time"),
},
},
},
},
},
"disruptionsAllowed": { "disruptionsAllowed": {
SchemaProps: spec.SchemaProps{ SchemaProps: spec.SchemaProps{
Description: "Number of pod disruptions that are currently allowed.", Description: "Number of pod disruptions that are currently allowed.",
...@@ -16987,21 +17014,8 @@ var OpenAPIDefinitions *common.OpenAPIDefinitions = &common.OpenAPIDefinitions{ ...@@ -16987,21 +17014,8 @@ var OpenAPIDefinitions *common.OpenAPIDefinitions = &common.OpenAPIDefinitions{
Format: "int32", Format: "int32",
}, },
}, },
"disruptedPods": {
SchemaProps: spec.SchemaProps{
Description: "DisruptedPods contains information about pods whose eviction was processed by the API server eviction subresource handler but has not yet been observed by the PodDisruptionBudget controller. A pod will be in this map from the time when the API server processed the eviction request to the time when the pod is seen by PDB controller as having been marked for deletion (or after a timeout). The key in the map is the name of the pod and the value is the time when the API server processed the eviction request. If the deletion didn't occur and a pod is still there it will be removed from the list automatically by PodDisruptionBudget controller after some time. If everything goes smooth this map should be empty for the most of the time. Large number of entries in the map may indicate problems with pod deletions.",
Type: []string{"object"},
AdditionalProperties: &spec.SchemaOrBool{
Schema: &spec.Schema{
SchemaProps: spec.SchemaProps{
Ref: spec.MustCreateRef("#/definitions/unversioned.Time"),
},
},
},
},
},
}, },
Required: []string{"disruptionsAllowed", "currentHealthy", "desiredHealthy", "expectedPods", "disruptedPods"}, Required: []string{"disruptedPods", "disruptionsAllowed", "currentHealthy", "desiredHealthy", "expectedPods"},
}, },
}, },
Dependencies: []string{ Dependencies: []string{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment