mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-08 03:33:56 +00:00
Update generated & client-go
This commit is contained in:
parent
63f1b077dc
commit
64f2b0c0fc
@ -41181,6 +41181,10 @@
|
|||||||
"port"
|
"port"
|
||||||
],
|
],
|
||||||
"properties": {
|
"properties": {
|
||||||
|
"host": {
|
||||||
|
"description": "Optional: Host name to connect to, defaults to the pod IP.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
"port": {
|
"port": {
|
||||||
"description": "Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.",
|
"description": "Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.",
|
||||||
"$ref": "#/definitions/io.k8s.apimachinery.pkg.util.intstr.IntOrString"
|
"$ref": "#/definitions/io.k8s.apimachinery.pkg.util.intstr.IntOrString"
|
||||||
|
@ -3982,6 +3982,10 @@
|
|||||||
"port": {
|
"port": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME."
|
"description": "Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME."
|
||||||
|
},
|
||||||
|
"host": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "Optional: Host name to connect to, defaults to the pod IP."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -2765,6 +2765,10 @@
|
|||||||
"port": {
|
"port": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME."
|
"description": "Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME."
|
||||||
|
},
|
||||||
|
"host": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "Optional: Host name to connect to, defaults to the pod IP."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -8229,6 +8229,10 @@
|
|||||||
"port": {
|
"port": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME."
|
"description": "Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME."
|
||||||
|
},
|
||||||
|
"host": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "Optional: Host name to connect to, defaults to the pod IP."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -19580,6 +19580,10 @@
|
|||||||
"port": {
|
"port": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME."
|
"description": "Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME."
|
||||||
|
},
|
||||||
|
"host": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "Optional: Host name to connect to, defaults to the pod IP."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -4837,6 +4837,13 @@ Examples:<br>
|
|||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">string</p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock">string</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">host</p></td>
|
||||||
|
<td class="tableblock halign-left valign-top"><p class="tableblock">Optional: Host name to connect to, defaults to the pod IP.</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</p></td>
|
||||||
|
<td class="tableblock halign-left valign-top"></td>
|
||||||
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
@ -1438,6 +1438,13 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
|
|||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">string</p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock">string</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">host</p></td>
|
||||||
|
<td class="tableblock halign-left valign-top"><p class="tableblock">Optional: Host name to connect to, defaults to the pod IP.</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</p></td>
|
||||||
|
<td class="tableblock halign-left valign-top"></td>
|
||||||
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
@ -5770,6 +5770,13 @@ Examples:<br>
|
|||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">string</p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock">string</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">host</p></td>
|
||||||
|
<td class="tableblock halign-left valign-top"><p class="tableblock">Optional: Host name to connect to, defaults to the pod IP.</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</p></td>
|
||||||
|
<td class="tableblock halign-left valign-top"></td>
|
||||||
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
@ -6589,6 +6589,13 @@ Examples:<br>
|
|||||||
<td class="tableblock halign-left valign-top"><p class="tableblock">string</p></td>
|
<td class="tableblock halign-left valign-top"><p class="tableblock">string</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">host</p></td>
|
||||||
|
<td class="tableblock halign-left valign-top"><p class="tableblock">Optional: Host name to connect to, defaults to the pod IP.</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</p></td>
|
||||||
|
<td class="tableblock halign-left valign-top"></td>
|
||||||
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
@ -11425,6 +11425,10 @@
|
|||||||
"port"
|
"port"
|
||||||
],
|
],
|
||||||
"properties": {
|
"properties": {
|
||||||
|
"host": {
|
||||||
|
"description": "Optional: Host name to connect to, defaults to the pod IP.",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
"port": {
|
"port": {
|
||||||
"description": "Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.",
|
"description": "Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.",
|
||||||
"$ref": "#/definitions/io.k8s.apimachinery.pkg.util.intstr.IntOrString"
|
"$ref": "#/definitions/io.k8s.apimachinery.pkg.util.intstr.IntOrString"
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -3669,6 +3669,10 @@ message TCPSocketAction {
|
|||||||
// Number must be in the range 1 to 65535.
|
// Number must be in the range 1 to 65535.
|
||||||
// Name must be an IANA_SVC_NAME.
|
// Name must be an IANA_SVC_NAME.
|
||||||
optional k8s.io.apimachinery.pkg.util.intstr.IntOrString port = 1;
|
optional k8s.io.apimachinery.pkg.util.intstr.IntOrString port = 1;
|
||||||
|
|
||||||
|
// Optional: Host name to connect to, defaults to the pod IP.
|
||||||
|
// +optional
|
||||||
|
optional string host = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
// The node this Taint is attached to has the effect "effect" on
|
// The node this Taint is attached to has the effect "effect" on
|
||||||
|
@ -24679,12 +24679,13 @@ func (x *TCPSocketAction) CodecEncodeSelf(e *codec1978.Encoder) {
|
|||||||
} else {
|
} else {
|
||||||
yysep2 := !z.EncBinary()
|
yysep2 := !z.EncBinary()
|
||||||
yy2arr2 := z.EncBasicHandle().StructToArray
|
yy2arr2 := z.EncBasicHandle().StructToArray
|
||||||
var yyq2 [1]bool
|
var yyq2 [2]bool
|
||||||
_, _, _ = yysep2, yyq2, yy2arr2
|
_, _, _ = yysep2, yyq2, yy2arr2
|
||||||
const yyr2 bool = false
|
const yyr2 bool = false
|
||||||
|
yyq2[1] = x.Host != ""
|
||||||
var yynn2 int
|
var yynn2 int
|
||||||
if yyr2 || yy2arr2 {
|
if yyr2 || yy2arr2 {
|
||||||
r.EncodeArrayStart(1)
|
r.EncodeArrayStart(2)
|
||||||
} else {
|
} else {
|
||||||
yynn2 = 1
|
yynn2 = 1
|
||||||
for _, b := range yyq2 {
|
for _, b := range yyq2 {
|
||||||
@ -24722,6 +24723,31 @@ func (x *TCPSocketAction) CodecEncodeSelf(e *codec1978.Encoder) {
|
|||||||
z.EncFallback(yy6)
|
z.EncFallback(yy6)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if yyr2 || yy2arr2 {
|
||||||
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
||||||
|
if yyq2[1] {
|
||||||
|
yym9 := z.EncBinary()
|
||||||
|
_ = yym9
|
||||||
|
if false {
|
||||||
|
} else {
|
||||||
|
r.EncodeString(codecSelferC_UTF81234, string(x.Host))
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
r.EncodeString(codecSelferC_UTF81234, "")
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
if yyq2[1] {
|
||||||
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
||||||
|
r.EncodeString(codecSelferC_UTF81234, string("host"))
|
||||||
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
||||||
|
yym10 := z.EncBinary()
|
||||||
|
_ = yym10
|
||||||
|
if false {
|
||||||
|
} else {
|
||||||
|
r.EncodeString(codecSelferC_UTF81234, string(x.Host))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
if yyr2 || yy2arr2 {
|
if yyr2 || yy2arr2 {
|
||||||
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
||||||
} else {
|
} else {
|
||||||
@ -24798,6 +24824,18 @@ func (x *TCPSocketAction) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|||||||
z.DecFallback(yyv4, false)
|
z.DecFallback(yyv4, false)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
case "host":
|
||||||
|
if r.TryDecodeAsNil() {
|
||||||
|
x.Host = ""
|
||||||
|
} else {
|
||||||
|
yyv6 := &x.Host
|
||||||
|
yym7 := z.DecBinary()
|
||||||
|
_ = yym7
|
||||||
|
if false {
|
||||||
|
} else {
|
||||||
|
*((*string)(yyv6)) = r.DecodeString()
|
||||||
|
}
|
||||||
|
}
|
||||||
default:
|
default:
|
||||||
z.DecStructFieldNotFound(-1, yys3)
|
z.DecStructFieldNotFound(-1, yys3)
|
||||||
} // end switch yys3
|
} // end switch yys3
|
||||||
@ -24809,16 +24847,16 @@ func (x *TCPSocketAction) 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 yyj6 int
|
var yyj8 int
|
||||||
var yyb6 bool
|
var yyb8 bool
|
||||||
var yyhl6 bool = l >= 0
|
var yyhl8 bool = l >= 0
|
||||||
yyj6++
|
yyj8++
|
||||||
if yyhl6 {
|
if yyhl8 {
|
||||||
yyb6 = yyj6 > l
|
yyb8 = yyj8 > l
|
||||||
} else {
|
} else {
|
||||||
yyb6 = r.CheckBreak()
|
yyb8 = r.CheckBreak()
|
||||||
}
|
}
|
||||||
if yyb6 {
|
if yyb8 {
|
||||||
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -24826,29 +24864,51 @@ func (x *TCPSocketAction) codecDecodeSelfFromArray(l int, d *codec1978.Decoder)
|
|||||||
if r.TryDecodeAsNil() {
|
if r.TryDecodeAsNil() {
|
||||||
x.Port = pkg4_intstr.IntOrString{}
|
x.Port = pkg4_intstr.IntOrString{}
|
||||||
} else {
|
} else {
|
||||||
yyv7 := &x.Port
|
yyv9 := &x.Port
|
||||||
yym8 := z.DecBinary()
|
yym10 := z.DecBinary()
|
||||||
_ = yym8
|
_ = yym10
|
||||||
if false {
|
if false {
|
||||||
} else if z.HasExtensions() && z.DecExt(yyv7) {
|
} else if z.HasExtensions() && z.DecExt(yyv9) {
|
||||||
} else if !yym8 && z.IsJSONHandle() {
|
} else if !yym10 && z.IsJSONHandle() {
|
||||||
z.DecJSONUnmarshal(yyv7)
|
z.DecJSONUnmarshal(yyv9)
|
||||||
} else {
|
} else {
|
||||||
z.DecFallback(yyv7, false)
|
z.DecFallback(yyv9, false)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
yyj8++
|
||||||
|
if yyhl8 {
|
||||||
|
yyb8 = yyj8 > l
|
||||||
|
} else {
|
||||||
|
yyb8 = r.CheckBreak()
|
||||||
|
}
|
||||||
|
if yyb8 {
|
||||||
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
||||||
|
if r.TryDecodeAsNil() {
|
||||||
|
x.Host = ""
|
||||||
|
} else {
|
||||||
|
yyv11 := &x.Host
|
||||||
|
yym12 := z.DecBinary()
|
||||||
|
_ = yym12
|
||||||
|
if false {
|
||||||
|
} else {
|
||||||
|
*((*string)(yyv11)) = r.DecodeString()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for {
|
for {
|
||||||
yyj6++
|
yyj8++
|
||||||
if yyhl6 {
|
if yyhl8 {
|
||||||
yyb6 = yyj6 > l
|
yyb8 = yyj8 > l
|
||||||
} else {
|
} else {
|
||||||
yyb6 = r.CheckBreak()
|
yyb8 = r.CheckBreak()
|
||||||
}
|
}
|
||||||
if yyb6 {
|
if yyb8 {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
||||||
z.DecStructFieldNotFound(yyj6-1, "")
|
z.DecStructFieldNotFound(yyj8-1, "")
|
||||||
}
|
}
|
||||||
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
||||||
}
|
}
|
||||||
|
@ -1840,6 +1840,7 @@ func (ServiceStatus) SwaggerDoc() map[string]string {
|
|||||||
var map_TCPSocketAction = map[string]string{
|
var map_TCPSocketAction = map[string]string{
|
||||||
"": "TCPSocketAction describes an action based on opening a socket",
|
"": "TCPSocketAction describes an action based on opening a socket",
|
||||||
"port": "Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.",
|
"port": "Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.",
|
||||||
|
"host": "Optional: Host name to connect to, defaults to the pod IP.",
|
||||||
}
|
}
|
||||||
|
|
||||||
func (TCPSocketAction) SwaggerDoc() map[string]string {
|
func (TCPSocketAction) SwaggerDoc() map[string]string {
|
||||||
|
@ -4365,6 +4365,7 @@ func Convert_api_Sysctl_To_v1_Sysctl(in *api.Sysctl, out *Sysctl, s conversion.S
|
|||||||
|
|
||||||
func autoConvert_v1_TCPSocketAction_To_api_TCPSocketAction(in *TCPSocketAction, out *api.TCPSocketAction, s conversion.Scope) error {
|
func autoConvert_v1_TCPSocketAction_To_api_TCPSocketAction(in *TCPSocketAction, out *api.TCPSocketAction, s conversion.Scope) error {
|
||||||
out.Port = in.Port
|
out.Port = in.Port
|
||||||
|
out.Host = in.Host
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -4374,6 +4375,7 @@ func Convert_v1_TCPSocketAction_To_api_TCPSocketAction(in *TCPSocketAction, out
|
|||||||
|
|
||||||
func autoConvert_api_TCPSocketAction_To_v1_TCPSocketAction(in *api.TCPSocketAction, out *TCPSocketAction, s conversion.Scope) error {
|
func autoConvert_api_TCPSocketAction_To_v1_TCPSocketAction(in *api.TCPSocketAction, out *TCPSocketAction, s conversion.Scope) error {
|
||||||
out.Port = in.Port
|
out.Port = in.Port
|
||||||
|
out.Host = in.Host
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -8595,6 +8595,13 @@ func GetOpenAPIDefinitions(ref openapi.ReferenceCallback) map[string]openapi.Ope
|
|||||||
Ref: ref("k8s.io/apimachinery/pkg/util/intstr.IntOrString"),
|
Ref: ref("k8s.io/apimachinery/pkg/util/intstr.IntOrString"),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
"host": {
|
||||||
|
SchemaProps: spec.SchemaProps{
|
||||||
|
Description: "Optional: Host name to connect to, defaults to the pod IP.",
|
||||||
|
Type: []string{"string"},
|
||||||
|
Format: "",
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
Required: []string{"port"},
|
Required: []string{"port"},
|
||||||
},
|
},
|
||||||
|
@ -1391,6 +1391,9 @@ type TCPSocketAction struct {
|
|||||||
// Required: Port to connect to.
|
// Required: Port to connect to.
|
||||||
// +optional
|
// +optional
|
||||||
Port intstr.IntOrString
|
Port intstr.IntOrString
|
||||||
|
// Optional: Host name to connect to, defaults to the pod IP.
|
||||||
|
// +optional
|
||||||
|
Host string
|
||||||
}
|
}
|
||||||
|
|
||||||
// ExecAction describes a "run in container" action.
|
// ExecAction describes a "run in container" action.
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -3669,6 +3669,10 @@ message TCPSocketAction {
|
|||||||
// Number must be in the range 1 to 65535.
|
// Number must be in the range 1 to 65535.
|
||||||
// Name must be an IANA_SVC_NAME.
|
// Name must be an IANA_SVC_NAME.
|
||||||
optional k8s.io.apimachinery.pkg.util.intstr.IntOrString port = 1;
|
optional k8s.io.apimachinery.pkg.util.intstr.IntOrString port = 1;
|
||||||
|
|
||||||
|
// Optional: Host name to connect to, defaults to the pod IP.
|
||||||
|
// +optional
|
||||||
|
optional string host = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
// The node this Taint is attached to has the effect "effect" on
|
// The node this Taint is attached to has the effect "effect" on
|
||||||
|
@ -24679,12 +24679,13 @@ func (x *TCPSocketAction) CodecEncodeSelf(e *codec1978.Encoder) {
|
|||||||
} else {
|
} else {
|
||||||
yysep2 := !z.EncBinary()
|
yysep2 := !z.EncBinary()
|
||||||
yy2arr2 := z.EncBasicHandle().StructToArray
|
yy2arr2 := z.EncBasicHandle().StructToArray
|
||||||
var yyq2 [1]bool
|
var yyq2 [2]bool
|
||||||
_, _, _ = yysep2, yyq2, yy2arr2
|
_, _, _ = yysep2, yyq2, yy2arr2
|
||||||
const yyr2 bool = false
|
const yyr2 bool = false
|
||||||
|
yyq2[1] = x.Host != ""
|
||||||
var yynn2 int
|
var yynn2 int
|
||||||
if yyr2 || yy2arr2 {
|
if yyr2 || yy2arr2 {
|
||||||
r.EncodeArrayStart(1)
|
r.EncodeArrayStart(2)
|
||||||
} else {
|
} else {
|
||||||
yynn2 = 1
|
yynn2 = 1
|
||||||
for _, b := range yyq2 {
|
for _, b := range yyq2 {
|
||||||
@ -24722,6 +24723,31 @@ func (x *TCPSocketAction) CodecEncodeSelf(e *codec1978.Encoder) {
|
|||||||
z.EncFallback(yy6)
|
z.EncFallback(yy6)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if yyr2 || yy2arr2 {
|
||||||
|
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
|
||||||
|
if yyq2[1] {
|
||||||
|
yym9 := z.EncBinary()
|
||||||
|
_ = yym9
|
||||||
|
if false {
|
||||||
|
} else {
|
||||||
|
r.EncodeString(codecSelferC_UTF81234, string(x.Host))
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
r.EncodeString(codecSelferC_UTF81234, "")
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
if yyq2[1] {
|
||||||
|
z.EncSendContainerState(codecSelfer_containerMapKey1234)
|
||||||
|
r.EncodeString(codecSelferC_UTF81234, string("host"))
|
||||||
|
z.EncSendContainerState(codecSelfer_containerMapValue1234)
|
||||||
|
yym10 := z.EncBinary()
|
||||||
|
_ = yym10
|
||||||
|
if false {
|
||||||
|
} else {
|
||||||
|
r.EncodeString(codecSelferC_UTF81234, string(x.Host))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
if yyr2 || yy2arr2 {
|
if yyr2 || yy2arr2 {
|
||||||
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
|
||||||
} else {
|
} else {
|
||||||
@ -24798,6 +24824,18 @@ func (x *TCPSocketAction) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
|
|||||||
z.DecFallback(yyv4, false)
|
z.DecFallback(yyv4, false)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
case "host":
|
||||||
|
if r.TryDecodeAsNil() {
|
||||||
|
x.Host = ""
|
||||||
|
} else {
|
||||||
|
yyv6 := &x.Host
|
||||||
|
yym7 := z.DecBinary()
|
||||||
|
_ = yym7
|
||||||
|
if false {
|
||||||
|
} else {
|
||||||
|
*((*string)(yyv6)) = r.DecodeString()
|
||||||
|
}
|
||||||
|
}
|
||||||
default:
|
default:
|
||||||
z.DecStructFieldNotFound(-1, yys3)
|
z.DecStructFieldNotFound(-1, yys3)
|
||||||
} // end switch yys3
|
} // end switch yys3
|
||||||
@ -24809,16 +24847,16 @@ func (x *TCPSocketAction) 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 yyj6 int
|
var yyj8 int
|
||||||
var yyb6 bool
|
var yyb8 bool
|
||||||
var yyhl6 bool = l >= 0
|
var yyhl8 bool = l >= 0
|
||||||
yyj6++
|
yyj8++
|
||||||
if yyhl6 {
|
if yyhl8 {
|
||||||
yyb6 = yyj6 > l
|
yyb8 = yyj8 > l
|
||||||
} else {
|
} else {
|
||||||
yyb6 = r.CheckBreak()
|
yyb8 = r.CheckBreak()
|
||||||
}
|
}
|
||||||
if yyb6 {
|
if yyb8 {
|
||||||
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@ -24826,29 +24864,51 @@ func (x *TCPSocketAction) codecDecodeSelfFromArray(l int, d *codec1978.Decoder)
|
|||||||
if r.TryDecodeAsNil() {
|
if r.TryDecodeAsNil() {
|
||||||
x.Port = pkg4_intstr.IntOrString{}
|
x.Port = pkg4_intstr.IntOrString{}
|
||||||
} else {
|
} else {
|
||||||
yyv7 := &x.Port
|
yyv9 := &x.Port
|
||||||
yym8 := z.DecBinary()
|
yym10 := z.DecBinary()
|
||||||
_ = yym8
|
_ = yym10
|
||||||
if false {
|
if false {
|
||||||
} else if z.HasExtensions() && z.DecExt(yyv7) {
|
} else if z.HasExtensions() && z.DecExt(yyv9) {
|
||||||
} else if !yym8 && z.IsJSONHandle() {
|
} else if !yym10 && z.IsJSONHandle() {
|
||||||
z.DecJSONUnmarshal(yyv7)
|
z.DecJSONUnmarshal(yyv9)
|
||||||
} else {
|
} else {
|
||||||
z.DecFallback(yyv7, false)
|
z.DecFallback(yyv9, false)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
yyj8++
|
||||||
|
if yyhl8 {
|
||||||
|
yyb8 = yyj8 > l
|
||||||
|
} else {
|
||||||
|
yyb8 = r.CheckBreak()
|
||||||
|
}
|
||||||
|
if yyb8 {
|
||||||
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
||||||
|
if r.TryDecodeAsNil() {
|
||||||
|
x.Host = ""
|
||||||
|
} else {
|
||||||
|
yyv11 := &x.Host
|
||||||
|
yym12 := z.DecBinary()
|
||||||
|
_ = yym12
|
||||||
|
if false {
|
||||||
|
} else {
|
||||||
|
*((*string)(yyv11)) = r.DecodeString()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for {
|
for {
|
||||||
yyj6++
|
yyj8++
|
||||||
if yyhl6 {
|
if yyhl8 {
|
||||||
yyb6 = yyj6 > l
|
yyb8 = yyj8 > l
|
||||||
} else {
|
} else {
|
||||||
yyb6 = r.CheckBreak()
|
yyb8 = r.CheckBreak()
|
||||||
}
|
}
|
||||||
if yyb6 {
|
if yyb8 {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
|
||||||
z.DecStructFieldNotFound(yyj6-1, "")
|
z.DecStructFieldNotFound(yyj8-1, "")
|
||||||
}
|
}
|
||||||
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
|
||||||
}
|
}
|
||||||
|
@ -1492,6 +1492,9 @@ type TCPSocketAction struct {
|
|||||||
// Number must be in the range 1 to 65535.
|
// Number must be in the range 1 to 65535.
|
||||||
// Name must be an IANA_SVC_NAME.
|
// Name must be an IANA_SVC_NAME.
|
||||||
Port intstr.IntOrString `json:"port" protobuf:"bytes,1,opt,name=port"`
|
Port intstr.IntOrString `json:"port" protobuf:"bytes,1,opt,name=port"`
|
||||||
|
// Optional: Host name to connect to, defaults to the pod IP.
|
||||||
|
// +optional
|
||||||
|
Host string `json:"host,omitempty" protobuf:"bytes,2,opt,name=host"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// ExecAction describes a "run in container" action.
|
// ExecAction describes a "run in container" action.
|
||||||
|
@ -1840,6 +1840,7 @@ func (ServiceStatus) SwaggerDoc() map[string]string {
|
|||||||
var map_TCPSocketAction = map[string]string{
|
var map_TCPSocketAction = map[string]string{
|
||||||
"": "TCPSocketAction describes an action based on opening a socket",
|
"": "TCPSocketAction describes an action based on opening a socket",
|
||||||
"port": "Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.",
|
"port": "Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.",
|
||||||
|
"host": "Optional: Host name to connect to, defaults to the pod IP.",
|
||||||
}
|
}
|
||||||
|
|
||||||
func (TCPSocketAction) SwaggerDoc() map[string]string {
|
func (TCPSocketAction) SwaggerDoc() map[string]string {
|
||||||
|
@ -4365,6 +4365,7 @@ func Convert_api_Sysctl_To_v1_Sysctl(in *api.Sysctl, out *Sysctl, s conversion.S
|
|||||||
|
|
||||||
func autoConvert_v1_TCPSocketAction_To_api_TCPSocketAction(in *TCPSocketAction, out *api.TCPSocketAction, s conversion.Scope) error {
|
func autoConvert_v1_TCPSocketAction_To_api_TCPSocketAction(in *TCPSocketAction, out *api.TCPSocketAction, s conversion.Scope) error {
|
||||||
out.Port = in.Port
|
out.Port = in.Port
|
||||||
|
out.Host = in.Host
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -4374,6 +4375,7 @@ func Convert_v1_TCPSocketAction_To_api_TCPSocketAction(in *TCPSocketAction, out
|
|||||||
|
|
||||||
func autoConvert_api_TCPSocketAction_To_v1_TCPSocketAction(in *api.TCPSocketAction, out *TCPSocketAction, s conversion.Scope) error {
|
func autoConvert_api_TCPSocketAction_To_v1_TCPSocketAction(in *api.TCPSocketAction, out *TCPSocketAction, s conversion.Scope) error {
|
||||||
out.Port = in.Port
|
out.Port = in.Port
|
||||||
|
out.Host = in.Host
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user