Skip to content

Commit

Permalink
clean
Browse files Browse the repository at this point in the history
  • Loading branch information
weibaohui committed Nov 25, 2023
1 parent 8b7f3e4 commit 636b265
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions BlazorApp/Service/impl/PodService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,6 @@ public IList<V1Pod> ListByNodeName(string nodeName)
.ToList();
}

private IList<V1Pod> ListPodByNamespace(string ns)
{
var pods = List();


return pods.Where(x => x.Namespace() == ns).ToList();
}


//
public async Task<bool> DeletePod(string ns, string name)
Expand Down Expand Up @@ -90,10 +82,6 @@ public async Task<Stream> Logs(string podNs, string podName, string containerNam
// await stream.CopyToAsync(Console.OpenStandardOutput());
}

public Task<IList<V1Pod>> ListItemsByNamespaceAsync(string ns)
{
return Task.FromResult<IList<V1Pod>>(ListPodByNamespace(ns));
}

public IEnumerable<Tuple<string, int>> NodePodsNum()
{
Expand All @@ -109,4 +97,4 @@ public IEnumerable<Tuple<string, int>> NodePodsNum()
return tuples;
}
}
}
}

0 comments on commit 636b265

Please sign in to comment.