fix nslookup invocation

This commit is contained in:
Matt Liggett 2016-06-10 17:40:38 -07:00
parent 6209b1b60c
commit 2c35ce6b8f

View File

@ -256,6 +256,10 @@ func createService(fcs *federation_internalclientset.Clientset, clusterClientSet
} }
func discoverService(f *framework.Framework, name string, exists bool) { func discoverService(f *framework.Framework, name string, exists bool) {
command := []string{"nslookup", name}
framework.Logf("Looking for the service with pod command %q", command)
pod := &api.Pod{ pod := &api.Pod{
ObjectMeta: api.ObjectMeta{ ObjectMeta: api.ObjectMeta{
Name: FederatedServicePod, Name: FederatedServicePod,
@ -266,7 +270,7 @@ func discoverService(f *framework.Framework, name string, exists bool) {
{ {
Name: "federated-service-discovery-container", Name: "federated-service-discovery-container",
Image: "gcr.io/google_containers/busybox:1.24", Image: "gcr.io/google_containers/busybox:1.24",
Command: []string{"sh", "-c", "nslookup", name}, Command: command,
}, },
}, },
RestartPolicy: api.RestartPolicyNever, RestartPolicy: api.RestartPolicyNever,