mirror of https://github.com/k3s-io/k3s
Merge pull request #27481 from mml/fed-nslookup
Automatic merge from submit-queue fix nslookup invocation The old way with 'sh -c' was not correct. For #26762pull/6/head
commit
947f60843e
|
@ -262,6 +262,10 @@ func createService(fcs *federation_internalclientset.Clientset, clusterClientSet
|
|||
}
|
||||
|
||||
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{
|
||||
ObjectMeta: api.ObjectMeta{
|
||||
Name: FederatedServicePod,
|
||||
|
@ -272,7 +276,7 @@ func discoverService(f *framework.Framework, name string, exists bool) {
|
|||
{
|
||||
Name: "federated-service-discovery-container",
|
||||
Image: "gcr.io/google_containers/busybox:1.24",
|
||||
Command: []string{"sh", "-c", "nslookup", name},
|
||||
Command: command,
|
||||
},
|
||||
},
|
||||
RestartPolicy: api.RestartPolicyNever,
|
||||
|
|
Loading…
Reference in New Issue