Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for DeletePodName (0.15 sec)

  1. pkg/controller/controller_utils.go

    	f.Lock()
    	defer f.Unlock()
    	f.DeletePodName = append(f.DeletePodName, podID)
    	if f.Err != nil {
    		return f.Err
    	}
    	return nil
    }
    
    func (f *FakePodControl) Clear() {
    	f.Lock()
    	defer f.Unlock()
    	f.DeletePodName = []string{}
    	f.Templates = []v1.PodTemplateSpec{}
    	f.ControllerRefs = []metav1.OwnerReference{}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 12 15:34:44 UTC 2024
    - 47.6K bytes
    - Viewed (0)
  2. pkg/controller/daemon/daemon_controller_test.go

    		return fmt.Errorf("Unexpected number of creates.  Expected %d, saw %d\n", expectedCreates, len(fakePodControl.Templates))
    	}
    	if len(fakePodControl.DeletePodName) != expectedDeletes {
    		return fmt.Errorf("Unexpected number of deletes.  Expected %d, got %v\n", expectedDeletes, fakePodControl.DeletePodName)
    	}
    	if len(manager.fakeRecorder.Events) != expectedEvents {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 111.4K bytes
    - Viewed (0)
  3. pkg/controller/job/job_controller_test.go

    						t.Errorf("Got pod hostname %q, want none", p.Spec.Hostname)
    					}
    				}
    			}
    			if int32(len(fakePodControl.DeletePodName)) != tc.expectedDeletions {
    				t.Errorf("Unexpected number of deletes.  Expected %d, saw %d\n", tc.expectedDeletions, len(fakePodControl.DeletePodName))
    			}
    			// Each create should have an accompanying ControllerRef.
    			if len(fakePodControl.ControllerRefs) != int(tc.expectedCreations) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 15:36:36 UTC 2024
    - 229.2K bytes
    - Viewed (0)
  4. pkg/controller/replicaset/replica_set_test.go

    	if e, a := expectedCreates, len(fakePodControl.Templates); e != a {
    		return fmt.Errorf("Unexpected number of creates.  Expected %d, saw %d\n", e, a)
    	}
    
    	if e, a := expectedDeletes, len(fakePodControl.DeletePodName); e != a {
    		return fmt.Errorf("Unexpected number of deletes.  Expected %d, saw %d\n", e, a)
    	}
    
    	if e, a := expectedPatches, len(fakePodControl.Patches); e != a {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 69.2K bytes
    - Viewed (0)
Back to top