Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 584 for finalizerB (0.23 sec)

  1. pkg/controller/volume/pvcprotection/pvc_protection_controller.go

    	claimClone := pvc.DeepCopy()
    	claimClone.ObjectMeta.Finalizers = append(claimClone.ObjectMeta.Finalizers, volumeutil.PVCProtectionFinalizer)
    	_, err := c.client.CoreV1().PersistentVolumeClaims(claimClone.Namespace).Update(ctx, claimClone, metav1.UpdateOptions{})
    	logger := klog.FromContext(ctx)
    	if err != nil {
    		logger.Error(err, "Error adding protection finalizer to PVC", "PVC", klog.KObj(pvc))
    		return err
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 14K bytes
    - Viewed (0)
  2. 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)
  3. guava/src/com/google/common/io/FileBackedOutputStream.java

       * the {@link ByteSource} returned by {@link #asByteSource} is finalized.
       *
       * @param fileThreshold the number of bytes before the stream should switch to buffering to a file
       * @param resetOnFinalize if true, the {@link #reset} method will be called when the {@link
       *     ByteSource} returned by {@link #asByteSource} is finalized.
       * @throws IllegalArgumentException if {@code fileThreshold} is negative
       */
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 17:40:56 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  4. pkg/controller/job/job_controller.go

    	}
    	return string(batch.NonIndexedCompletion)
    }
    
    func appendJobCompletionFinalizerIfNotFound(finalizers []string) []string {
    	for _, fin := range finalizers {
    		if fin == batch.JobTrackingFinalizer {
    			return finalizers
    		}
    	}
    	return append(finalizers, batch.JobTrackingFinalizer)
    }
    
    func removeTrackingFinalizerPatch(pod *v1.Pod) []byte {
    	if !hasJobTrackingFinalizer(pod) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 10 23:56:37 UTC 2024
    - 77.6K bytes
    - Viewed (0)
  5. pkg/controller/volume/persistentvolume/pv_controller_base.go

    		return volume.Finalizers, false
    	}
    	if !metav1.HasAnnotation(volume.ObjectMeta, storagehelpers.AnnDynamicallyProvisioned) {
    		// PV deletion protection finalizer is currently supported only for dynamically
    		// provisioned volumes.
    		return volume.Finalizers, false
    	}
    	if volume.Finalizers != nil {
    		outFinalizers = append(outFinalizers, volume.Finalizers...)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 08:42:31 UTC 2024
    - 29.5K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/registry/generic/registry/store_test.go

    	destroyFunc, registry := NewTestGenericStoreRegistry(t)
    	registry.EnableGarbageCollection = true
    	defer destroyFunc()
    
    	createPod := func(i int, finalizers []string) *example.Pod {
    		return &example.Pod{
    			ObjectMeta: metav1.ObjectMeta{Name: fmt.Sprintf("pod-%d", i), Finalizers: finalizers, Generation: initialGeneration},
    			Spec:       example.PodSpec{NodeName: "machine"},
    		}
    	}
    
    	i := 0
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 10:12:02 UTC 2024
    - 101.8K bytes
    - Viewed (0)
  7. src/runtime/arena_test.go

    	// Try to queue the object's finalizer that we set earlier.
    	GC()
    	GC()
    
    	if !BlockUntilEmptyFinalizerQueue(int64(2 * time.Second)) {
    		t.Fatal("finalizer queue was never emptied")
    	}
    	if !finalized.Load() {
    		t.Error("expected arena-referenced object to be finalized")
    	}
    }
    
    func TestUserArenaClearsPointerBits(t *testing.T) {
    	// This is a regression test for a serious issue wherein if pointer bits
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/testing/GcFinalization.java

       * separate method to make it somewhat more likely to be unreachable.
       */
      private static void createUnreachableLatchFinalizer(CountDownLatch latch) {
        Object unused =
            new Object() {
              @SuppressWarnings("removal") // b/260137033
              @Override
              protected void finalize() {
                latch.countDown();
              }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 17:40:56 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/testing/GcFinalization.java

       * separate method to make it somewhat more likely to be unreachable.
       */
      private static void createUnreachableLatchFinalizer(CountDownLatch latch) {
        Object unused =
            new Object() {
              @SuppressWarnings("removal") // b/260137033
              @Override
              protected void finalize() {
                latch.countDown();
              }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 17:40:56 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  10. platforms/core-configuration/file-collections/src/test/groovy/org/gradle/api/internal/file/collections/DefaultConfigurableFileCollectionSpec.groovy

            0 * closure._
            1 * fileResolver.resolve('a') >> file1
            1 * fileResolver.resolve('b') >> file2
            0 * fileResolver._
        }
    
        def "can finalize when already finalized"() {
            given:
            def file = new File('one')
            collection.from('a')
    
            when:
            collection.finalizeValue()
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 18 17:09:50 UTC 2024
    - 53K bytes
    - Viewed (0)
Back to top