package
0.4.7
Repository: https://github.com/kubeflow/common.git
Documentation: pkg.go.dev

# Functions

CalculatePodSliceSize compare max pod index with desired replicas and return larger size.
CalculateServiceSliceSize compare max pod index with desired replicas and return larger size.
FilterPodsForReplicaType returns pods belong to a replicaType.
FilterServicesForReplicaType returns service belong to a replicaType.
No description provided by the author
GetPodSlices returns a slice, which element is the slice of pod.
GetPortsFromJob gets the ports of job container.
GetServiceSlices returns a slice, which element is the slice of service.
InitializeReplicaStatuses initializes the ReplicaStatuses for replica.
No description provided by the author
PastActiveDeadline checks if job has ActiveDeadlineSeconds field set and if it is exceeded.
PastBackoffLimit checks if container restartCounts sum exceeds BackoffLimit this method applies only to pods when restartPolicy is one of OnFailure, Always or ExitCode.
RecordAbnormalPods records the active pod whose latest condition is not in True status.
SetRestartPolicy check the RestartPolicy defined in job spec and overwrite RestartPolicy in podTemplate if necessary.
UpdateJobReplicaStatuses updates the JobReplicaStatuses according to the pod.