Search Options

Results per page
Sort
Preferred Languages
Advance

Results 151 - 160 of 395 for GetOptions (0.36 sec)

  1. staging/src/k8s.io/apiextensions-apiserver/test/integration/basic_test.go

    			}
    		}
    
    		// Check get for all versions
    		for version2, noxuResourceClient2 := range noxuResourceClients {
    			// Get test
    			gottenNoxuInstance, err := noxuResourceClient2.Get(context.TODO(), "foo", metav1.GetOptions{})
    
    			if disabledVersions[version2] {
    				if !errors.IsNotFound(err) {
    					t.Errorf("expected the get operation fail with NotFound for disabled version %s, got error: %v", version2, err)
    
    				}
    			} else {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 23 11:35:33 UTC 2024
    - 33.4K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiextensions-apiserver/test/integration/table_test.go

    	if err != nil {
    		t.Fatal(err)
    	}
    
    	crd, err = apiExtensionClient.ApiextensionsV1().CustomResourceDefinitions().Get(context.TODO(), crd.Name, metav1.GetOptions{})
    	if err != nil {
    		t.Fatal(err)
    	}
    	t.Logf("table crd created: %#v", crd)
    
    	crClient := newNamespacedCustomResourceVersionedClient("", dynamicClient, crd, "v1")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 02 19:34:41 UTC 2021
    - 18.9K bytes
    - Viewed (0)
  3. pkg/kubelet/pod/mirror_client_test.go

    			err := mc.CreateMirrorPod(pod)
    			if !test.expectSuccess {
    				assert.Error(t, err)
    				return
    			}
    
    			createdPod, err := clientset.CoreV1().Pods(testPodNS).Get(context.TODO(), testPodName, metav1.GetOptions{})
    			require.NoError(t, err)
    
    			// Validate created pod
    			assert.Equal(t, testPodHash, createdPod.Annotations[kubetypes.ConfigMirrorAnnotationKey])
    			assert.Len(t, createdPod.OwnerReferences, 1)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Jan 08 12:44:09 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  4. pkg/registry/policy/poddisruptionbudget/storage/storage.go

    	// we don't destroy it here explicitly.
    }
    
    // Get retrieves the object from the storage. It is required to support Patch.
    func (r *StatusREST) Get(ctx context.Context, name string, options *metav1.GetOptions) (runtime.Object, error) {
    	return r.store.Get(ctx, name, options)
    }
    
    // Update alters the status subset of an object.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 18 09:21:19 UTC 2022
    - 4.2K bytes
    - Viewed (0)
  5. cmd/kubeadm/app/phases/uploadconfig/uploadconfig_test.go

    				}
    			}
    			if tt.verifyResult {
    				controlPlaneCfg, err := client.CoreV1().ConfigMaps(metav1.NamespaceSystem).Get(context.TODO(), kubeadmconstants.KubeadmConfigConfigMap, metav1.GetOptions{})
    				if err != nil {
    					t2.Fatalf("Fail to query ConfigMap error = %v", err)
    				}
    				configData := controlPlaneCfg.Data[kubeadmconstants.ClusterConfigurationConfigMapKey]
    				if configData == "" {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 24 08:46:51 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  6. pkg/registry/admissionregistration/validatingadmissionpolicybinding/storage/storage.go

    	Getter rest.Getter
    }
    
    func (g *DefaultPolicyGetter) GetValidatingAdmissionPolicy(ctx context.Context, name string) (*admissionregistration.ValidatingAdmissionPolicy, error) {
    	p, err := g.Getter.Get(ctx, name, &metav1.GetOptions{})
    	if err != nil {
    		return nil, err
    	}
    	return p.(*admissionregistration.ValidatingAdmissionPolicy), err
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 18 10:11:16 UTC 2022
    - 3.6K bytes
    - Viewed (0)
  7. operator/cmd/mesh/operator-common.go

    func deploymentExists(cs kubernetes.Interface, namespace, name string) (bool, error) {
    	d, err := cs.AppsV1().Deployments(namespace).Get(context.TODO(), name, metav1.GetOptions{})
    	if err != nil {
    		return false, err
    	}
    	return d != nil, nil
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Dec 17 02:25:04 UTC 2022
    - 3.8K bytes
    - Viewed (0)
  8. pkg/registry/resource/podschedulingcontext/storage/storage.go

    	// we don't destroy it here explicitly.
    }
    
    // Get retrieves the object from the storage. It is required to support Patch.
    func (r *StatusREST) Get(ctx context.Context, name string, options *metav1.GetOptions) (runtime.Object, error) {
    	return r.store.Get(ctx, name, options)
    }
    
    // Update alters the status subset of an object.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 14 09:18:08 UTC 2023
    - 4K bytes
    - Viewed (0)
  9. pkg/wasm/cache.go

    const (
    	// oci URL prefix
    	ociURLPrefix = "oci://"
    
    	// sha256 scheme prefix
    	sha256SchemePrefix = "sha256:"
    )
    
    // Cache models a Wasm module cache.
    type Cache interface {
    	Get(url string, opts GetOptions) (string, error)
    	Cleanup()
    }
    
    // LocalFileCache for downloaded Wasm modules. Currently it stores the Wasm module as local file.
    type LocalFileCache struct {
    	// Map from Wasm module checksum to cache entry.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 20:06:41 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  10. tests/integration/pilot/webhook_test.go

    	whc, err := client.AdmissionregistrationV1().ValidatingWebhookConfigurations().Get(context.TODO(),
    		name, metav1.GetOptions{})
    	if err != nil {
    		return nil, fmt.Errorf("could not get validating webhook config %q: %v", name, err)
    	}
    	return whc, nil
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon May 01 13:31:34 UTC 2023
    - 4.7K bytes
    - Viewed (0)
Back to top