- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 20 for controllerRef (0.19 sec)
-
pkg/controller/cronjob/cronjob_controllerv2_test.go
} if got, want := controllerRef.Name, cj.Name; got != want { t.Errorf("%s: controllerRef.Name = %q, want %q", name, got, want) } if got, want := controllerRef.UID, cj.UID; got != want { t.Errorf("%s: controllerRef.UID = %q, want %q", name, got, want) } if controllerRef.Controller == nil || *controllerRef.Controller != true {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 70.8K bytes - Viewed (0) -
pkg/controller/statefulset/stateful_set_utils_test.go
set := newStatefulSet(1) pod := newStatefulSetPod(set, 0) controllerRef := metav1.GetControllerOf(pod) if controllerRef == nil { t.Fatalf("No ControllerRef found on new pod") } if got, want := controllerRef.APIVersion, apps.SchemeGroupVersion.String(); got != want { t.Errorf("controllerRef.APIVersion = %q, want %q", got, want) } if got, want := controllerRef.Kind, "StatefulSet"; got != want {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 05 19:06:41 UTC 2024 - 50.9K bytes - Viewed (0) -
pkg/controller/deployment/deployment_controller_test.go
// Add a Pod for each ReplicaSet. pod1 := generatePodFromRS(rs1) pod2 := generatePodFromRS(rs2) // Add a Pod that has matching labels, but no ControllerRef. pod3 := generatePodFromRS(rs1) pod3.Name = "pod3" pod3.OwnerReferences = nil // Add a Pod that has matching labels and ControllerRef, but is inactive. pod4 := generatePodFromRS(rs1) pod4.Name = "pod4" pod4.Status.Phase = v1.PodFailed f.dLister = append(f.dLister, d)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 32.5K bytes - Viewed (0) -
pkg/controller/replicaset/replica_set_test.go
isController := true controllerRef1 := metav1.OwnerReference{UID: testRSSpec1.UID, APIVersion: "v1", Kind: "ReplicaSet", Name: testRSSpec1.Name, Controller: &isController} controllerRef2 := metav1.OwnerReference{UID: testRSSpec2.UID, APIVersion: "v1", Kind: "ReplicaSet", Name: testRSSpec2.Name, Controller: &isController} // case 1: Pod with a ControllerRef
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 69.2K bytes - Viewed (0) -
pkg/controller/daemon/daemon_controller_test.go
} // Every Pod created should have a ControllerRef. if got, want := len(fakePodControl.ControllerRefs), expectedCreates; got != want { return fmt.Errorf("len(ControllerRefs) = %v, want %v", got, want) } // Make sure the ControllerRefs are correct. for _, controllerRef := range fakePodControl.ControllerRefs { if got, want := controllerRef.APIVersion, "apps/v1"; got != want {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 111.4K bytes - Viewed (0) -
pkg/controller/controller_utils_test.go
}, wantPod: &v1.Pod{ ObjectMeta: metav1.ObjectMeta{ Labels: controllerSpec.Spec.Template.Labels, GenerateName: generateName, OwnerReferences: []metav1.OwnerReference{*controllerRef}, }, Spec: controllerSpec.Spec.Template.Spec, }, }, }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 39.4K bytes - Viewed (0) -
pkg/controller/job/job_controller_test.go
t.Errorf("controllerRef.APIVersion = %q, want %q", got, want) } if got, want := controllerRef.Kind, "Job"; got != want { t.Errorf("controllerRef.Kind = %q, want %q", got, want) } if got, want := controllerRef.Name, job.Name; got != want { t.Errorf("controllerRef.Name = %q, want %q", got, want) } if got, want := controllerRef.UID, job.UID; got != want {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 11 15:36:36 UTC 2024 - 229.2K bytes - Viewed (0) -
pkg/controller/daemon/update.go
if err != nil { return nil, err } } return keepCur, nil } // controlledHistories returns all ControllerRevisions controlled by the given DaemonSet. // This also reconciles ControllerRef by adopting/orphaning. // Note that returned histories are pointers to objects in the cache. // If you want to modify one, you need to deep-copy it first.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 13 16:53:53 UTC 2024 - 24.4K bytes - Viewed (0) -
pkg/controller/disruption/disruption_test.go
}, } for tn, tc := range testCases { t.Run(tn, func(t *testing.T) { controllerRef := &metav1.OwnerReference{ APIVersion: tc.apiVersion, Kind: tc.kind, Name: tc.name, UID: tc.uid, } controllerAndScale, _ := tc.finderFunc(ctx, controllerRef, metav1.NamespaceDefault) if controllerAndScale == nil { if tc.findsScale {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 50K bytes - Viewed (0) -
pkg/printers/internalversion/printers.go
} controllerRef := metav1.GetControllerOf(obj) controllerName := "<none>" if controllerRef != nil { withKind := true gv, err := schema.ParseGroupVersion(controllerRef.APIVersion) if err != nil { return nil, err } gvk := gv.WithKind(controllerRef.Kind) controllerName = formatResourceName(gvk.GroupKind(), controllerRef.Name, withKind) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 11 14:04:15 UTC 2024 - 128.3K bytes - Viewed (0)