Svc REST: Add InternalTrafficPolicy tests

Remove older form.
This commit is contained in:
Tim Hockin
2021-08-21 18:39:49 -07:00
parent c71467def0
commit b6da6c9c0f
3 changed files with 218 additions and 95 deletions

View File

@@ -48,7 +48,8 @@ func MakeService(name string, tweaks ...Tweak) *api.Service {
SetTypeClusterIP(svc)
// Default to 1 port
SetPorts(MakeServicePort("", 93, intstr.FromInt(76), api.ProtocolTCP))(svc)
// Default internalTrafficPolicy to "Cluster"
// Default internalTrafficPolicy to "Cluster". This probably should not
// apply to ExternalName, but it went into beta and is not worth breaking.
SetInternalTrafficPolicy(api.ServiceInternalTrafficPolicyCluster)(svc)
for _, tweak := range tweaks {