Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 2,666 for GetPod (0.45 sec)

  1. pkg/scheduler/internal/cache/fake/fake_cache.go

    	return c.IsAssumedPodFunc(pod), nil
    }
    
    // GetPod is a fake method for testing.
    func (c *Cache) GetPod(pod *v1.Pod) (*v1.Pod, error) {
    	return c.GetPodFunc(pod), nil
    }
    
    // AddNode is a fake method for testing.
    func (c *Cache) AddNode(logger klog.Logger, node *v1.Node) *framework.NodeInfo { return nil }
    
    // UpdateNode is a fake method for testing.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 29 05:26:32 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  2. pkg/scheduler/framework/runtime/waiting_pods_map.go

    			msg := fmt.Sprintf("rejected due to timeout after waiting %v at plugin %v",
    				waitTime, plugin)
    			wp.Reject(plugin, msg)
    		})
    	}
    
    	return wp
    }
    
    // GetPod returns a reference to the waiting pod.
    func (w *waitingPod) GetPod() *v1.Pod {
    	return w.pod
    }
    
    // GetPendingPlugins returns a list of pending permit plugin's name.
    func (w *waitingPod) GetPendingPlugins() []string {
    	w.mu.RLock()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 17 09:07:27 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  3. pkg/scheduler/internal/cache/interface.go

    	// RemovePod removes a pod. The pod's information would be subtracted from assigned node.
    	RemovePod(logger klog.Logger, pod *v1.Pod) error
    
    	// GetPod returns the pod from the cache with the same namespace and the
    	// same name of the specified pod.
    	GetPod(pod *v1.Pod) (*v1.Pod, error)
    
    	// IsAssumedPod returns true if the pod is assumed and not expired.
    	IsAssumedPod(pod *v1.Pod) (bool, error)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 29 05:26:32 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/storage/util_test.go

    		key := "pods/" + obj.Namespace + "/" + obj.Name
    		out := &example.Pod{}
    		err := etcdStorage.Create(context.TODO(), key, obj, out, 0)
    		require.NoError(t, err)
    		return out
    	}
    	getPod := func(name, ns string) *example.Pod {
    		key := "pods/" + ns + "/" + name
    		out := &example.Pod{}
    		err := etcdStorage.Get(context.TODO(), key, storage.GetOptions{}, out)
    		require.NoError(t, err)
    		return out
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 11 12:07:39 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  5. pkg/volume/util/recyclerclient/recycler_client.go

    }
    
    // recyclerClient abstracts access to a Pod by providing a narrower interface.
    // This makes it easier to mock a client for testing.
    type recyclerClient interface {
    	CreatePod(pod *v1.Pod) (*v1.Pod, error)
    	GetPod(name, namespace string) (*v1.Pod, error)
    	DeletePod(name, namespace string) error
    	// WatchPod returns a ListWatch for watching a pod.  The stopChannel is used
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 26 17:14:05 UTC 2022
    - 8.5K bytes
    - Viewed (0)
  6. pkg/controller/serviceaccount/tokengetter.go

    		return serviceAccount, nil
    	}
    	return c.client.CoreV1().ServiceAccounts(namespace).Get(context.TODO(), name, metav1.GetOptions{})
    }
    
    func (c clientGetter) GetPod(namespace, name string) (*v1.Pod, error) {
    	if pod, err := c.podLister.Pods(namespace).Get(name); err == nil {
    		return pod, nil
    	}
    	return c.client.CoreV1().Pods(namespace).Get(context.TODO(), name, metav1.GetOptions{})
    }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 21:15:10 UTC 2023
    - 3K bytes
    - Viewed (0)
  7. pkg/volume/util/recyclerclient/recycler_client_test.go

    	if c.pod == nil {
    		c.pod = pod
    		return c.pod, nil
    	}
    	// Simulate "already exists" error
    	return nil, errors.NewAlreadyExists(api.Resource("pods"), pod.Name)
    }
    
    func (c *mockRecyclerClient) GetPod(name, namespace string) (*v1.Pod, error) {
    	if c.pod != nil {
    		return c.pod, nil
    	}
    	return nil, fmt.Errorf("pod does not exist")
    }
    
    func (c *mockRecyclerClient) DeletePod(name, namespace string) error {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 31 14:16:53 UTC 2022
    - 8.5K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiextensions-apiserver/test/integration/ratcheting_test_cases/invalid/httproute/invalid-method.yaml

    apiVersion: gateway.networking.k8s.io/v1beta1
    kind: HTTPRoute
    metadata:
      name: invalid-method
    spec:
      rules:
      - matches:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 27 17:15:18 UTC 2023
    - 145 bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiextensions-apiserver/test/integration/ratcheting_test_cases/valid/multicluster/httproute-method.yaml

    #$ Used in:
    #$ - geps/gep-1748.md
    kind: HTTPRoute
    apiVersion: gateway.networking.k8s.io/v1beta1
    metadata:
      name: api
    spec:
      parentRefs:
      - name: api-gw
      rules:
      - matches:
        - method: POST
        - method: PUT
        - method: DELETE
        backendRefs:
        - group: multicluster.x-k8s.io
          kind: ServiceImport
          name: api-primary
          port: 8080
      - backendRefs:
        - group: multicluster.x-k8s.io
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 27 17:15:18 UTC 2023
    - 474 bytes
    - Viewed (0)
  10. tests/integration/security/testdata/authz/not-method.yaml.tmpl

    Akshay J Nambiar <******@****.***> 1683529381 +0530
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon May 08 07:03:01 UTC 2023
    - 268 bytes
    - Viewed (0)
Back to top