Documentation
¶
Index ¶
- func CountPodsByPhase(pods []*v1.Pod) map[string]uint32
- func CreateIngress(name string, job *api.Job, pod *v1.Pod, service *v1.Service, ...) *networking.Ingress
- func CreateOwnerReference(pod *v1.Pod) metav1.OwnerReference
- func CreatePod(job *api.Job, defaults *configuration.PodDefaults, i int) *v1.Pod
- func CreateService(job *api.Job, pod *v1.Pod, ports []v1.ServicePort, ...) *v1.Service
- func ExtractFailedPodContainerStatuses(pod *v1.Pod) []*api.ContainerStatus
- func ExtractJobId(pod *v1.Pod) string
- func ExtractJobIds(pods []*v1.Pod) []string
- func ExtractNames(pods []*v1.Pod) []string
- func ExtractNodeNames(nodes []*v1.Node) []string
- func ExtractPodExitCodes(pod *v1.Pod) map[string]int32
- func ExtractPodFailedCause(pod *v1.Pod) api.Cause
- func ExtractPodFailedReason(pod *v1.Pod) string
- func ExtractPodKey(pod *v1.Pod) string
- func ExtractPodNumber(pod *v1.Pod) int
- func FilterCompletedPods(pods []*v1.Pod) []*v1.Pod
- func FilterNodes(nodes []*v1.Node, filter func(node *v1.Node) bool) []*v1.Node
- func FilterNonCompletedPods(pods []*v1.Pod) []*v1.Pod
- func FilterPods(pods []*v1.Pod, filter func(*v1.Pod) bool) []*v1.Pod
- func FilterPodsWithPhase(pods []*v1.Pod, podPhase v1.PodPhase) []*v1.Pod
- func FindLastContainerStartTime(pod *v1.Pod) time.Time
- func GenerateIngresses(job *api.Job, pod *v1.Pod, ingressConfig *configuration.IngressConfiguration) ([]*v1.Service, []*networking.Ingress)
- func GetExpectedNumberOfAssociatedIngresses(pod *v1.Pod) int
- func GetExpectedNumberOfAssociatedServices(pod *v1.Pod) int
- func GetManagedPodSelector() labels.Selector
- func GetPodContainerStatuses(pod *v1.Pod) []v1.ContainerStatus
- func GetPodsOnNodes(pods []*v1.Pod, nodes []*v1.Node) []*v1.Pod
- func GetServicePorts(svcConfigs []*IngressServiceConfig, podSpec *v1.PodSpec) []v1.ServicePort
- func GroupByQueue(pods []*v1.Pod) map[string][]*v1.Pod
- func HasCurrentStateBeenReported(pod *v1.Pod) bool
- func HasIngress(pod *v1.Pod) bool
- func HasPodBeenInStateForLongerThanGivenDuration(pod *v1.Pod, duration time.Duration) bool
- func IsInTerminalState(pod *v1.Pod) bool
- func IsManagedPod(pod *v1.Pod) bool
- func IsMarkedForDeletion(pod *v1.Pod) bool
- func IsPodFinishedAndReported(pod *v1.Pod) bool
- func IsReady(node *v1.Node) bool
- func IsReportedDone(pod *v1.Pod) bool
- func IsReportingPhaseRequired(podPhase v1.PodPhase) bool
- func LastStatusChange(pod *v1.Pod) (time.Time, error)
- func MergeNodeList(list1 []*v1.Node, list2 []*v1.Node) []*v1.Node
- func MergePodList(list1 []*v1.Pod, list2 []*v1.Pod) []*v1.Pod
- func NewTimeExpiringPodCache(expiry time.Duration, cleanUpInterval time.Duration, metricName string) *mapPodCache
- func ProcessPodsWithThreadPool(pods []*v1.Pod, maxThreadCount int, processPod func(*v1.Pod))
- func RemoveDuplicates(pods []*v1.Pod) []*v1.Pod
- func RemoveNodesFromList(list1 []*v1.Node, list2 []*v1.Node) []*v1.Node
- func RemovePodsFromList(list1 []*v1.Pod, list2 []*v1.Pod) []*v1.Pod
- type IngressServiceConfig
- type IngressServiceType
- type PodCache
- type PodStartupStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateIngress ¶ added in v0.2.3
func CreateIngress( name string, job *api.Job, pod *v1.Pod, service *v1.Service, executorIngressConfig *configuration.IngressConfiguration, jobConfig *IngressServiceConfig, ) *networking.Ingress
func CreateOwnerReference ¶ added in v0.2.3
func CreateOwnerReference(pod *v1.Pod) metav1.OwnerReference
func CreatePod ¶ added in v0.2.3
func CreatePod(job *api.Job, defaults *configuration.PodDefaults, i int) *v1.Pod
func CreateService ¶ added in v0.2.3
func CreateService( job *api.Job, pod *v1.Pod, ports []v1.ServicePort, ingSvcType IngressServiceType, useClusterIP bool, ) *v1.Service
func ExtractFailedPodContainerStatuses ¶ added in v0.1.24
func ExtractFailedPodContainerStatuses(pod *v1.Pod) []*api.ContainerStatus
func ExtractJobId ¶
func ExtractJobIds ¶
func ExtractNames ¶
func ExtractNodeNames ¶ added in v0.2.6
func ExtractPodFailedReason ¶
func ExtractPodKey ¶ added in v0.1.23
func ExtractPodNumber ¶ added in v0.1.23
func FilterNodes ¶ added in v0.2.4
func FilterPods ¶ added in v0.0.11
func FindLastContainerStartTime ¶ added in v0.0.11
func GenerateIngresses ¶ added in v0.2.3
func GenerateIngresses(job *api.Job, pod *v1.Pod, ingressConfig *configuration.IngressConfiguration) ([]*v1.Service, []*networking.Ingress)
func GetExpectedNumberOfAssociatedIngresses ¶ added in v0.2.3
func GetExpectedNumberOfAssociatedServices ¶ added in v0.2.3
func GetManagedPodSelector ¶
func GetPodContainerStatuses ¶ added in v0.1.41
func GetPodContainerStatuses(pod *v1.Pod) []v1.ContainerStatus
func GetPodsOnNodes ¶ added in v0.2.4
func GetServicePorts ¶ added in v0.2.3
func GetServicePorts(svcConfigs []*IngressServiceConfig, podSpec *v1.PodSpec) []v1.ServicePort
func GroupByQueue ¶ added in v0.3.15
GroupByQueue Any pod without a queue label set is excluded from the output
func HasCurrentStateBeenReported ¶ added in v0.2.3
func HasIngress ¶ added in v0.1.34
func HasPodBeenInStateForLongerThanGivenDuration ¶ added in v0.2.6
func IsInTerminalState ¶
func IsManagedPod ¶
func IsMarkedForDeletion ¶ added in v0.2.3
func IsPodFinishedAndReported ¶ added in v0.2.3
func IsReportedDone ¶ added in v0.2.3
func MergeNodeList ¶ added in v0.2.6
func NewTimeExpiringPodCache ¶
func ProcessPodsWithThreadPool ¶ added in v0.2.14
func RemoveNodesFromList ¶ added in v0.2.6
Types ¶
type IngressServiceConfig ¶ added in v0.2.14
type IngressServiceConfig struct { Type IngressServiceType Ports []uint32 Annotations map[string]string TlsEnabled bool CertName string UseClusterIp bool }
func CombineIngressService ¶ added in v0.2.14
func CombineIngressService(ingresses []*api.IngressConfig, services []*api.ServiceConfig) []*IngressServiceConfig
type IngressServiceType ¶ added in v0.2.14
type IngressServiceType int
const ( Ingress IngressServiceType = iota NodePort Headless )
func (IngressServiceType) String ¶ added in v0.2.14
func (st IngressServiceType) String() string
type PodStartupStatus ¶ added in v0.1.41
type PodStartupStatus int
Click to show internal directories.
Click to hide internal directories.