mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 17:30:00 +00:00
Regen for pv selector
This commit is contained in:
parent
4ffa3c6754
commit
acfcb73533
@ -2494,6 +2494,10 @@
|
|||||||
},
|
},
|
||||||
"description": "AccessModes contains the desired access modes the volume should have. More info: http://releases.k8s.io/HEAD/docs/user-guide/persistent-volumes.md#access-modes-1"
|
"description": "AccessModes contains the desired access modes the volume should have. More info: http://releases.k8s.io/HEAD/docs/user-guide/persistent-volumes.md#access-modes-1"
|
||||||
},
|
},
|
||||||
|
"selector": {
|
||||||
|
"$ref": "unversioned.LabelSelector",
|
||||||
|
"description": "A label query over volumes to consider for binding."
|
||||||
|
},
|
||||||
"resources": {
|
"resources": {
|
||||||
"$ref": "v1.ResourceRequirements",
|
"$ref": "v1.ResourceRequirements",
|
||||||
"description": "Resources represents the minimum resources the volume should have. More info: http://releases.k8s.io/HEAD/docs/user-guide/persistent-volumes.md#resources"
|
"description": "Resources represents the minimum resources the volume should have. More info: http://releases.k8s.io/HEAD/docs/user-guide/persistent-volumes.md#resources"
|
||||||
|
@ -16980,6 +16980,10 @@
|
|||||||
},
|
},
|
||||||
"description": "AccessModes contains the desired access modes the volume should have. More info: http://releases.k8s.io/HEAD/docs/user-guide/persistent-volumes.md#access-modes-1"
|
"description": "AccessModes contains the desired access modes the volume should have. More info: http://releases.k8s.io/HEAD/docs/user-guide/persistent-volumes.md#access-modes-1"
|
||||||
},
|
},
|
||||||
|
"selector": {
|
||||||
|
"$ref": "unversioned.LabelSelector",
|
||||||
|
"description": "A label query over volumes to consider for binding."
|
||||||
|
},
|
||||||
"resources": {
|
"resources": {
|
||||||
"$ref": "v1.ResourceRequirements",
|
"$ref": "v1.ResourceRequirements",
|
||||||
"description": "Resources represents the minimum resources the volume should have. More info: http://releases.k8s.io/HEAD/docs/user-guide/persistent-volumes.md#resources"
|
"description": "Resources represents the minimum resources the volume should have. More info: http://releases.k8s.io/HEAD/docs/user-guide/persistent-volumes.md#resources"
|
||||||
@ -16994,6 +16998,48 @@
|
|||||||
"id": "v1.PersistentVolumeAccessMode",
|
"id": "v1.PersistentVolumeAccessMode",
|
||||||
"properties": {}
|
"properties": {}
|
||||||
},
|
},
|
||||||
|
"unversioned.LabelSelector": {
|
||||||
|
"id": "unversioned.LabelSelector",
|
||||||
|
"description": "A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects.",
|
||||||
|
"properties": {
|
||||||
|
"matchLabels": {
|
||||||
|
"type": "object",
|
||||||
|
"description": "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed."
|
||||||
|
},
|
||||||
|
"matchExpressions": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"$ref": "unversioned.LabelSelectorRequirement"
|
||||||
|
},
|
||||||
|
"description": "matchExpressions is a list of label selector requirements. The requirements are ANDed."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"unversioned.LabelSelectorRequirement": {
|
||||||
|
"id": "unversioned.LabelSelectorRequirement",
|
||||||
|
"description": "A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.",
|
||||||
|
"required": [
|
||||||
|
"key",
|
||||||
|
"operator"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"key": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "key is the label key that the selector applies to."
|
||||||
|
},
|
||||||
|
"operator": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "operator represents a key's relationship to a set of values. Valid operators ard In, NotIn, Exists and DoesNotExist."
|
||||||
|
},
|
||||||
|
"values": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"description": "values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"v1.ResourceRequirements": {
|
"v1.ResourceRequirements": {
|
||||||
"id": "v1.ResourceRequirements",
|
"id": "v1.ResourceRequirements",
|
||||||
"description": "ResourceRequirements describes the compute resource requirements.",
|
"description": "ResourceRequirements describes the compute resource requirements.",
|
||||||
|
@ -845,6 +845,13 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
|
|||||||
<td class="tableblock halign-left valign-top"></td>
|
<td class="tableblock halign-left valign-top"></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
<td class="tableblock halign-left valign-top"><p class="tableblock">selector</p></td>
|
||||||
|
<td class="tableblock halign-left valign-top"><p class="tableblock">A label query over volumes to consider for binding.</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"><a href="#_unversioned_labelselector">unversioned.LabelSelector</a></p></td>
|
||||||
|
<td class="tableblock halign-left valign-top"></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">resources</p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock">resources</p></td>
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">Resources represents the minimum resources the volume should have. More info: <a href="http://releases.k8s.io/HEAD/docs/user-guide/persistent-volumes.md#resources">http://releases.k8s.io/HEAD/docs/user-guide/persistent-volumes.md#resources</a></p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock">Resources represents the minimum resources the volume should have. More info: <a href="http://releases.k8s.io/HEAD/docs/user-guide/persistent-volumes.md#resources">http://releases.k8s.io/HEAD/docs/user-guide/persistent-volumes.md#resources</a></p></td>
|
||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">false</p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock">false</p></td>
|
||||||
@ -2759,6 +2766,47 @@ Populated by the system when a graceful deletion is requested. Read-only. More i
|
|||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="sect2">
|
||||||
|
<h3 id="_unversioned_labelselector">unversioned.LabelSelector</h3>
|
||||||
|
<div class="paragraph">
|
||||||
|
<p>A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects.</p>
|
||||||
|
</div>
|
||||||
|
<table class="tableblock frame-all grid-all" style="width:100%; ">
|
||||||
|
<colgroup>
|
||||||
|
<col style="width:20%;">
|
||||||
|
<col style="width:20%;">
|
||||||
|
<col style="width:20%;">
|
||||||
|
<col style="width:20%;">
|
||||||
|
<col style="width:20%;">
|
||||||
|
</colgroup>
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th class="tableblock halign-left valign-top">Name</th>
|
||||||
|
<th class="tableblock halign-left valign-top">Description</th>
|
||||||
|
<th class="tableblock halign-left valign-top">Required</th>
|
||||||
|
<th class="tableblock halign-left valign-top">Schema</th>
|
||||||
|
<th class="tableblock halign-left valign-top">Default</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td class="tableblock halign-left valign-top"><p class="tableblock">matchLabels</p></td>
|
||||||
|
<td class="tableblock halign-left valign-top"><p class="tableblock">matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.</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">object</p></td>
|
||||||
|
<td class="tableblock halign-left valign-top"></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="tableblock halign-left valign-top"><p class="tableblock">matchExpressions</p></td>
|
||||||
|
<td class="tableblock halign-left valign-top"><p class="tableblock">matchExpressions is a list of label selector requirements. The requirements are ANDed.</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"><a href="#_unversioned_labelselectorrequirement">unversioned.LabelSelectorRequirement</a> array</p></td>
|
||||||
|
<td class="tableblock halign-left valign-top"></td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="sect2">
|
<div class="sect2">
|
||||||
<h3 id="_v1_endpointsubset">v1.EndpointSubset</h3>
|
<h3 id="_v1_endpointsubset">v1.EndpointSubset</h3>
|
||||||
@ -7428,6 +7476,54 @@ The resulting set of endpoints can be viewed as:<br>
|
|||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="sect2">
|
||||||
|
<h3 id="_unversioned_labelselectorrequirement">unversioned.LabelSelectorRequirement</h3>
|
||||||
|
<div class="paragraph">
|
||||||
|
<p>A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.</p>
|
||||||
|
</div>
|
||||||
|
<table class="tableblock frame-all grid-all" style="width:100%; ">
|
||||||
|
<colgroup>
|
||||||
|
<col style="width:20%;">
|
||||||
|
<col style="width:20%;">
|
||||||
|
<col style="width:20%;">
|
||||||
|
<col style="width:20%;">
|
||||||
|
<col style="width:20%;">
|
||||||
|
</colgroup>
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th class="tableblock halign-left valign-top">Name</th>
|
||||||
|
<th class="tableblock halign-left valign-top">Description</th>
|
||||||
|
<th class="tableblock halign-left valign-top">Required</th>
|
||||||
|
<th class="tableblock halign-left valign-top">Schema</th>
|
||||||
|
<th class="tableblock halign-left valign-top">Default</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td class="tableblock halign-left valign-top"><p class="tableblock">key</p></td>
|
||||||
|
<td class="tableblock halign-left valign-top"><p class="tableblock">key is the label key that the selector applies to.</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">string</p></td>
|
||||||
|
<td class="tableblock halign-left valign-top"></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="tableblock halign-left valign-top"><p class="tableblock">operator</p></td>
|
||||||
|
<td class="tableblock halign-left valign-top"><p class="tableblock">operator represents a key’s relationship to a set of values. Valid operators ard In, NotIn, Exists and DoesNotExist.</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">string</p></td>
|
||||||
|
<td class="tableblock halign-left valign-top"></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="tableblock halign-left valign-top"><p class="tableblock">values</p></td>
|
||||||
|
<td class="tableblock halign-left valign-top"><p class="tableblock">values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.</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">string array</p></td>
|
||||||
|
<td class="tableblock halign-left valign-top"></td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="sect2">
|
<div class="sect2">
|
||||||
<h3 id="_v1_containerstatewaiting">v1.ContainerStateWaiting</h3>
|
<h3 id="_v1_containerstatewaiting">v1.ContainerStateWaiting</h3>
|
||||||
@ -7991,7 +8087,7 @@ The resulting set of endpoints can be viewed as:<br>
|
|||||||
</div>
|
</div>
|
||||||
<div id="footer">
|
<div id="footer">
|
||||||
<div id="footer-text">
|
<div id="footer-text">
|
||||||
Last updated 2016-05-26 18:58:49 UTC
|
Last updated 2016-05-30 16:33:41 UTC
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
@ -1772,6 +1772,15 @@ func DeepCopy_api_PersistentVolumeClaimSpec(in PersistentVolumeClaimSpec, out *P
|
|||||||
} else {
|
} else {
|
||||||
out.AccessModes = nil
|
out.AccessModes = nil
|
||||||
}
|
}
|
||||||
|
if in.Selector != nil {
|
||||||
|
in, out := in.Selector, &out.Selector
|
||||||
|
*out = new(unversioned.LabelSelector)
|
||||||
|
if err := unversioned.DeepCopy_unversioned_LabelSelector(*in, *out, c); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
out.Selector = nil
|
||||||
|
}
|
||||||
if err := DeepCopy_api_ResourceRequirements(in.Resources, &out.Resources, c); err != nil {
|
if err := DeepCopy_api_ResourceRequirements(in.Resources, &out.Resources, c); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
@ -8161,15 +8161,16 @@ func (x *PersistentVolumeClaimSpec) CodecEncodeSelf(e *codec1978.Encoder) {
|
|||||||
} else {
|
} else {
|
||||||
yysep2 := !z.EncBinary()
|
yysep2 := !z.EncBinary()
|
||||||
yy2arr2 := z.EncBasicHandle().StructToArray
|
yy2arr2 := z.EncBasicHandle().StructToArray
|
||||||
var yyq2 [3]bool
|
var yyq2 [4]bool
|
||||||
_, _, _ = yysep2, yyq2, yy2arr2
|
_, _, _ = yysep2, yyq2, yy2arr2
|
||||||
const yyr2 bool = false
|
const yyr2 bool = false
|
||||||
yyq2[0] = len(x.AccessModes) != 0
|
yyq2[0] = len(x.AccessModes) != 0
|
||||||
yyq2[1] = true
|
yyq2[1] = x.Selector != nil
|
||||||
yyq2[2] = x.VolumeName != ""
|
yyq2[2] = true
|
||||||
|
yyq2[3] = x.VolumeName != ""
|
||||||
var yynn2 int
|
var yynn2 int
|
||||||
if yyr2 || yy2arr2 {
|
if yyr2 || yy2arr2 {
|
||||||
r.EncodeArrayStart(3)
|
r.EncodeArrayStart(4)
|
||||||
} else {
|
} else {
|
||||||
yynn2 = 0
|
yynn2 = 0
|
||||||
for _, b := range yyq2 {
|
for _, b := range yyq2 {
|
||||||
@ -8216,25 +8217,60 @@ func (x *PersistentVolumeClaimSpec) CodecEncodeSelf(e *codec1978.Encoder) {
|
|||||||
if yyr2 || yy2arr2 {
|
if yyr2 || yy2arr2 {
|
||||||
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
||||||
if yyq2[1] {
|
if yyq2[1] {
|
||||||
yy7 := &x.Resources
|
if x.Selector == nil {
|
||||||
yy7.CodecEncodeSelf(e)
|
r.EncodeNil()
|
||||||
|
} else {
|
||||||
|
yym7 := z.EncBinary()
|
||||||
|
_ = yym7
|
||||||
|
if false {
|
||||||
|
} else if z.HasExtensions() && z.EncExt(x.Selector) {
|
||||||
|
} else {
|
||||||
|
z.EncFallback(x.Selector)
|
||||||
|
}
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
r.EncodeNil()
|
r.EncodeNil()
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if yyq2[1] {
|
if yyq2[1] {
|
||||||
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
||||||
r.EncodeString(codecSelferC_UTF81234, string("resources"))
|
r.EncodeString(codecSelferC_UTF81234, string("selector"))
|
||||||
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
||||||
yy9 := &x.Resources
|
if x.Selector == nil {
|
||||||
yy9.CodecEncodeSelf(e)
|
r.EncodeNil()
|
||||||
|
} else {
|
||||||
|
yym8 := z.EncBinary()
|
||||||
|
_ = yym8
|
||||||
|
if false {
|
||||||
|
} else if z.HasExtensions() && z.EncExt(x.Selector) {
|
||||||
|
} else {
|
||||||
|
z.EncFallback(x.Selector)
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if yyr2 || yy2arr2 {
|
if yyr2 || yy2arr2 {
|
||||||
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
||||||
if yyq2[2] {
|
if yyq2[2] {
|
||||||
yym12 := z.EncBinary()
|
yy10 := &x.Resources
|
||||||
_ = yym12
|
yy10.CodecEncodeSelf(e)
|
||||||
|
} else {
|
||||||
|
r.EncodeNil()
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
if yyq2[2] {
|
||||||
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
||||||
|
r.EncodeString(codecSelferC_UTF81234, string("resources"))
|
||||||
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
||||||
|
yy12 := &x.Resources
|
||||||
|
yy12.CodecEncodeSelf(e)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if yyr2 || yy2arr2 {
|
||||||
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
||||||
|
if yyq2[3] {
|
||||||
|
yym15 := z.EncBinary()
|
||||||
|
_ = yym15
|
||||||
if false {
|
if false {
|
||||||
} else {
|
} else {
|
||||||
r.EncodeString(codecSelferC_UTF81234, string(x.VolumeName))
|
r.EncodeString(codecSelferC_UTF81234, string(x.VolumeName))
|
||||||
@ -8243,12 +8279,12 @@ func (x *PersistentVolumeClaimSpec) CodecEncodeSelf(e *codec1978.Encoder) {
|
|||||||
r.EncodeString(codecSelferC_UTF81234, "")
|
r.EncodeString(codecSelferC_UTF81234, "")
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if yyq2[2] {
|
if yyq2[3] {
|
||||||
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
||||||
r.EncodeString(codecSelferC_UTF81234, string("volumeName"))
|
r.EncodeString(codecSelferC_UTF81234, string("volumeName"))
|
||||||
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
||||||
yym13 := z.EncBinary()
|
yym16 := z.EncBinary()
|
||||||
_ = yym13
|
_ = yym16
|
||||||
if false {
|
if false {
|
||||||
} else {
|
} else {
|
||||||
r.EncodeString(codecSelferC_UTF81234, string(x.VolumeName))
|
r.EncodeString(codecSelferC_UTF81234, string(x.VolumeName))
|
||||||
@ -8328,12 +8364,29 @@ func (x *PersistentVolumeClaimSpec) codecDecodeSelfFromMap(l int, d *codec1978.D
|
|||||||
h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv4), d)
|
h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv4), d)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
case "selector":
|
||||||
|
if r.TryDecodeAsNil() {
|
||||||
|
if x.Selector != nil {
|
||||||
|
x.Selector = nil
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
if x.Selector == nil {
|
||||||
|
x.Selector = new(pkg2_unversioned.LabelSelector)
|
||||||
|
}
|
||||||
|
yym7 := z.DecBinary()
|
||||||
|
_ = yym7
|
||||||
|
if false {
|
||||||
|
} else if z.HasExtensions() && z.DecExt(x.Selector) {
|
||||||
|
} else {
|
||||||
|
z.DecFallback(x.Selector, false)
|
||||||
|
}
|
||||||
|
}
|
||||||
case "resources":
|
case "resources":
|
||||||
if r.TryDecodeAsNil() {
|
if r.TryDecodeAsNil() {
|
||||||
x.Resources = ResourceRequirements{}
|
x.Resources = ResourceRequirements{}
|
||||||
} else {
|
} else {
|
||||||
yyv6 := &x.Resources
|
yyv8 := &x.Resources
|
||||||
yyv6.CodecDecodeSelf(d)
|
yyv8.CodecDecodeSelf(d)
|
||||||
}
|
}
|
||||||
case "volumeName":
|
case "volumeName":
|
||||||
if r.TryDecodeAsNil() {
|
if r.TryDecodeAsNil() {
|
||||||
@ -8352,16 +8405,16 @@ func (x *PersistentVolumeClaimSpec) 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 yyj8 int
|
var yyj10 int
|
||||||
var yyb8 bool
|
var yyb10 bool
|
||||||
var yyhl8 bool = l >= 0
|
var yyhl10 bool = l >= 0
|
||||||
yyj8++
|
yyj10++
|
||||||
if yyhl8 {
|
if yyhl10 {
|
||||||
yyb8 = yyj8 > l
|
yyb10 = yyj10 > l
|
||||||
} else {
|
} else {
|
||||||
yyb8 = r.CheckBreak()
|
yyb10 = r.CheckBreak()
|
||||||
}
|
}
|
||||||
if yyb8 {
|
if yyb10 {
|
||||||
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -8369,21 +8422,48 @@ func (x *PersistentVolumeClaimSpec) codecDecodeSelfFromArray(l int, d *codec1978
|
|||||||
if r.TryDecodeAsNil() {
|
if r.TryDecodeAsNil() {
|
||||||
x.AccessModes = nil
|
x.AccessModes = nil
|
||||||
} else {
|
} else {
|
||||||
yyv9 := &x.AccessModes
|
yyv11 := &x.AccessModes
|
||||||
yym10 := z.DecBinary()
|
yym12 := z.DecBinary()
|
||||||
_ = yym10
|
_ = yym12
|
||||||
if false {
|
if false {
|
||||||
} else {
|
} else {
|
||||||
h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv9), d)
|
h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv11), d)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
yyj8++
|
yyj10++
|
||||||
if yyhl8 {
|
if yyhl10 {
|
||||||
yyb8 = yyj8 > l
|
yyb10 = yyj10 > l
|
||||||
} else {
|
} else {
|
||||||
yyb8 = r.CheckBreak()
|
yyb10 = r.CheckBreak()
|
||||||
}
|
}
|
||||||
if yyb8 {
|
if yyb10 {
|
||||||
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
||||||
|
if r.TryDecodeAsNil() {
|
||||||
|
if x.Selector != nil {
|
||||||
|
x.Selector = nil
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
if x.Selector == nil {
|
||||||
|
x.Selector = new(pkg2_unversioned.LabelSelector)
|
||||||
|
}
|
||||||
|
yym14 := z.DecBinary()
|
||||||
|
_ = yym14
|
||||||
|
if false {
|
||||||
|
} else if z.HasExtensions() && z.DecExt(x.Selector) {
|
||||||
|
} else {
|
||||||
|
z.DecFallback(x.Selector, false)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
yyj10++
|
||||||
|
if yyhl10 {
|
||||||
|
yyb10 = yyj10 > l
|
||||||
|
} else {
|
||||||
|
yyb10 = r.CheckBreak()
|
||||||
|
}
|
||||||
|
if yyb10 {
|
||||||
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -8391,16 +8471,16 @@ func (x *PersistentVolumeClaimSpec) codecDecodeSelfFromArray(l int, d *codec1978
|
|||||||
if r.TryDecodeAsNil() {
|
if r.TryDecodeAsNil() {
|
||||||
x.Resources = ResourceRequirements{}
|
x.Resources = ResourceRequirements{}
|
||||||
} else {
|
} else {
|
||||||
yyv11 := &x.Resources
|
yyv15 := &x.Resources
|
||||||
yyv11.CodecDecodeSelf(d)
|
yyv15.CodecDecodeSelf(d)
|
||||||
}
|
}
|
||||||
yyj8++
|
yyj10++
|
||||||
if yyhl8 {
|
if yyhl10 {
|
||||||
yyb8 = yyj8 > l
|
yyb10 = yyj10 > l
|
||||||
} else {
|
} else {
|
||||||
yyb8 = r.CheckBreak()
|
yyb10 = r.CheckBreak()
|
||||||
}
|
}
|
||||||
if yyb8 {
|
if yyb10 {
|
||||||
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -8411,17 +8491,17 @@ func (x *PersistentVolumeClaimSpec) codecDecodeSelfFromArray(l int, d *codec1978
|
|||||||
x.VolumeName = string(r.DecodeString())
|
x.VolumeName = string(r.DecodeString())
|
||||||
}
|
}
|
||||||
for {
|
for {
|
||||||
yyj8++
|
yyj10++
|
||||||
if yyhl8 {
|
if yyhl10 {
|
||||||
yyb8 = yyj8 > l
|
yyb10 = yyj10 > l
|
||||||
} else {
|
} else {
|
||||||
yyb8 = r.CheckBreak()
|
yyb10 = r.CheckBreak()
|
||||||
}
|
}
|
||||||
if yyb8 {
|
if yyb10 {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
||||||
z.DecStructFieldNotFound(yyj8-1, "")
|
z.DecStructFieldNotFound(yyj10-1, "")
|
||||||
}
|
}
|
||||||
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
||||||
}
|
}
|
||||||
@ -53208,7 +53288,7 @@ func (x codecSelfer1234) decSlicePersistentVolumeClaim(v *[]PersistentVolumeClai
|
|||||||
|
|
||||||
yyrg1 := len(yyv1) > 0
|
yyrg1 := len(yyv1) > 0
|
||||||
yyv21 := yyv1
|
yyv21 := yyv1
|
||||||
yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 344)
|
yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 352)
|
||||||
if yyrt1 {
|
if yyrt1 {
|
||||||
if yyrl1 <= cap(yyv1) {
|
if yyrl1 <= cap(yyv1) {
|
||||||
yyv1 = yyv1[:yyrl1]
|
yyv1 = yyv1[:yyrl1]
|
||||||
|
@ -3790,6 +3790,7 @@ func autoConvert_v1_PersistentVolumeClaimSpec_To_api_PersistentVolumeClaimSpec(i
|
|||||||
} else {
|
} else {
|
||||||
out.AccessModes = nil
|
out.AccessModes = nil
|
||||||
}
|
}
|
||||||
|
out.Selector = in.Selector
|
||||||
if err := Convert_v1_ResourceRequirements_To_api_ResourceRequirements(&in.Resources, &out.Resources, s); err != nil {
|
if err := Convert_v1_ResourceRequirements_To_api_ResourceRequirements(&in.Resources, &out.Resources, s); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
@ -3811,6 +3812,7 @@ func autoConvert_api_PersistentVolumeClaimSpec_To_v1_PersistentVolumeClaimSpec(i
|
|||||||
} else {
|
} else {
|
||||||
out.AccessModes = nil
|
out.AccessModes = nil
|
||||||
}
|
}
|
||||||
|
out.Selector = in.Selector
|
||||||
if err := Convert_api_ResourceRequirements_To_v1_ResourceRequirements(&in.Resources, &out.Resources, s); err != nil {
|
if err := Convert_api_ResourceRequirements_To_v1_ResourceRequirements(&in.Resources, &out.Resources, s); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
@ -1719,6 +1719,15 @@ func DeepCopy_v1_PersistentVolumeClaimSpec(in PersistentVolumeClaimSpec, out *Pe
|
|||||||
} else {
|
} else {
|
||||||
out.AccessModes = nil
|
out.AccessModes = nil
|
||||||
}
|
}
|
||||||
|
if in.Selector != nil {
|
||||||
|
in, out := in.Selector, &out.Selector
|
||||||
|
*out = new(unversioned.LabelSelector)
|
||||||
|
if err := unversioned.DeepCopy_unversioned_LabelSelector(*in, *out, c); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
out.Selector = nil
|
||||||
|
}
|
||||||
if err := DeepCopy_v1_ResourceRequirements(in.Resources, &out.Resources, c); err != nil {
|
if err := DeepCopy_v1_ResourceRequirements(in.Resources, &out.Resources, c); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -1581,6 +1581,9 @@ message PersistentVolumeClaimSpec {
|
|||||||
// More info: http://releases.k8s.io/HEAD/docs/user-guide/persistent-volumes.md#access-modes-1
|
// More info: http://releases.k8s.io/HEAD/docs/user-guide/persistent-volumes.md#access-modes-1
|
||||||
repeated string accessModes = 1;
|
repeated string accessModes = 1;
|
||||||
|
|
||||||
|
// A label query over volumes to consider for binding.
|
||||||
|
optional k8s.io.kubernetes.pkg.api.unversioned.LabelSelector selector = 4;
|
||||||
|
|
||||||
// Resources represents the minimum resources the volume should have.
|
// Resources represents the minimum resources the volume should have.
|
||||||
// More info: http://releases.k8s.io/HEAD/docs/user-guide/persistent-volumes.md#resources
|
// More info: http://releases.k8s.io/HEAD/docs/user-guide/persistent-volumes.md#resources
|
||||||
optional ResourceRequirements resources = 2;
|
optional ResourceRequirements resources = 2;
|
||||||
|
@ -8164,15 +8164,16 @@ func (x *PersistentVolumeClaimSpec) CodecEncodeSelf(e *codec1978.Encoder) {
|
|||||||
} else {
|
} else {
|
||||||
yysep2 := !z.EncBinary()
|
yysep2 := !z.EncBinary()
|
||||||
yy2arr2 := z.EncBasicHandle().StructToArray
|
yy2arr2 := z.EncBasicHandle().StructToArray
|
||||||
var yyq2 [3]bool
|
var yyq2 [4]bool
|
||||||
_, _, _ = yysep2, yyq2, yy2arr2
|
_, _, _ = yysep2, yyq2, yy2arr2
|
||||||
const yyr2 bool = false
|
const yyr2 bool = false
|
||||||
yyq2[0] = len(x.AccessModes) != 0
|
yyq2[0] = len(x.AccessModes) != 0
|
||||||
yyq2[1] = true
|
yyq2[1] = x.Selector != nil
|
||||||
yyq2[2] = x.VolumeName != ""
|
yyq2[2] = true
|
||||||
|
yyq2[3] = x.VolumeName != ""
|
||||||
var yynn2 int
|
var yynn2 int
|
||||||
if yyr2 || yy2arr2 {
|
if yyr2 || yy2arr2 {
|
||||||
r.EncodeArrayStart(3)
|
r.EncodeArrayStart(4)
|
||||||
} else {
|
} else {
|
||||||
yynn2 = 0
|
yynn2 = 0
|
||||||
for _, b := range yyq2 {
|
for _, b := range yyq2 {
|
||||||
@ -8219,25 +8220,60 @@ func (x *PersistentVolumeClaimSpec) CodecEncodeSelf(e *codec1978.Encoder) {
|
|||||||
if yyr2 || yy2arr2 {
|
if yyr2 || yy2arr2 {
|
||||||
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
||||||
if yyq2[1] {
|
if yyq2[1] {
|
||||||
yy7 := &x.Resources
|
if x.Selector == nil {
|
||||||
yy7.CodecEncodeSelf(e)
|
r.EncodeNil()
|
||||||
|
} else {
|
||||||
|
yym7 := z.EncBinary()
|
||||||
|
_ = yym7
|
||||||
|
if false {
|
||||||
|
} else if z.HasExtensions() && z.EncExt(x.Selector) {
|
||||||
|
} else {
|
||||||
|
z.EncFallback(x.Selector)
|
||||||
|
}
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
r.EncodeNil()
|
r.EncodeNil()
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if yyq2[1] {
|
if yyq2[1] {
|
||||||
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
||||||
r.EncodeString(codecSelferC_UTF81234, string("resources"))
|
r.EncodeString(codecSelferC_UTF81234, string("selector"))
|
||||||
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
||||||
yy9 := &x.Resources
|
if x.Selector == nil {
|
||||||
yy9.CodecEncodeSelf(e)
|
r.EncodeNil()
|
||||||
|
} else {
|
||||||
|
yym8 := z.EncBinary()
|
||||||
|
_ = yym8
|
||||||
|
if false {
|
||||||
|
} else if z.HasExtensions() && z.EncExt(x.Selector) {
|
||||||
|
} else {
|
||||||
|
z.EncFallback(x.Selector)
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if yyr2 || yy2arr2 {
|
if yyr2 || yy2arr2 {
|
||||||
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
||||||
if yyq2[2] {
|
if yyq2[2] {
|
||||||
yym12 := z.EncBinary()
|
yy10 := &x.Resources
|
||||||
_ = yym12
|
yy10.CodecEncodeSelf(e)
|
||||||
|
} else {
|
||||||
|
r.EncodeNil()
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
if yyq2[2] {
|
||||||
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
||||||
|
r.EncodeString(codecSelferC_UTF81234, string("resources"))
|
||||||
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
||||||
|
yy12 := &x.Resources
|
||||||
|
yy12.CodecEncodeSelf(e)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if yyr2 || yy2arr2 {
|
||||||
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
||||||
|
if yyq2[3] {
|
||||||
|
yym15 := z.EncBinary()
|
||||||
|
_ = yym15
|
||||||
if false {
|
if false {
|
||||||
} else {
|
} else {
|
||||||
r.EncodeString(codecSelferC_UTF81234, string(x.VolumeName))
|
r.EncodeString(codecSelferC_UTF81234, string(x.VolumeName))
|
||||||
@ -8246,12 +8282,12 @@ func (x *PersistentVolumeClaimSpec) CodecEncodeSelf(e *codec1978.Encoder) {
|
|||||||
r.EncodeString(codecSelferC_UTF81234, "")
|
r.EncodeString(codecSelferC_UTF81234, "")
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if yyq2[2] {
|
if yyq2[3] {
|
||||||
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
||||||
r.EncodeString(codecSelferC_UTF81234, string("volumeName"))
|
r.EncodeString(codecSelferC_UTF81234, string("volumeName"))
|
||||||
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
||||||
yym13 := z.EncBinary()
|
yym16 := z.EncBinary()
|
||||||
_ = yym13
|
_ = yym16
|
||||||
if false {
|
if false {
|
||||||
} else {
|
} else {
|
||||||
r.EncodeString(codecSelferC_UTF81234, string(x.VolumeName))
|
r.EncodeString(codecSelferC_UTF81234, string(x.VolumeName))
|
||||||
@ -8331,12 +8367,29 @@ func (x *PersistentVolumeClaimSpec) codecDecodeSelfFromMap(l int, d *codec1978.D
|
|||||||
h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv4), d)
|
h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv4), d)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
case "selector":
|
||||||
|
if r.TryDecodeAsNil() {
|
||||||
|
if x.Selector != nil {
|
||||||
|
x.Selector = nil
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
if x.Selector == nil {
|
||||||
|
x.Selector = new(pkg2_unversioned.LabelSelector)
|
||||||
|
}
|
||||||
|
yym7 := z.DecBinary()
|
||||||
|
_ = yym7
|
||||||
|
if false {
|
||||||
|
} else if z.HasExtensions() && z.DecExt(x.Selector) {
|
||||||
|
} else {
|
||||||
|
z.DecFallback(x.Selector, false)
|
||||||
|
}
|
||||||
|
}
|
||||||
case "resources":
|
case "resources":
|
||||||
if r.TryDecodeAsNil() {
|
if r.TryDecodeAsNil() {
|
||||||
x.Resources = ResourceRequirements{}
|
x.Resources = ResourceRequirements{}
|
||||||
} else {
|
} else {
|
||||||
yyv6 := &x.Resources
|
yyv8 := &x.Resources
|
||||||
yyv6.CodecDecodeSelf(d)
|
yyv8.CodecDecodeSelf(d)
|
||||||
}
|
}
|
||||||
case "volumeName":
|
case "volumeName":
|
||||||
if r.TryDecodeAsNil() {
|
if r.TryDecodeAsNil() {
|
||||||
@ -8355,16 +8408,16 @@ func (x *PersistentVolumeClaimSpec) 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 yyj8 int
|
var yyj10 int
|
||||||
var yyb8 bool
|
var yyb10 bool
|
||||||
var yyhl8 bool = l >= 0
|
var yyhl10 bool = l >= 0
|
||||||
yyj8++
|
yyj10++
|
||||||
if yyhl8 {
|
if yyhl10 {
|
||||||
yyb8 = yyj8 > l
|
yyb10 = yyj10 > l
|
||||||
} else {
|
} else {
|
||||||
yyb8 = r.CheckBreak()
|
yyb10 = r.CheckBreak()
|
||||||
}
|
}
|
||||||
if yyb8 {
|
if yyb10 {
|
||||||
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -8372,21 +8425,48 @@ func (x *PersistentVolumeClaimSpec) codecDecodeSelfFromArray(l int, d *codec1978
|
|||||||
if r.TryDecodeAsNil() {
|
if r.TryDecodeAsNil() {
|
||||||
x.AccessModes = nil
|
x.AccessModes = nil
|
||||||
} else {
|
} else {
|
||||||
yyv9 := &x.AccessModes
|
yyv11 := &x.AccessModes
|
||||||
yym10 := z.DecBinary()
|
yym12 := z.DecBinary()
|
||||||
_ = yym10
|
_ = yym12
|
||||||
if false {
|
if false {
|
||||||
} else {
|
} else {
|
||||||
h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv9), d)
|
h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv11), d)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
yyj8++
|
yyj10++
|
||||||
if yyhl8 {
|
if yyhl10 {
|
||||||
yyb8 = yyj8 > l
|
yyb10 = yyj10 > l
|
||||||
} else {
|
} else {
|
||||||
yyb8 = r.CheckBreak()
|
yyb10 = r.CheckBreak()
|
||||||
}
|
}
|
||||||
if yyb8 {
|
if yyb10 {
|
||||||
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
||||||
|
if r.TryDecodeAsNil() {
|
||||||
|
if x.Selector != nil {
|
||||||
|
x.Selector = nil
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
if x.Selector == nil {
|
||||||
|
x.Selector = new(pkg2_unversioned.LabelSelector)
|
||||||
|
}
|
||||||
|
yym14 := z.DecBinary()
|
||||||
|
_ = yym14
|
||||||
|
if false {
|
||||||
|
} else if z.HasExtensions() && z.DecExt(x.Selector) {
|
||||||
|
} else {
|
||||||
|
z.DecFallback(x.Selector, false)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
yyj10++
|
||||||
|
if yyhl10 {
|
||||||
|
yyb10 = yyj10 > l
|
||||||
|
} else {
|
||||||
|
yyb10 = r.CheckBreak()
|
||||||
|
}
|
||||||
|
if yyb10 {
|
||||||
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -8394,16 +8474,16 @@ func (x *PersistentVolumeClaimSpec) codecDecodeSelfFromArray(l int, d *codec1978
|
|||||||
if r.TryDecodeAsNil() {
|
if r.TryDecodeAsNil() {
|
||||||
x.Resources = ResourceRequirements{}
|
x.Resources = ResourceRequirements{}
|
||||||
} else {
|
} else {
|
||||||
yyv11 := &x.Resources
|
yyv15 := &x.Resources
|
||||||
yyv11.CodecDecodeSelf(d)
|
yyv15.CodecDecodeSelf(d)
|
||||||
}
|
}
|
||||||
yyj8++
|
yyj10++
|
||||||
if yyhl8 {
|
if yyhl10 {
|
||||||
yyb8 = yyj8 > l
|
yyb10 = yyj10 > l
|
||||||
} else {
|
} else {
|
||||||
yyb8 = r.CheckBreak()
|
yyb10 = r.CheckBreak()
|
||||||
}
|
}
|
||||||
if yyb8 {
|
if yyb10 {
|
||||||
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -8414,17 +8494,17 @@ func (x *PersistentVolumeClaimSpec) codecDecodeSelfFromArray(l int, d *codec1978
|
|||||||
x.VolumeName = string(r.DecodeString())
|
x.VolumeName = string(r.DecodeString())
|
||||||
}
|
}
|
||||||
for {
|
for {
|
||||||
yyj8++
|
yyj10++
|
||||||
if yyhl8 {
|
if yyhl10 {
|
||||||
yyb8 = yyj8 > l
|
yyb10 = yyj10 > l
|
||||||
} else {
|
} else {
|
||||||
yyb8 = r.CheckBreak()
|
yyb10 = r.CheckBreak()
|
||||||
}
|
}
|
||||||
if yyb8 {
|
if yyb10 {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
||||||
z.DecStructFieldNotFound(yyj8-1, "")
|
z.DecStructFieldNotFound(yyj10-1, "")
|
||||||
}
|
}
|
||||||
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
||||||
}
|
}
|
||||||
@ -53380,7 +53460,7 @@ func (x codecSelfer1234) decSlicePersistentVolumeClaim(v *[]PersistentVolumeClai
|
|||||||
|
|
||||||
yyrg1 := len(yyv1) > 0
|
yyrg1 := len(yyv1) > 0
|
||||||
yyv21 := yyv1
|
yyv21 := yyv1
|
||||||
yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 344)
|
yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 352)
|
||||||
if yyrt1 {
|
if yyrt1 {
|
||||||
if yyrl1 <= cap(yyv1) {
|
if yyrl1 <= cap(yyv1) {
|
||||||
yyv1 = yyv1[:yyrl1]
|
yyv1 = yyv1[:yyrl1]
|
||||||
|
@ -457,7 +457,7 @@ type PersistentVolumeClaimSpec struct {
|
|||||||
// More info: http://releases.k8s.io/HEAD/docs/user-guide/persistent-volumes.md#access-modes-1
|
// More info: http://releases.k8s.io/HEAD/docs/user-guide/persistent-volumes.md#access-modes-1
|
||||||
AccessModes []PersistentVolumeAccessMode `json:"accessModes,omitempty" protobuf:"bytes,1,rep,name=accessModes,casttype=PersistentVolumeAccessMode"`
|
AccessModes []PersistentVolumeAccessMode `json:"accessModes,omitempty" protobuf:"bytes,1,rep,name=accessModes,casttype=PersistentVolumeAccessMode"`
|
||||||
// A label query over volumes to consider for binding.
|
// A label query over volumes to consider for binding.
|
||||||
Selector *unversioned.LabelSelector `json:"selector,omitempty"`
|
Selector *unversioned.LabelSelector `json:"selector,omitempty" protobuf:"bytes,4,opt,name=selector"`
|
||||||
// Resources represents the minimum resources the volume should have.
|
// Resources represents the minimum resources the volume should have.
|
||||||
// More info: http://releases.k8s.io/HEAD/docs/user-guide/persistent-volumes.md#resources
|
// More info: http://releases.k8s.io/HEAD/docs/user-guide/persistent-volumes.md#resources
|
||||||
Resources ResourceRequirements `json:"resources,omitempty" protobuf:"bytes,2,opt,name=resources"`
|
Resources ResourceRequirements `json:"resources,omitempty" protobuf:"bytes,2,opt,name=resources"`
|
||||||
|
@ -998,6 +998,7 @@ func (PersistentVolumeClaimList) SwaggerDoc() map[string]string {
|
|||||||
var map_PersistentVolumeClaimSpec = map[string]string{
|
var map_PersistentVolumeClaimSpec = map[string]string{
|
||||||
"": "PersistentVolumeClaimSpec describes the common attributes of storage devices and allows a Source for provider-specific attributes",
|
"": "PersistentVolumeClaimSpec describes the common attributes of storage devices and allows a Source for provider-specific attributes",
|
||||||
"accessModes": "AccessModes contains the desired access modes the volume should have. More info: http://releases.k8s.io/HEAD/docs/user-guide/persistent-volumes.md#access-modes-1",
|
"accessModes": "AccessModes contains the desired access modes the volume should have. More info: http://releases.k8s.io/HEAD/docs/user-guide/persistent-volumes.md#access-modes-1",
|
||||||
|
"selector": "A label query over volumes to consider for binding.",
|
||||||
"resources": "Resources represents the minimum resources the volume should have. More info: http://releases.k8s.io/HEAD/docs/user-guide/persistent-volumes.md#resources",
|
"resources": "Resources represents the minimum resources the volume should have. More info: http://releases.k8s.io/HEAD/docs/user-guide/persistent-volumes.md#resources",
|
||||||
"volumeName": "VolumeName is the binding reference to the PersistentVolume backing this claim.",
|
"volumeName": "VolumeName is the binding reference to the PersistentVolume backing this claim.",
|
||||||
}
|
}
|
||||||
|
@ -1434,7 +1434,7 @@ func (x codecSelfer1234) decSliceapi_PersistentVolumeClaim(v *[]pkg2_api.Persist
|
|||||||
|
|
||||||
yyrg1 := len(yyv1) > 0
|
yyrg1 := len(yyv1) > 0
|
||||||
yyv21 := yyv1
|
yyv21 := yyv1
|
||||||
yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 344)
|
yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 352)
|
||||||
if yyrt1 {
|
if yyrt1 {
|
||||||
if yyrl1 <= cap(yyv1) {
|
if yyrl1 <= cap(yyv1) {
|
||||||
yyv1 = yyv1[:yyrl1]
|
yyv1 = yyv1[:yyrl1]
|
||||||
|
@ -1464,7 +1464,7 @@ func (x codecSelfer1234) decSlicev1_PersistentVolumeClaim(v *[]pkg2_v1.Persisten
|
|||||||
|
|
||||||
yyrg1 := len(yyv1) > 0
|
yyrg1 := len(yyv1) > 0
|
||||||
yyv21 := yyv1
|
yyv21 := yyv1
|
||||||
yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 344)
|
yyrl1, yyrt1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 352)
|
||||||
if yyrt1 {
|
if yyrt1 {
|
||||||
if yyrl1 <= cap(yyv1) {
|
if yyrl1 <= cap(yyv1) {
|
||||||
yyv1 = yyv1[:yyrl1]
|
yyv1 = yyv1[:yyrl1]
|
||||||
|
Loading…
Reference in New Issue
Block a user