mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 17:30:00 +00:00
Merge pull request #126057 from thockin/make-pod-ip-host-ip-required
make PodIP.IP and HostIP.IP required.
This commit is contained in:
commit
a87612b667
6
api/openapi-spec/swagger.json
generated
6
api/openapi-spec/swagger.json
generated
@ -7482,6 +7482,9 @@
|
|||||||
"type": "string"
|
"type": "string"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"required": [
|
||||||
|
"ip"
|
||||||
|
],
|
||||||
"type": "object"
|
"type": "object"
|
||||||
},
|
},
|
||||||
"io.k8s.api.core.v1.HostPathVolumeSource": {
|
"io.k8s.api.core.v1.HostPathVolumeSource": {
|
||||||
@ -9293,6 +9296,9 @@
|
|||||||
"type": "string"
|
"type": "string"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"required": [
|
||||||
|
"ip"
|
||||||
|
],
|
||||||
"type": "object"
|
"type": "object"
|
||||||
},
|
},
|
||||||
"io.k8s.api.core.v1.PodList": {
|
"io.k8s.api.core.v1.PodList": {
|
||||||
|
@ -2814,10 +2814,14 @@
|
|||||||
"description": "HostIP represents a single IP address allocated to the host.",
|
"description": "HostIP represents a single IP address allocated to the host.",
|
||||||
"properties": {
|
"properties": {
|
||||||
"ip": {
|
"ip": {
|
||||||
|
"default": "",
|
||||||
"description": "IP is the IP address assigned to the host",
|
"description": "IP is the IP address assigned to the host",
|
||||||
"type": "string"
|
"type": "string"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"required": [
|
||||||
|
"ip"
|
||||||
|
],
|
||||||
"type": "object"
|
"type": "object"
|
||||||
},
|
},
|
||||||
"io.k8s.api.core.v1.HostPathVolumeSource": {
|
"io.k8s.api.core.v1.HostPathVolumeSource": {
|
||||||
@ -5165,10 +5169,14 @@
|
|||||||
"description": "PodIP represents a single IP address allocated to the pod.",
|
"description": "PodIP represents a single IP address allocated to the pod.",
|
||||||
"properties": {
|
"properties": {
|
||||||
"ip": {
|
"ip": {
|
||||||
|
"default": "",
|
||||||
"description": "IP is the IP address assigned to the pod",
|
"description": "IP is the IP address assigned to the pod",
|
||||||
"type": "string"
|
"type": "string"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"required": [
|
||||||
|
"ip"
|
||||||
|
],
|
||||||
"type": "object"
|
"type": "object"
|
||||||
},
|
},
|
||||||
"io.k8s.api.core.v1.PodList": {
|
"io.k8s.api.core.v1.PodList": {
|
||||||
|
4
pkg/generated/openapi/zz_generated.openapi.go
generated
4
pkg/generated/openapi/zz_generated.openapi.go
generated
@ -23024,11 +23024,13 @@ func schema_k8sio_api_core_v1_HostIP(ref common.ReferenceCallback) common.OpenAP
|
|||||||
"ip": {
|
"ip": {
|
||||||
SchemaProps: spec.SchemaProps{
|
SchemaProps: spec.SchemaProps{
|
||||||
Description: "IP is the IP address assigned to the host",
|
Description: "IP is the IP address assigned to the host",
|
||||||
|
Default: "",
|
||||||
Type: []string{"string"},
|
Type: []string{"string"},
|
||||||
Format: "",
|
Format: "",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
Required: []string{"ip"},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
@ -26744,11 +26746,13 @@ func schema_k8sio_api_core_v1_PodIP(ref common.ReferenceCallback) common.OpenAPI
|
|||||||
"ip": {
|
"ip": {
|
||||||
SchemaProps: spec.SchemaProps{
|
SchemaProps: spec.SchemaProps{
|
||||||
Description: "IP is the IP address assigned to the pod",
|
Description: "IP is the IP address assigned to the pod",
|
||||||
|
Default: "",
|
||||||
Type: []string{"string"},
|
Type: []string{"string"},
|
||||||
Format: "",
|
Format: "",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
Required: []string{"ip"},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
@ -1990,6 +1990,7 @@ message HostAlias {
|
|||||||
// HostIP represents a single IP address allocated to the host.
|
// HostIP represents a single IP address allocated to the host.
|
||||||
message HostIP {
|
message HostIP {
|
||||||
// IP is the IP address assigned to the host
|
// IP is the IP address assigned to the host
|
||||||
|
// +required
|
||||||
optional string ip = 1;
|
optional string ip = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3702,6 +3703,7 @@ message PodExecOptions {
|
|||||||
// PodIP represents a single IP address allocated to the pod.
|
// PodIP represents a single IP address allocated to the pod.
|
||||||
message PodIP {
|
message PodIP {
|
||||||
// IP is the IP address assigned to the pod
|
// IP is the IP address assigned to the pod
|
||||||
|
// +required
|
||||||
optional string ip = 1;
|
optional string ip = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4424,13 +4424,15 @@ type PodDNSConfigOption struct {
|
|||||||
// PodIP represents a single IP address allocated to the pod.
|
// PodIP represents a single IP address allocated to the pod.
|
||||||
type PodIP struct {
|
type PodIP struct {
|
||||||
// IP is the IP address assigned to the pod
|
// IP is the IP address assigned to the pod
|
||||||
IP string `json:"ip,omitempty" protobuf:"bytes,1,opt,name=ip"`
|
// +required
|
||||||
|
IP string `json:"ip" protobuf:"bytes,1,opt,name=ip"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// HostIP represents a single IP address allocated to the host.
|
// HostIP represents a single IP address allocated to the host.
|
||||||
type HostIP struct {
|
type HostIP struct {
|
||||||
// IP is the IP address assigned to the host
|
// IP is the IP address assigned to the host
|
||||||
IP string `json:"ip,omitempty" protobuf:"bytes,1,opt,name=ip"`
|
// +required
|
||||||
|
IP string `json:"ip" protobuf:"bytes,1,opt,name=ip"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// EphemeralContainerCommon is a copy of all fields in Container to be inlined in
|
// EphemeralContainerCommon is a copy of all fields in Container to be inlined in
|
||||||
|
@ -5665,6 +5665,7 @@ var schemaYAML = typed.YAMLObject(`types:
|
|||||||
- name: ip
|
- name: ip
|
||||||
type:
|
type:
|
||||||
scalar: string
|
scalar: string
|
||||||
|
default: ""
|
||||||
- name: io.k8s.api.core.v1.HostPathVolumeSource
|
- name: io.k8s.api.core.v1.HostPathVolumeSource
|
||||||
map:
|
map:
|
||||||
fields:
|
fields:
|
||||||
@ -6770,6 +6771,7 @@ var schemaYAML = typed.YAMLObject(`types:
|
|||||||
- name: ip
|
- name: ip
|
||||||
type:
|
type:
|
||||||
scalar: string
|
scalar: string
|
||||||
|
default: ""
|
||||||
- name: io.k8s.api.core.v1.PodOS
|
- name: io.k8s.api.core.v1.PodOS
|
||||||
map:
|
map:
|
||||||
fields:
|
fields:
|
||||||
|
Loading…
Reference in New Issue
Block a user