mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 11:21:47 +00:00
ignore CRI PodSandboxNetworkStatus for host network pods
This commit is contained in:
parent
a20b2088ac
commit
bc8e7ac1a0
@ -3284,6 +3284,7 @@ func TestGenerateAPIPodStatusHostNetworkPodIPs(t *testing.T) {
|
|||||||
criPodIPs: []string{"192.168.0.1"},
|
criPodIPs: []string{"192.168.0.1"},
|
||||||
podIPs: []v1.PodIP{
|
podIPs: []v1.PodIP{
|
||||||
{IP: "192.168.0.1"},
|
{IP: "192.168.0.1"},
|
||||||
|
{IP: "fd01::1234"},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -1608,6 +1608,7 @@ func (m *PodIP) GetIp() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// PodSandboxNetworkStatus is the status of the network for a PodSandbox.
|
// PodSandboxNetworkStatus is the status of the network for a PodSandbox.
|
||||||
|
// Currently ignored for pods sharing the host networking namespace.
|
||||||
type PodSandboxNetworkStatus struct {
|
type PodSandboxNetworkStatus struct {
|
||||||
// IP address of the PodSandbox.
|
// IP address of the PodSandbox.
|
||||||
Ip string `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip,omitempty"`
|
Ip string `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip,omitempty"`
|
||||||
|
@ -445,6 +445,7 @@ message PodIP{
|
|||||||
string ip = 1;
|
string ip = 1;
|
||||||
}
|
}
|
||||||
// PodSandboxNetworkStatus is the status of the network for a PodSandbox.
|
// PodSandboxNetworkStatus is the status of the network for a PodSandbox.
|
||||||
|
// Currently ignored for pods sharing the host networking namespace.
|
||||||
message PodSandboxNetworkStatus {
|
message PodSandboxNetworkStatus {
|
||||||
// IP address of the PodSandbox.
|
// IP address of the PodSandbox.
|
||||||
string ip = 1;
|
string ip = 1;
|
||||||
|
@ -1613,6 +1613,7 @@ func (m *PodIP) GetIp() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// PodSandboxNetworkStatus is the status of the network for a PodSandbox.
|
// PodSandboxNetworkStatus is the status of the network for a PodSandbox.
|
||||||
|
// Currently ignored for pods sharing the host networking namespace.
|
||||||
type PodSandboxNetworkStatus struct {
|
type PodSandboxNetworkStatus struct {
|
||||||
// IP address of the PodSandbox.
|
// IP address of the PodSandbox.
|
||||||
Ip string `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip,omitempty"`
|
Ip string `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip,omitempty"`
|
||||||
|
@ -449,6 +449,7 @@ message PodIP{
|
|||||||
string ip = 1;
|
string ip = 1;
|
||||||
}
|
}
|
||||||
// PodSandboxNetworkStatus is the status of the network for a PodSandbox.
|
// PodSandboxNetworkStatus is the status of the network for a PodSandbox.
|
||||||
|
// Currently ignored for pods sharing the host networking namespace.
|
||||||
message PodSandboxNetworkStatus {
|
message PodSandboxNetworkStatus {
|
||||||
// IP address of the PodSandbox.
|
// IP address of the PodSandbox.
|
||||||
string ip = 1;
|
string ip = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user