Skip to content

Commit

Permalink
add todos
Browse files Browse the repository at this point in the history
  • Loading branch information
agau4779 committed Jun 20, 2018
1 parent 85b5462 commit b511933
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 5 additions & 1 deletion pkg/annotations/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,11 @@ type ExposeNegAnnotation map[int32]NegAttributes

// NegAttributes houses the attributes of the NEGs that are associated with the
// service. Future extensions to the Expose NEGs annotation should be added here.
type NegAttributes struct{}
type NegAttributes struct {
// Note - in the future, this will be used for custom naming of NEGs.
// Currently has no effect.
Name string `json:"name,omitempty"`
}

// AppProtocol describes the service protocol.
type AppProtocol string
Expand Down
3 changes: 2 additions & 1 deletion pkg/neg/controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,8 @@ func TestGatherPortMappingUsedByIngress(t *testing.T) {

func TestSyncNegAnnotation(t *testing.T) {
t.Parallel()

// TODO: test that c.serviceLister.Update is called whenever the annotation
// is changed. When there is no change, Update should not be called.
controller := newTestController(fake.NewSimpleClientset())
defer controller.stop()
controller.serviceLister.Add(newTestService(false, []int32{}))
Expand Down

0 comments on commit b511933

Please sign in to comment.