Search Options

Results per page
Sort
Preferred Languages
Advance

Results 131 - 140 of 256 for GetOptions (0.15 sec)

  1. istioctl/pkg/waypoint/waypoint.go

    				defer ticker.Stop()
    				for range ticker.C {
    					programmed := false
    					gwc, err := kubeClient.GatewayAPI().GatewayV1().Gateways(ctx.NamespaceOrDefault(ctx.Namespace())).Get(context.TODO(), gw.Name, metav1.GetOptions{})
    					if err == nil {
    						// Check if gateway has Programmed condition set to true
    						for _, cond := range gwc.Status.Conditions {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 15:59:33 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  2. 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)
  3. pkg/registry/networking/ingress/storage/storage_test.go

    	if err != nil {
    		t.Fatalf("Unexpected error: %v", err)
    	}
    	obj, err := storage.Get(ctx, ing.Name, &metav1.GetOptions{})
    	if err != nil {
    		t.Errorf("unexpected error: %v", err)
    	}
    	ingOut := obj.(*networking.Ingress)
    	// only compare relevant changes b/c of difference in metadata
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 15 09:01:21 UTC 2023
    - 8.4K bytes
    - Viewed (0)
  4. 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)
  5. pkg/controller/daemon/update.go

    	canAdoptFunc := controller.RecheckDeletionTimestamp(func(ctx context.Context) (metav1.Object, error) {
    		fresh, err := dsc.kubeClient.AppsV1().DaemonSets(ds.Namespace).Get(ctx, ds.Name, metav1.GetOptions{})
    		if err != nil {
    			return nil, err
    		}
    		if fresh.UID != ds.UID {
    			return nil, fmt.Errorf("original DaemonSet %v/%v is gone: got uid %v, wanted %v", ds.Namespace, ds.Name, fresh.UID, ds.UID)
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 13 16:53:53 UTC 2024
    - 24.4K bytes
    - Viewed (0)
  6. pkg/api/testing/serialization_test.go

    	roundtrip.RoundTripSpecificKind(t, internalGVK, legacyscheme.Scheme, legacyscheme.Codecs, fuzzer, nil)
    }
    
    var nonRoundTrippableTypes = sets.New[string](
    	"ExportOptions",
    	"GetOptions",
    	// WatchEvent does not include kind and version and can only be deserialized
    	// implicitly (if the caller expects the specific object). The watch call defines
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Sep 25 11:04:08 UTC 2023
    - 19.3K bytes
    - Viewed (0)
  7. pkg/volume/csi/csi_block.go

    		nodeName := string(m.plugin.host.GetNodeName())
    		attachID := getAttachmentName(csiSource.VolumeHandle, csiSource.Driver, nodeName)
    		attachment, err = m.k8s.StorageV1().VolumeAttachments().Get(context.TODO(), attachID, meta.GetOptions{})
    		if err != nil {
    			return "", errors.New(log("blockMapper.SetupDevice failed to get volume attachment [id=%v]: %v", attachID, err))
    		}
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Sep 11 06:07:40 UTC 2023
    - 20.1K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. 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)
Back to top