placement

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 15, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

placement package provides utility functions that are shared between the webhooks and controllers to implement the exclusive placement per topology feature.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenJobName

func GenJobName(jsName, rjobName string, jobIndex int) string

GenJobName deterministically generates the child job name from the given JobSet name, replicated job name, and job index.

func GenPodName added in v0.3.2

func GenPodName(jobSet, replicatedJob, jobIndex, podIndex string) string

GenPodName returns the pod name for the given JobSet name, ReplicatedJob name, Job index, and Pod index.

func IsLeaderPod

func IsLeaderPod(pod *corev1.Pod) bool

IsLeaderPod returns true if the given pod is a leader pod (job completion index of 0), otherwise it returns false.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL