- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for ownerRef (0.1 sec)
-
pkg/controller/endpointslice/endpointslice_controller_test.go
gvk := schema.GroupVersionKind{Version: "v1", Kind: "Service"} ownerRef := metav1.NewControllerRef(service, gvk) deletedTs := metav1.Now() endpointSlice := &discovery.EndpointSlice{ ObjectMeta: metav1.ObjectMeta{ Name: "epSlice-1", Namespace: ns, OwnerReferences: []metav1.OwnerReference{*ownerRef}, Labels: map[string]string{ discovery.LabelServiceName: serviceName,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 08:33:32 UTC 2024 - 65.5K bytes - Viewed (0) -
pkg/controller/disruption/disruption_test.go
APIResources: tc.apiResources, }, } trueVal := true ownerRef := &metav1.OwnerReference{ Kind: customGVK.Kind, APIVersion: customGVK.GroupVersion().String(), Controller: &trueVal, UID: customResourceUID, } _, err := dc.getScaleController(ctx, ownerRef, "default") if tc.expectError && err == nil { t.Error("expected error, but didn't get one")
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 50K bytes - Viewed (0) -
pkg/controller/job/job_controller.go
} return fresh, nil }) cm := controller.NewPodControllerRefManager(jm.podControl, j, selector, controllerKind, canAdoptFunc, batch.JobTrackingFinalizer) // When adopting Pods, this operation adds an ownerRef and finalizers. pods, err = cm.ClaimPods(ctx, pods) if err != nil { return pods, err } // Set finalizer on adopted pods for the remaining calculations. for i, p := range pods { adopted := true
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jun 10 23:56:37 UTC 2024 - 77.6K bytes - Viewed (0) -
pkg/controller/statefulset/stateful_set_utils_test.go
_, ctx := ktesting.NewTestContext(t) logger := klog.FromContext(ctx) testCases := []struct { name string ownerRefs []metav1.OwnerReference policy apps.StatefulSetPersistentVolumeClaimRetentionPolicy shouldMatch bool }{ { name: "normal controller, pod", ownerRefs: []metav1.OwnerReference{ { Name: "pod-1", APIVersion: "v1", Kind: "Pod",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 05 19:06:41 UTC 2024 - 50.9K bytes - Viewed (0)