Add more k8s tests

This commit is contained in:
Daniel Tomcej 2018-06-19 14:10:03 -06:00 committed by Traefiker Bot
parent e31c85aace
commit aa6fea7f21
3 changed files with 97 additions and 7 deletions

View file

@ -61,6 +61,13 @@ func eAddress(ip string) func(*corev1.EndpointAddress) {
}
}
func eAddressWithTargetRef(targetRef, ip string) func(*corev1.EndpointAddress) {
return func(address *corev1.EndpointAddress) {
address.TargetRef = &corev1.ObjectReference{Name: targetRef}
address.IP = ip
}
}
func ePorts(opts ...func(port *corev1.EndpointPort)) func(*corev1.EndpointSubset) {
return func(spec *corev1.EndpointSubset) {
for _, opt := range opts {