Skip to content

Commit

Permalink
remove unscoped todo's
Browse files Browse the repository at this point in the history
  • Loading branch information
matmerr committed Jan 17, 2023
1 parent ae9d23b commit 330c050
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/connectivity/probe/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ func (r *Resources) CreateService(svc *v1.Service) (*Resources, error) {
}
newServices := map[string]*v1.Service{}
for oldServiceName, oldService := range r.Services {
newServices[oldServiceName] = oldService // TODO: service type is pointer, duplicate resource type needs to be deep copied, just following paradigm for now
newServices[oldServiceName] = oldService // Note: service type is pointer, duplicate resource type needs to be deep copied
}
newServices[svc.Name] = svc
return &Resources{
Expand Down
3 changes: 1 addition & 2 deletions pkg/generator/loadbalancertestcases.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import (
)

func (t *TestCaseGenerator) LoadBalancerTestCase() []*TestCase {
// TODO: simplify this struct passed to CreateService
svc1 := &v1.Service{
ObjectMeta: metav1.ObjectMeta{
Name: "test-service-name",
Expand Down Expand Up @@ -51,7 +50,7 @@ func (t *TestCaseGenerator) LoadBalancerTestCase() []*TestCase {
NewTestCase("should allow access to nodeport with no netpols applied",
NewStringSet(TagLoadBalancer),
NewTestStep(probe,
CreateService(svc1), // TODO: add service reset, without removing core test services
CreateService(svc1),
),
),
NewTestCase("should deny access to nodeport with netpols applied",
Expand Down

0 comments on commit 330c050

Please sign in to comment.