Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 56 for GetOptions (0.14 sec)

  1. staging/src/k8s.io/apiextensions-apiserver/examples/client-go/pkg/client/clientset/versioned/typed/cr/v1/fake/fake_example.go

    // Get takes name of the example, and returns the corresponding example object, and an error if there is any.
    func (c *FakeExamples) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Example, err error) {
    	emptyResult := &v1.Example{}
    	obj, err := c.Fake.
    		Invokes(testing.NewGetAction(examplesResource, c.ns, name), emptyResult)
    
    	if obj == nil {
    		return emptyResult, err
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 12:23:16 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  2. cmd/kubeadm/app/discovery/file/file.go

    		true, func(_ context.Context) (bool, error) {
    			clusterinfoCM, lastError = client.CoreV1().ConfigMaps(metav1.NamespacePublic).Get(context.TODO(), bootstrapapi.ConfigMapClusterInfo, metav1.GetOptions{})
    			if lastError != nil {
    				if apierrors.IsForbidden(lastError) {
    					// If the request is unauthorized, the cluster admin has not granted access to the cluster info configmap for unauthenticated users
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Jan 14 13:07:55 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset/typed/apiextensions/v1beta1/fake/fake_customresourcedefinition.go

    // Get takes name of the customResourceDefinition, and returns the corresponding customResourceDefinition object, and an error if there is any.
    func (c *FakeCustomResourceDefinitions) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.CustomResourceDefinition, err error) {
    	emptyResult := &v1beta1.CustomResourceDefinition{}
    	obj, err := c.Fake.
    		Invokes(testing.NewRootGetAction(customresourcedefinitionsResource, name), emptyResult)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 12:23:16 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  4. pkg/kube/kubetypes/types.go

    }
    
    // ReadAPI exposes a generic API for a client go type for read operations.
    type ReadAPI[T runtime.Object, TL runtime.Object] interface {
    	Get(ctx context.Context, name string, opts metav1.GetOptions) (T, error)
    	List(ctx context.Context, opts metav1.ListOptions) (TL, error)
    	Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Feb 28 16:41:38 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  5. pilot/pkg/serviceregistry/kube/controller/namespacecontroller_test.go

    }
    
    func deleteConfigMap(t *testing.T, client kubernetes.Interface, ns string) {
    	t.Helper()
    	_, err := client.CoreV1().ConfigMaps(ns).Get(context.TODO(), CACertNamespaceConfigMap, metav1.GetOptions{})
    	if err != nil {
    		t.Fatal(err)
    	}
    	if err := client.CoreV1().ConfigMaps(ns).Delete(context.TODO(), CACertNamespaceConfigMap, metav1.DeleteOptions{}); err != nil {
    		t.Fatal(err)
    	}
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 15:07:03 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  6. tests/integration/pilot/vm_test.go

    	}
    }
    
    func scaleDeploymentOrFail(t framework.TestContext, name, namespace string, scale int32) {
    	s, err := t.Clusters().Default().Kube().AppsV1().Deployments(namespace).
    		GetScale(context.TODO(), name, metav1.GetOptions{})
    	if err != nil {
    		t.Fatal(err)
    	}
    	s.Spec.Replicas = scale
    	_, err = t.Clusters().Default().Kube().AppsV1().Deployments(namespace).
    		UpdateScale(context.TODO(), name, s, metav1.UpdateOptions{})
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  7. tests/integration/pilot/cni_race_test.go

    	cniDaemonSet, err := c.(istioKube.CLIClient).
    		Kube().AppsV1().DaemonSets(i.Settings().SystemNamespace).
    		Get(context.Background(), "istio-cni-node", metav1.GetOptions{})
    	if err != nil {
    		ctx.Fatalf("failed to get CNI Daemonset %v", err)
    	}
    	if cniDaemonSet == nil {
    		ctx.Fatal("cannot find CNI Daemonset")
    	}
    	return cniDaemonSet
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 09 16:52:52 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  8. pkg/controller/validatingadmissionpolicystatus/controller_test.go

    				name := policy.Name
    				// wait until the typeChecking is set, which means the type checking
    				// is complete.
    				updated, err := client.AdmissionregistrationV1().ValidatingAdmissionPolicies().Get(ctx, name, metav1.GetOptions{})
    				if err != nil {
    					return false, err
    				}
    				if updated.Status.TypeChecking != nil {
    					policy = updated
    					return true, nil
    				}
    				return false, nil
    			})
    			if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 00:00:21 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset/typed/apiextensions/v1/fake/fake_customresourcedefinition.go

    // Get takes name of the customResourceDefinition, and returns the corresponding customResourceDefinition object, and an error if there is any.
    func (c *FakeCustomResourceDefinitions) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.CustomResourceDefinition, err error) {
    	emptyResult := &v1.CustomResourceDefinition{}
    	obj, err := c.Fake.
    		Invokes(testing.NewRootGetAction(customresourcedefinitionsResource, name), emptyResult)
    	if obj == nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 12:23:16 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  10. pkg/kubelet/volumemanager/reconciler/reconstruct.go

    		rc.volumesNeedUpdateFromNodeStatus = nil
    		return
    	}
    
    	node, fetchErr := rc.kubeClient.CoreV1().Nodes().Get(context.TODO(), string(rc.nodeName), metav1.GetOptions{})
    	if fetchErr != nil {
    		// This may repeat few times per second until kubelet is able to read its own status for the first time.
    		klog.V(4).ErrorS(fetchErr, "Failed to get Node status to reconstruct device paths")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 21 10:23:12 UTC 2024
    - 8.9K bytes
    - Viewed (0)
Back to top