mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-20 09:33:52 +00:00
Pass ListOptions to List() methods.
This commit is contained in:
@@ -430,7 +430,7 @@ func (config *KubeProxyTestConfig) setup() {
|
||||
}
|
||||
|
||||
By("Getting two nodes")
|
||||
nodeList, err := config.f.Client.Nodes().List(labels.Everything(), fields.Everything())
|
||||
nodeList, err := config.f.Client.Nodes().List(labels.Everything(), fields.Everything(), unversioned.ListOptions{})
|
||||
Expect(err).NotTo(HaveOccurred(), fmt.Sprintf("Failed to get node list: %v", err))
|
||||
config.externalAddrs = NodeAddresses(nodeList, api.NodeExternalIP)
|
||||
if len(config.externalAddrs) < 2 {
|
||||
@@ -458,7 +458,7 @@ func (config *KubeProxyTestConfig) setup() {
|
||||
|
||||
func (config *KubeProxyTestConfig) cleanup() {
|
||||
nsClient := config.getNamespacesClient()
|
||||
nsList, err := nsClient.List(nil, nil)
|
||||
nsList, err := nsClient.List(nil, nil, unversioned.ListOptions{})
|
||||
if err == nil {
|
||||
for _, ns := range nsList.Items {
|
||||
if strings.Contains(ns.Name, config.f.BaseName) && ns.Name != config.f.Namespace.Name {
|
||||
@@ -469,7 +469,7 @@ func (config *KubeProxyTestConfig) cleanup() {
|
||||
}
|
||||
|
||||
func (config *KubeProxyTestConfig) createNetProxyPods(podName string, selector map[string]string) []*api.Pod {
|
||||
nodes, err := config.f.Client.Nodes().List(labels.Everything(), fields.Everything())
|
||||
nodes, err := config.f.Client.Nodes().List(labels.Everything(), fields.Everything(), unversioned.ListOptions{})
|
||||
Expect(err).NotTo(HaveOccurred())
|
||||
|
||||
// create pods, one for each node
|
||||
|
Reference in New Issue
Block a user