mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-15 06:01:50 +00:00
tidy
This commit is contained in:
@@ -329,8 +329,6 @@ func discoverService(f *framework.Framework, name string, exists bool) {
|
|||||||
command := []string{"sh", "-c", fmt.Sprintf("until nslookup '%s'; do sleep 1; done", name)}
|
command := []string{"sh", "-c", fmt.Sprintf("until nslookup '%s'; do sleep 1; done", name)}
|
||||||
By(fmt.Sprintf("Looking up %q", name))
|
By(fmt.Sprintf("Looking up %q", name))
|
||||||
|
|
||||||
defer f.Client.Pods(f.Namespace.Name).Delete(FederatedServicePod, api.NewDeleteOptions(0))
|
|
||||||
|
|
||||||
pod := &api.Pod{
|
pod := &api.Pod{
|
||||||
ObjectMeta: api.ObjectMeta{
|
ObjectMeta: api.ObjectMeta{
|
||||||
Name: FederatedServicePod,
|
Name: FederatedServicePod,
|
||||||
@@ -349,8 +347,8 @@ func discoverService(f *framework.Framework, name string, exists bool) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_, err := f.Client.Pods(f.Namespace.Name).Create(pod)
|
_, err := f.Client.Pods(f.Namespace.Name).Create(pod)
|
||||||
Expect(err).
|
Expect(err).NotTo(HaveOccurred(), "Trying to create pod to run %q", command)
|
||||||
NotTo(HaveOccurred(), "Trying to create pod to run %q", command)
|
defer f.Client.Pods(f.Namespace.Name).Delete(FederatedServicePod, api.NewDeleteOptions(0))
|
||||||
|
|
||||||
if exists {
|
if exists {
|
||||||
// TODO(mml): Eventually check the IP address is correct, too.
|
// TODO(mml): Eventually check the IP address is correct, too.
|
||||||
|
Reference in New Issue
Block a user