Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 184 for GetOptions (0.15 sec)

  1. istioctl/pkg/xds/google.go

    	client := exClient.Dynamic()
    	gvr := schema.GroupVersionResource{
    		Group:    "hub.gke.io",
    		Version:  "v1",
    		Resource: "memberships",
    	}
    	u, err := client.Resource(gvr).Get(ctx, "membership", metav1.GetOptions{})
    	if err != nil {
    		return nil, err
    	}
    	spec, ok := u.Object["spec"].(map[string]any)
    	if !ok {
    		return nil, errors.New(`field "spec" is not a map`)
    	}
    	var mem hubMembership
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Nov 14 20:23:34 UTC 2022
    - 3.4K bytes
    - Viewed (0)
  2. tests/integration/telemetry/util.go

    func GetTrustDomain(cluster cluster.Cluster, istioNamespace string) string {
    	meshConfigMap, err := cluster.Kube().CoreV1().ConfigMaps(istioNamespace).Get(context.Background(), "istio", metav1.GetOptions{})
    	defaultTrustDomain := mesh.DefaultMeshConfig().TrustDomain
    	if err != nil {
    		return defaultTrustDomain
    	}
    
    	configYaml, ok := meshConfigMap.Data["mesh"]
    	if !ok {
    		return defaultTrustDomain
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Oct 13 16:30:22 UTC 2022
    - 4.8K bytes
    - Viewed (0)
  3. pkg/registry/autoscaling/horizontalpodautoscaler/storage/storage_test.go

    	if err != nil {
    		t.Fatalf("Unexpected error: %v", err)
    	}
    	obj, err := storage.Get(ctx, "foo", &metav1.GetOptions{})
    	if err != nil {
    		t.Fatalf("Unexpected error: %v", err)
    	}
    	autoscalerOut := obj.(*autoscaling.HorizontalPodAutoscaler)
    	// only compare the meaningful update b/c we can't compare due to metadata
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:46:12 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  4. pkg/registry/autoscaling/horizontalpodautoscaler/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.6K bytes
    - Viewed (0)
  5. operator/pkg/util/k8s.go

    		namespace = constants.IstioSystemNamespace
    	}
    	// check if the namespace already exists. If yes, do nothing. If no, create a new one.
    	if _, err := cs.CoreV1().Namespaces().Get(context.TODO(), namespace, metav1.GetOptions{}); err != nil {
    		if errors.IsNotFound(err) {
    			ns := &v1.Namespace{ObjectMeta: metav1.ObjectMeta{
    				Name:   namespace,
    				Labels: map[string]string{},
    			}}
    			if network != "" {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Feb 27 16:55:16 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  6. pilot/pkg/leaderelection/k8sleaderelection/k8sresourcelock/endpointslock.go

    	var record LeaderElectionRecord
    	var err error
    	el.e, err = el.Client.Endpoints(el.EndpointsMeta.Namespace).Get(ctx, el.EndpointsMeta.Name, metav1.GetOptions{})
    	if err != nil {
    		return nil, nil, err
    	}
    	if el.e.Annotations == nil {
    		el.e.Annotations = make(map[string]string)
    	}
    	recordStr, found := el.e.Annotations[LeaderElectionRecordAnnotationKey]
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Oct 11 16:58:48 UTC 2021
    - 3.7K bytes
    - Viewed (0)
  7. plugin/pkg/admission/namespace/exists/admission.go

    	}
    
    	// in case of latency in our caches, make a call direct to storage to verify that it truly exists or not
    	_, err = e.client.CoreV1().Namespaces().Get(context.TODO(), a.GetNamespace(), metav1.GetOptions{})
    	if err != nil {
    		if errors.IsNotFound(err) {
    			return err
    		}
    		return errors.NewInternalError(err)
    	}
    
    	return nil
    }
    
    // NewExists creates a new namespace exists admission control handler
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Feb 08 02:16:47 UTC 2020
    - 3.9K bytes
    - Viewed (0)
  8. platforms/native/platform-native/src/main/java/org/gradle/nativeplatform/toolchain/internal/swift/SwiftDepsHandler.java

                return version;
            }
    
            public void setVersion(String version) {
                this.version = version;
            }
    
            public String getOptions() {
                return options;
            }
    
            public void setOptions(String options) {
                this.options = options;
            }
    
            public List<Long> getBuild_time() {
                return build_time;
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  9. pkg/kubelet/secret/secret_manager_test.go

    	}
    }
    
    func noObjectTTL() (time.Duration, bool) {
    	return time.Duration(0), false
    }
    
    func getSecret(fakeClient clientset.Interface) manager.GetObjectFunc {
    	return func(namespace, name string, opts metav1.GetOptions) (runtime.Object, error) {
    		return fakeClient.CoreV1().Secrets(namespace).Get(context.TODO(), name, opts)
    	}
    }
    
    type envSecrets struct {
    	envVarNames  []string
    	envFromNames []string
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 10 10:20:09 UTC 2021
    - 4.5K bytes
    - Viewed (0)
  10. pkg/registry/core/resourcequota/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)
Back to top