Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 1,124 for finalizer (0.18 sec)

  1. staging/src/k8s.io/apiextensions-apiserver/pkg/registry/customresource/validator.go

    	}
    	if len(strings.Split(stringValue, "/")) == 1 {
    		if !standardFinalizers.Has(stringValue) {
    			allWarnings = append(allWarnings, fmt.Sprintf("%s: %q: prefer a domain-qualified finalizer name to avoid accidental conflicts with other finalizer writers", fldPath.String(), stringValue))
    		}
    	}
    	return allWarnings
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 08 14:00:05 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  2. pkg/fuzz/util.go

    //
    //	 fuzz.BaseCases(f)
    //		f.Fuzz(func(...) {
    //		   defer fuzz.Finalizer()
    //		}
    //
    // To avoid needing to call BaseCases and Finalize everywhere.
    func Fuzz(f test.Fuzzer, ff func(fg Helper)) {
    	BaseCases(f)
    	f.Fuzz(func(t *testing.T, data []byte) {
    		defer Finalize()
    		fg := New(t, data)
    		ff(fg)
    	})
    }
    
    // Finalize works around an issue in the oss-fuzz logic that doesn't allow using Skip()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Nov 30 15:31:14 UTC 2022
    - 3.4K bytes
    - Viewed (0)
  3. src/os/file_windows.go

    }
    
    // Fd returns the Windows handle referencing the open file.
    // If f is closed, the file descriptor becomes invalid.
    // If f is garbage collected, a finalizer may close the file descriptor,
    // making it invalid; see [runtime.SetFinalizer] for more information on when
    // a finalizer might be run. On Unix systems this will cause the [File.SetDeadline]
    // methods to stop working.
    func (file *File) Fd() uintptr {
    	if file == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 30 15:38:38 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  4. pkg/controller/namespace/deletion/namespaced_resources_deleter_test.go

    		t.Errorf("Expected finalize-namespace action %v", actions[0])
    	}
    	finalizers := actions[0].(core.CreateAction).GetObject().(*v1.Namespace).Spec.Finalizers
    	if len(finalizers) != 1 {
    		t.Errorf("There should be a single finalizer remaining")
    	}
    	if string(finalizers[0]) != "other" {
    		t.Errorf("Unexpected finalizer value, %v", finalizers[0])
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 20 07:34:23 UTC 2023
    - 15.8K bytes
    - Viewed (0)
  5. subprojects/composite-builds/src/integTest/groovy/org/gradle/integtests/composite/CompositeBuildTaskLifecycleIntegrationTest.groovy

            assertTaskNotExecuted(':buildB', ':c')
    
            where:
            method << ["shouldRunAfter", "mustRunAfter"]
        }
    
        def "finalizedBy task within included build schedules finalizer for execution"() {
            given:
            buildA.buildFile << """
                task a {
                    dependsOn gradle.includedBuild('buildB').task(':b')
                }
            """
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 03 19:28:39 UTC 2022
    - 3K bytes
    - Viewed (0)
  6. src/os/file_plan9.go

    // Fd returns the integer Plan 9 file descriptor referencing the open file.
    // If f is closed, the file descriptor becomes invalid.
    // If f is garbage collected, a finalizer may close the file descriptor,
    // making it invalid; see [runtime.SetFinalizer] for more information on when
    // a finalizer might be run. On Unix systems this will cause the [File.SetDeadline]
    // methods to stop working.
    //
    // As an alternative, see the f.SyscallConn method.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 30 15:35:30 UTC 2024
    - 16K bytes
    - Viewed (0)
  7. pkg/controller/job/indexed_job_utils.go

    	newSucceeded := sets.New[int]()
    	for _, p := range pods {
    		ix := getCompletionIndex(p.Annotations)
    		// Succeeded Pod with valid index and, if tracking with finalizers,
    		// has a finalizer (meaning that it is not counted yet).
    		if p.Status.Phase == v1.PodSucceeded && ix != unknownCompletionIndex && ix < int(*job.Spec.Completions) && hasJobTrackingFinalizer(p) {
    			newSucceeded.Insert(ix)
    		}
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 21 00:44:53 UTC 2023
    - 17.5K bytes
    - Viewed (0)
  8. src/internal/types/testdata/check/chans.go

    // been closed and no more values will be received.
    func (r *Receiver[T]) Next() (T, bool) {
    	v, ok := <-r.values
    	return v, ok
    }
    
    // finalize is a finalizer for the receiver.
    func (r *Receiver[T]) finalize() {
    	close(r.done)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 02 02:58:32 UTC 2022
    - 1.7K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/registry/generic/registry/store.go

    // collector. If so, returns the set of deletion finalizers to apply and a bool
    // indicating whether the finalizer list has changed and is in need of updating.
    //
    // The finalizers returned are intended to be handled by the garbage collector.
    // If garbage collection is disabled for the store, this function returns false
    // to ensure finalizers aren't set which will never be cleared.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 19 23:22:44 UTC 2024
    - 60.8K bytes
    - Viewed (0)
  10. src/crypto/internal/boring/rsa.go

    	runtime.SetFinalizer(k, (*PublicKeyRSA).finalize)
    	return k, nil
    }
    
    func (k *PublicKeyRSA) finalize() {
    	C._goboringcrypto_RSA_free(k._key)
    }
    
    func (k *PublicKeyRSA) withKey(f func(*C.GO_RSA) C.int) C.int {
    	// Because of the finalizer, any time _key is passed to cgo, that call must
    	// be followed by a call to runtime.KeepAlive, to make sure k is not
    	// collected (and finalized) before the cgo call returns.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 23:38:03 UTC 2024
    - 12K bytes
    - Viewed (0)
Back to top