Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func Test_buildPerNodeLBs_OCPHackForDNS(t *testing.T) {
vips: []string{"192.168.1.1"},
protocol: corev1.ProtocolTCP,
inport: 80,
clusterEndpoints: lbEndpoints{
clusterEndpoints: util.LBEndpoints{
V4IPs: []string{"10.128.0.2", "10.128.1.2"},
Port: 8080,
},
Expand Down Expand Up @@ -263,11 +263,11 @@ func Test_buildPerNodeLBs_OCPHackForLocalWithFallback(t *testing.T) {
inport: 5, // node port
externalTrafficLocal: true,
hasNodePort: true,
clusterEndpoints: lbEndpoints{
clusterEndpoints: util.LBEndpoints{
V4IPs: []string{"10.128.0.2", "10.128.1.2"},
Port: outport,
},
nodeEndpoints: map[string]lbEndpoints{
nodeEndpoints: map[string]util.LBEndpoints{
nodeA: {V4IPs: []string{"10.128.0.2"}, Port: outport},
nodeB: {V4IPs: []string{"10.128.1.2"}, Port: outport},
},
Expand All @@ -277,11 +277,11 @@ func Test_buildPerNodeLBs_OCPHackForLocalWithFallback(t *testing.T) {
protocol: corev1.ProtocolTCP,
inport: inport,
externalTrafficLocal: true,
clusterEndpoints: lbEndpoints{
clusterEndpoints: util.LBEndpoints{
V4IPs: []string{"10.128.0.2", "10.128.1.2"},
Port: outport,
},
nodeEndpoints: map[string]lbEndpoints{
nodeEndpoints: map[string]util.LBEndpoints{
nodeA: {V4IPs: []string{"10.128.0.2"}, Port: outport},
nodeB: {V4IPs: []string{"10.128.1.2"}, Port: outport},
},
Expand Down Expand Up @@ -362,11 +362,11 @@ func Test_buildPerNodeLBs_OCPHackForLocalWithFallback(t *testing.T) {
inport: 5, // node port
externalTrafficLocal: true,
hasNodePort: true,
clusterEndpoints: lbEndpoints{
clusterEndpoints: util.LBEndpoints{
V4IPs: []string{"10.128.1.2"}, // only endpoint on node-b is running
Port: outport,
},
nodeEndpoints: map[string]lbEndpoints{
nodeEndpoints: map[string]util.LBEndpoints{
nodeB: {V4IPs: []string{"10.128.1.2"}, Port: outport},
},
},
Expand All @@ -375,11 +375,11 @@ func Test_buildPerNodeLBs_OCPHackForLocalWithFallback(t *testing.T) {
protocol: corev1.ProtocolTCP,
inport: inport,
externalTrafficLocal: true,
clusterEndpoints: lbEndpoints{
clusterEndpoints: util.LBEndpoints{
V4IPs: []string{"10.128.1.2"},
Port: outport,
},
nodeEndpoints: map[string]lbEndpoints{
nodeEndpoints: map[string]util.LBEndpoints{
nodeB: {V4IPs: []string{"10.128.1.2"}, Port: outport},
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4592,7 +4592,7 @@ func Test_makeNodeSwitchTargetIPs(t *testing.T) {
vips: []string{"1.2.3.4", "fe10::1"},
protocol: corev1.ProtocolTCP,
inport: 80,
clusterEndpoints: lbEndpoints{
clusterEndpoints: util.LBEndpoints{
V4IPs: []string{"192.168.1.1"}, // on nodeB
V6IPs: []string{"fe00:0:0:0:2::2"}, // on nodeB
Port: 8080,
Expand Down