- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 869 for finalizers (0.9 sec)
-
pkg/registry/core/namespace/strategy_test.go
ObjectMeta: metav1.ObjectMeta{Name: "bar", ResourceVersion: "4"}, } // ensure we copy spec.finalizers from old to new Strategy.PrepareForUpdate(ctx, invalidNamespace, namespace) if len(invalidNamespace.Spec.Finalizers) != 1 || invalidNamespace.Spec.Finalizers[0] != api.FinalizerKubernetes { t.Errorf("PrepareForUpdate should have preserved old.spec.finalizers") } errs = Strategy.ValidateUpdate(ctx, invalidNamespace, namespace) if len(errs) == 0 {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Dec 07 08:51:17 UTC 2021 - 6K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/execution/plan/CompositeNodeGroup.java
return new CompositeNodeGroup(original.isReachableFromEntryPoint() || finalizers.isReachableFromEntryPoint(), original, finalizers.getFinalizerGroups()); } public static HasFinalizers mergeInto(HasFinalizers original, HasFinalizers finalizers) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Jan 26 14:58:23 UTC 2024 - 4.8K bytes - Viewed (0) -
plugin/pkg/admission/storage/storageobjectinuseprotection/admission.go
// if we can't convert the obj to PV, just return if !ok { return nil } for _, f := range pv.Finalizers { if f == volumeutil.PVProtectionFinalizer { // Finalizer is already present, nothing to do return nil } } klog.V(4).Infof("adding PV protection finalizer to %s", pv.Name) pv.Finalizers = append(pv.Finalizers, volumeutil.PVProtectionFinalizer) return nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Nov 02 21:13:50 UTC 2021 - 3.2K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/execution/plan/edges/ComplexDependentNodesSet.java
return this; } @Override public SortedSet<Node> getFinalizers() { return finalizers; } @Override public DependentNodesSet addFinalizer(Node finalizer) { finalizers.add(finalizer); return this; } @Override public Set<Node> getMustPredecessors() { return mustPredecessors; }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Sep 12 20:17:10 UTC 2022 - 2.4K bytes - Viewed (0) -
pkg/controller/job/tracking_utils_test.go
wantDelete int }{ "new non-finished Pod with finalizer": { newPod: &v1.Pod{ ObjectMeta: metav1.ObjectMeta{ Finalizers: []string{batch.JobTrackingFinalizer}, }, Status: v1.PodStatus{ Phase: v1.PodPending, }, }, }, "pod with finalizer fails": { oldPod: &v1.Pod{ ObjectMeta: metav1.ObjectMeta{ Finalizers: []string{batch.JobTrackingFinalizer}, },
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 14 05:40:02 UTC 2023 - 5.9K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/initialization/DefaultPlannedTask.java
private final List<TaskIdentity> shouldRunAfter; private final List<TaskIdentity> finalizers; public DefaultPlannedTask( TaskIdentity taskIdentity, List<? extends NodeIdentity> nodeDependencies, List<TaskIdentity> mustRunAfter, List<TaskIdentity> shouldRunAfter, List<TaskIdentity> finalizers ) { this.taskIdentity = taskIdentity;
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Mar 22 14:29:39 UTC 2023 - 3.5K bytes - Viewed (0) -
test/finprofiled.go
// only for middle bytes. The finalizer resurrects that object. // As the result, all allocated memory must stay alive. const ( N = 1 << 20 tinyBlockSize = 16 // runtime._TinySize ) hold := make([]*int32, 0, N) for i := 0; i < N; i++ { x := new(int32) if i%3 == 0 { runtime.SetFinalizer(x, func(p *int32) { hold = append(hold, p) }) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 16 05:48:00 UTC 2023 - 2.1K bytes - Viewed (0) -
test/gc2.go
// license that can be found in the LICENSE file. // Test that buffered channels are garbage collected properly. // An interesting case because they have finalizers and used to // have self loops that kept them from being collected. // (Cyclic data with finalizers is never finalized, nor collected.) package main import ( "fmt" "os" "runtime" ) func main() { const N = 10000 st := new(runtime.MemStats)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:25 UTC 2023 - 977 bytes - Viewed (0) -
pkg/registry/core/namespace/strategy.go
hasKubeFinalizer := false for i := range namespace.Spec.Finalizers { if namespace.Spec.Finalizers[i] == api.FinalizerKubernetes { hasKubeFinalizer = true break } } if !hasKubeFinalizer { if len(namespace.Spec.Finalizers) == 0 { namespace.Spec.Finalizers = []api.FinalizerName{api.FinalizerKubernetes} } else { namespace.Spec.Finalizers = append(namespace.Spec.Finalizers, api.FinalizerKubernetes) } } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Dec 07 08:51:17 UTC 2021 - 8.3K bytes - Viewed (0) -
src/runtime/debug/heapdump_test.go
// bug 9172: WriteHeapDump couldn't handle more than one finalizer println("allocating objects") x := &Obj{} runtime.SetFinalizer(x, objfin) y := &Obj{} runtime.SetFinalizer(y, objfin) // Trigger collection of x and y, queueing of their finalizers. println("starting gc") runtime.GC() // Make sure WriteHeapDump doesn't fail with multiple queued finalizers. println("starting dump") WriteHeapDump(f.Fd())
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 12 00:32:29 UTC 2022 - 2K bytes - Viewed (0)