Add appProtocol to EndpointSlice.Port

This commit is contained in:
John Howard
2019-10-16 14:48:12 -07:00
parent 077f825c58
commit d00794ca60
12 changed files with 185 additions and 49 deletions

View File

@@ -267,7 +267,7 @@ func TestSyncServiceFull(t *testing.T) {
slice := sliceList.Items[0]
assert.Len(t, slice.Endpoints, 2, "Expected 2 endpoints in first slice")
assert.Equal(t, slice.Annotations["endpoints.kubernetes.io/last-change-trigger-time"], serviceCreateTime.Format(time.RFC3339Nano))
assert.EqualValues(t, []discovery.EndpointPort{{
assert.ElementsMatch(t, []discovery.EndpointPort{{
Name: strPtr("tcp-example"),
Protocol: protoPtr(v1.ProtocolTCP),
Port: int32Ptr(int32(80)),