Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 261 for GetOptions (0.31 sec)

  1. pkg/kubelet/util/util.go

    	"k8s.io/kubernetes/pkg/util/filesystem"
    )
    
    // FromApiserverCache modifies <opts> so that the GET request will
    // be served from apiserver cache instead of from etcd.
    func FromApiserverCache(opts *metav1.GetOptions) {
    	opts.ResourceVersion = "0"
    }
    
    var IsUnixDomainSocket = filesystem.IsUnixDomainSocket
    
    // GetNodenameForKernel gets hostname value to set in the hostname field (the nodename field of struct utsname) of the pod.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 17 18:07:39 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/registry/generic/registry/dryrun_test.go

    	err := s.Create(context.Background(), "key", obj, out, 0, true)
    	if err != nil {
    		t.Fatalf("Failed to create new dry-run object: %v", err)
    	}
    
    	err = s.Get(context.Background(), "key", storage.GetOptions{}, out)
    	if e, ok := err.(*storage.StorageError); !ok || e.Code != storage.ErrCodeKeyNotFound {
    		t.Errorf("Expected key to be not found, error: %v", err)
    	}
    }
    
    func TestDryRunCreateReturnsObject(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Aug 24 09:23:05 UTC 2023
    - 9.9K bytes
    - Viewed (0)
  3. pkg/controller/storageversiongc/gc_controller.go

    	return true
    }
    
    func (c *Controller) processDeletedLease(ctx context.Context, name string) error {
    	_, err := c.kubeclientset.CoordinationV1().Leases(metav1.NamespaceSystem).Get(ctx, name, metav1.GetOptions{})
    	// the lease isn't deleted, nothing we need to do here
    	if err == nil {
    		return nil
    	}
    	if !apierrors.IsNotFound(err) {
    		return err
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 10K bytes
    - Viewed (0)
  4. pkg/volume/csi/nodeinfomanager/nodeinfomanager.go

    	if kubeClient == nil {
    		return fmt.Errorf("error getting kube client")
    	}
    
    	nodeClient := kubeClient.CoreV1().Nodes()
    	originalNode, err := nodeClient.Get(context.TODO(), string(nim.nodeName), metav1.GetOptions{})
    	if err != nil {
    		return err
    	}
    	node := originalNode.DeepCopy()
    
    	needUpdate := false
    	for _, update := range updateFuncs {
    		newNode, updated, err := update(node)
    		if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 11 09:02:45 UTC 2024
    - 20.1K bytes
    - Viewed (0)
  5. platforms/core-runtime/cli/src/main/java/org/gradle/cli/CommandLineOption.java

        private boolean deprecated;
    
        public CommandLineOption(Iterable<String> options) {
            for (String option : options) {
                this.options.add(option);
            }
        }
    
        public Set<String> getOptions() {
            return options;
        }
    
        public CommandLineOption hasArgument(Class<?> argumentType) {
            this.argumentType = argumentType;
            return this;
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:00:57 UTC 2023
    - 3K bytes
    - Viewed (0)
  6. platforms/jvm/plugins-java-base/src/main/java/org/gradle/api/plugins/JavaBasePlugin.java

                    if (compile instanceof JavaCompile) {
                        JavaCompile javaCompile = (JavaCompile) compile;
                        if (javaCompile.getOptions().getRelease().isPresent()) {
                            return JavaVersion.toVersion(javaCompile.getOptions().getRelease().get());
                        }
                        if (rawConvention != null) {
                            return rawConvention;
                        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 19 22:14:22 UTC 2023
    - 28.3K bytes
    - Viewed (0)
  7. cmd/kubeadm/app/util/apiclient/idempotency.go

    func mutateConfigMap(client clientset.Interface, meta metav1.ObjectMeta, mutator ConfigMapMutator) error {
    	ctx := context.Background()
    	configMap, err := client.CoreV1().ConfigMaps(meta.Namespace).Get(ctx, meta.Name, metav1.GetOptions{})
    	if err != nil {
    		return errors.Wrap(err, "unable to get ConfigMap")
    	}
    	if err = mutator(configMap); err != nil {
    		return errors.Wrap(err, "unable to mutate ConfigMap")
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Feb 18 11:14:32 UTC 2024
    - 18.4K bytes
    - Viewed (0)
  8. platforms/jvm/language-java/src/main/java/org/gradle/api/tasks/javadoc/internal/JavadocGenerator.java

            javadocExecHandleBuilder.setExecutable(spec.getExecutable());
            javadocExecHandleBuilder.execDirectory(spec.getWorkingDir()).options(spec.getOptions()).optionsFile(spec.getOptionsFile());
    
            ExecAction execAction = javadocExecHandleBuilder.getExecHandle();
            if (spec.isIgnoreFailures()) {
                execAction.setIgnoreExitValue(true);
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Aug 28 11:40:18 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  9. platforms/jvm/language-groovy/src/main/java/org/gradle/api/tasks/compile/GroovyCompile.java

            spec.setCompileOptions(compileOptions);
            spec.setGroovyCompileOptions(new MinimalGroovyCompileOptions(groovyCompileOptions));
            spec.getCompileOptions().setSupportsCompilerApi(true);
            if (getOptions().isIncremental()) {
                validateIncrementalCompilationOptions(sourceRoots, spec.annotationProcessingConfigured());
                spec.getCompileOptions().setPreviousCompilationDataFile(getPreviousCompilationData());
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 26 14:58:23 UTC 2024
    - 15.6K bytes
    - Viewed (0)
  10. platforms/jvm/plugins-groovy/src/main/java/org/gradle/api/plugins/GroovyBasePlugin.java

                JvmPluginsHelper.compileAgainstJavaOutputs(groovyCompile, sourceSet, objectFactory);
                JvmPluginsHelper.configureAnnotationProcessorPath(sourceSet, groovySource, groovyCompile.getOptions(), project);
                groovyCompile.setDescription("Compiles the " + groovySource + ".");
                groovyCompile.setSource(groovySource);
                groovyCompile.getJavaLauncher().convention(getJavaLauncher(project));
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 12:15:28 UTC 2023
    - 10.5K bytes
    - Viewed (0)
Back to top