Skip to content
1 change: 0 additions & 1 deletion pkg/deploy/elbv2/frontend_nlb_target_synthesizer.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,6 @@ func (s *frontendNlbTargetSynthesizer) PostSynthesize(ctx context.Context) error
})

if err != nil {
s.logger.Error(err, "Got this error!")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we log debug error for troubleshooting to know the exact error?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I removed this because it's an expected error message (when the ALB is still being provisioned)

requeueMsg := "Failed to register target, retrying after deplay for target group: " + resTG.Status.TargetGroupARN
return ctrlerrors.NewRequeueNeededAfter(requeueMsg, 15*time.Second)
}
Expand Down
28 changes: 8 additions & 20 deletions pkg/gateway/model/model_build_listener_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1317,11 +1317,8 @@ func Test_BuildListenerRules(t *testing.T) {
},
BackendRefs: []routeutils.Backend{
{
ServiceBackend: &routeutils.ServiceBackendConfig{
//Service: &corev1.Service{},
//ServicePort: &corev1.ServicePort{Name: "svcport"},
},
Weight: 1,
ServiceBackend: &routeutils.ServiceBackendConfig{},
Weight: 1,
},
},
},
Expand Down Expand Up @@ -1390,11 +1387,8 @@ func Test_BuildListenerRules(t *testing.T) {
},
BackendRefs: []routeutils.Backend{
{
ServiceBackend: &routeutils.ServiceBackendConfig{
//Service: &corev1.Service{},
//ServicePort: &corev1.ServicePort{Name: "svcport"},
},
Weight: 1,
ServiceBackend: &routeutils.ServiceBackendConfig{},
Weight: 1,
},
},
},
Expand Down Expand Up @@ -1450,11 +1444,8 @@ func Test_BuildListenerRules(t *testing.T) {
},
BackendRefs: []routeutils.Backend{
{
ServiceBackend: &routeutils.ServiceBackendConfig{
//Service: &corev1.Service{},
//ServicePort: &corev1.ServicePort{Name: "svcport"},
},
Weight: 1,
ServiceBackend: &routeutils.ServiceBackendConfig{},
Weight: 1,
},
},
ListenerRuleConfig: &elbv2gw.ListenerRuleConfiguration{
Expand Down Expand Up @@ -1525,11 +1516,8 @@ func Test_BuildListenerRules(t *testing.T) {
},
BackendRefs: []routeutils.Backend{
{
ServiceBackend: &routeutils.ServiceBackendConfig{
//Service: &corev1.Service{},
//ServicePort: &corev1.ServicePort{Name: "svcport"},
},
Weight: 1,
ServiceBackend: &routeutils.ServiceBackendConfig{},
Weight: 1,
},
},
ListenerRuleConfig: &elbv2gw.ListenerRuleConfiguration{
Expand Down
1 change: 0 additions & 1 deletion pkg/gateway/model/model_build_target_group_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1782,7 +1782,6 @@ func Test_buildTargetGroupFromGateway(t *testing.T) {
assert.True(t, exists)
assert.Equal(t, result.Spec.Name, frontendData.Name)
assert.Equal(t, tc.listenerPort, frontendData.Port)
//assert.Equal(t, tc.backendConfig.GetALBARN(), frontendData.TargetARN.Resolve(context.Background()))
assert.Equal(t, *result.Spec.Port, frontendData.TargetPort)
}
})
Expand Down
Loading