Search Options

Results per page
Sort
Preferred Languages
Advance

Results 211 - 220 of 395 for GetOptions (0.18 sec)

  1. pilot/pkg/leaderelection/k8sleaderelection/k8sresourcelock/leaselock.go

    func (ll *LeaseLock) Get(ctx context.Context) (*LeaderElectionRecord, []byte, error) {
    	var err error
    	ll.lease, err = ll.Client.Leases(ll.LeaseMeta.Namespace).Get(ctx, ll.LeaseMeta.Name, metav1.GetOptions{})
    	if err != nil {
    		return nil, nil, err
    	}
    	record := LeaseSpecToLeaderElectionRecord(&ll.lease.Spec)
    	recordByte, err := json.Marshal(*record)
    	if err != nil {
    		return nil, nil, err
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Jun 04 16:02:26 UTC 2022
    - 4.3K bytes
    - Viewed (0)
  2. pkg/kubelet/configmap/configmap_manager_test.go

    	}
    }
    
    func noObjectTTL() (time.Duration, bool) {
    	return time.Duration(0), false
    }
    
    func getConfigMap(fakeClient clientset.Interface) manager.GetObjectFunc {
    	return func(namespace, name string, opts metav1.GetOptions) (runtime.Object, error) {
    		return fakeClient.CoreV1().ConfigMaps(namespace).Get(context.TODO(), name, opts)
    	}
    }
    
    type envConfigMaps 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.8K bytes
    - Viewed (0)
  3. subprojects/core/src/main/java/org/gradle/api/internal/tasks/TaskOptionsGenerator.java

         */
        public static TaskOptions generate(Object task, OptionReader optionReader) {
            TaskOptions taskOptions = new TaskOptions();
            Map<String, OptionDescriptor> options = optionReader.getOptions(task);
            options.putAll(generateOppositeOptions(task, options, taskOptions));
            List<OptionDescriptor> sortedOptions = CollectionUtils.sort(options.values(), BooleanOptionElement.groupOppositeOptions());
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jun 28 09:20:18 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  4. pkg/registry/admissionregistration/validatingadmissionpolicy/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)
    }
    
    // GetResetFields returns the fields that got reset by the REST endpoint
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 07 23:43:34 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/predicates/namespace/matcher.go

    	if apierrors.IsNotFound(err) {
    		// in case of latency in our caches, make a call direct to storage to verify that it truly exists or not
    		namespace, err = m.Client.CoreV1().Namespaces().Get(context.TODO(), namespaceName, metav1.GetOptions{})
    		if err != nil {
    			return nil, err
    		}
    	}
    	return namespace.Labels, nil
    }
    
    // MatchNamespaceSelector decideds whether the request matches the
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jul 15 00:53:08 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  6. pkg/kubelet/kuberuntime/util/util.go

    		return true, sandboxStatus.Metadata.Attempt + 1, sandboxStatus.Id
    	}
    
    	// Needs to create a new sandbox when network namespace changed.
    	if sandboxStatus.GetLinux().GetNamespaces().GetOptions().GetNetwork() != NetworkNamespaceForPod(pod) {
    		klog.V(2).InfoS("Sandbox for pod has changed. Need to start a new one", "pod", klog.KObj(pod))
    		return true, sandboxStatus.Metadata.Attempt + 1, ""
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 13 23:14:48 UTC 2024
    - 4.6K bytes
    - Viewed (1)
  7. tests/integration/ambient/gateway_conformance_test.go

    			ambientComponent.NewWaypointProxyOrFail(ctx, meshNS, "namespace")
    			for _, k := range ctx.AllClusters() {
    				ns, err := k.Kube().CoreV1().Namespaces().Get(ctx.Context(), meshNS.Name(), metav1.GetOptions{})
    				if err != nil {
    					t.Fatal(err)
    				}
    				labels := ns.Labels
    				if labels == nil {
    					labels = make(map[string]string)
    				}
    				labels[constants.AmbientUseWaypointLabel] = "namespace"
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 02 21:29:40 UTC 2024
    - 6K bytes
    - Viewed (0)
  8. platforms/jvm/scala/src/integTest/groovy/org/gradle/integtests/ScalaAnnotationProcessingIntegrationTest.groovy

                        public synchronized void init(ProcessingEnvironment processingEnv) {
                            super.init(processingEnv);
    
                            String fileName = processingEnv.getOptions().getOrDefault("fileName", "generated");
    
                            try {
                                new File("${escapeString(testDirectory.absolutePath)}/" + fileName + ".txt").createNewFile();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 15:43:33 UTC 2023
    - 11.3K bytes
    - Viewed (0)
  9. pkg/registry/core/serviceaccount/storage/storage_test.go

    // When more test cases are added, this getter will need extending/replacing to have a real test implementation.
    type panicGetter struct{}
    
    func (f panicGetter) Get(ctx context.Context, name string, options *metav1.GetOptions) (runtime.Object, error) {
    	panic("not implemented")
    }
    
    var _ rest.Getter = panicGetter{}
    
    func validNewServiceAccount(name string) *api.ServiceAccount {
    	return &api.ServiceAccount{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  10. pkg/registry/batch/job/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
    - 6.1K bytes
    - Viewed (0)
Back to top