Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 33 for restartCount (0.3 sec)

  1. pkg/printers/internalversion/printers.go

    			totalContainers++
    		}
    	}
    
    	initializing := false
    	for i := range pod.Status.InitContainerStatuses {
    		container := pod.Status.InitContainerStatuses[i]
    		restarts += int(container.RestartCount)
    		if container.LastTerminationState.Terminated != nil {
    			terminatedDate := container.LastTerminationState.Terminated.FinishedAt
    			if lastRestartDate.Before(&terminatedDate) {
    				lastRestartDate = terminatedDate
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 14:04:15 UTC 2024
    - 128.3K bytes
    - Viewed (0)
  2. pkg/controller/job/job_controller.go

    			for j := range po.Status.InitContainerStatuses {
    				stat := po.Status.InitContainerStatuses[j]
    				result += stat.RestartCount
    			}
    			for j := range po.Status.ContainerStatuses {
    				stat := po.Status.ContainerStatuses[j]
    				result += stat.RestartCount
    			}
    		}
    	}
    	if *job.Spec.BackoffLimit == 0 {
    		return result > 0
    	}
    	return result >= *job.Spec.BackoffLimit
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 10 23:56:37 UTC 2024
    - 77.6K bytes
    - Viewed (0)
  3. pkg/controller/job/job_controller_test.go

    			podIndexer := sharedInformerFactory.Core().V1().Pods().Informer().GetIndexer()
    			for i, pod := range newPodList(len(tc.restartCounts), tc.podPhase, job) {
    				pod.Status.ContainerStatuses = []v1.ContainerStatus{{RestartCount: tc.restartCounts[i]}}
    				podIndexer.Add(pod)
    			}
    
    			// run
    			err := manager.syncJob(context.TODO(), testutil.GetKey(job, t))
    
    			if err != nil {
    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/kubelet/kubelet_pods_test.go

    				Reason:   kubecontainer.ContainerReasonStatusUnknown,
    				Message:  "The container could not be located when the pod was deleted.  The container used to be Running",
    				ExitCode: 137,
    			},
    		},
    		RestartCount: restartCount,
    	}
    }
    func ready(status v1.ContainerStatus) v1.ContainerStatus {
    	status.Ready = true
    	return status
    }
    func withID(status v1.ContainerStatus, id string) v1.ContainerStatus {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 00:05:23 UTC 2024
    - 198.8K bytes
    - Viewed (0)
  5. staging/src/k8s.io/api/core/v1/types.go

    	// RestartCount holds the number of times the container has been restarted.
    	// Kubelet makes an effort to always increment the value, but there
    	// are cases when the state may be lost due to node restarts and then the value
    	// may be reset to 0. The value is never negative.
    	RestartCount int32 `json:"restartCount" protobuf:"varint,5,opt,name=restartCount"`
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 390.8K bytes
    - Viewed (0)
  6. pkg/apis/core/types.go

    	// accept traffic.
    	Ready bool
    	// RestartCount holds the number of times the container has been restarted.
    	// Kubelet makes an effort to always increment the value, but there
    	// are cases when the state may be lost due to node restarts and then the value
    	// may be reset to 0. The value is never negative.
    	RestartCount int32
    	// Image is the name of container image that the container is running.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 268.9K bytes
    - Viewed (0)
  7. staging/src/k8s.io/api/core/v1/types_swagger_doc_generated.go

    	"restartCount":       "RestartCount holds the number of times the container has been restarted. Kubelet makes an effort to always increment the value, but there are cases when the state may be lost due to node restarts and then the value may be reset to 0. The value is never negative.",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 254.8K bytes
    - Viewed (0)
  8. pkg/apis/core/v1/zz_generated.conversion.go

    		return err
    	}
    	if err := Convert_v1_ContainerState_To_core_ContainerState(&in.LastTerminationState, &out.LastTerminationState, s); err != nil {
    		return err
    	}
    	out.Ready = in.Ready
    	out.RestartCount = in.RestartCount
    	out.Image = in.Image
    	out.ImageID = in.ImageID
    	out.ContainerID = in.ContainerID
    	out.Started = (*bool)(unsafe.Pointer(in.Started))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 472.1K bytes
    - Viewed (0)
  9. staging/src/k8s.io/api/core/v1/generated.proto

      // accept traffic.
      optional bool ready = 4;
    
      // RestartCount holds the number of times the container has been restarted.
      // Kubelet makes an effort to always increment the value, but there
      // are cases when the state may be lost due to node restarts and then the value
      // may be reset to 0. The value is never negative.
      optional int32 restartCount = 5;
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 280.3K bytes
    - Viewed (0)
  10. staging/src/k8s.io/api/core/v1/generated.pb.go

    				return fmt.Errorf("proto: wrong wireType = %d for field RestartCount", wireType)
    			}
    			m.RestartCount = 0
    			for shift := uint(0); ; shift += 7 {
    				if shift >= 64 {
    					return ErrIntOverflowGenerated
    				}
    				if iNdEx >= l {
    					return io.ErrUnexpectedEOF
    				}
    				b := dAtA[iNdEx]
    				iNdEx++
    				m.RestartCount |= int32(b&0x7F) << shift
    				if b < 0x80 {
    					break
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 1.8M bytes
    - Viewed (0)
Back to top