io.k8s.api.batch.v1

Type members

Classlikes

final case class CronJob(status: Option[CronJobStatus], spec: Option[CronJobSpec], metadata: Option[ObjectMeta]) extends KObject

CronJob represents the configuration of a single cron job.

CronJob represents the configuration of a single cron job.

Source:
CronJob.scala
final case class CronJobList(items: Seq[CronJob], metadata: Option[ListMeta]) extends KObject

CronJobList is a collection of cron jobs.

CronJobList is a collection of cron jobs.

Source:
CronJobList.scala
final case class CronJobSpec(schedule: String, jobTemplate: JobTemplateSpec, startingDeadlineSeconds: Option[Int], concurrencyPolicy: Option[String], failedJobsHistoryLimit: Option[Int], successfulJobsHistoryLimit: Option[Int], suspend: Option[Boolean], timeZone: Option[String])

CronJobSpec describes how the job execution will look like and when it will actually run.

CronJobSpec describes how the job execution will look like and when it will actually run.

Source:
CronJobSpec.scala
final case class CronJobStatus(active: Option[Seq[ObjectReference]], lastScheduleTime: Option[Time], lastSuccessfulTime: Option[Time])

CronJobStatus represents the current state of a cron job.

CronJobStatus represents the current state of a cron job.

Source:
CronJobStatus.scala
final case class Job(status: Option[JobStatus], spec: Option[JobSpec], metadata: Option[ObjectMeta]) extends KObject

Job represents the configuration of a single job.

Job represents the configuration of a single job.

Source:
Job.scala
final case class JobCondition(status: String, `type`: String, lastProbeTime: Option[Time], reason: Option[String], lastTransitionTime: Option[Time], message: Option[String])

JobCondition describes current state of a job.

JobCondition describes current state of a job.

Source:
JobCondition.scala
final case class JobList(items: Seq[Job], metadata: Option[ListMeta]) extends KObject

JobList is a collection of jobs.

JobList is a collection of jobs.

Source:
JobList.scala
final case class JobSpec(template: PodTemplateSpec, parallelism: Option[Int], completionMode: Option[String], podFailurePolicy: Option[PodFailurePolicy], manualSelector: Option[Boolean], suspend: Option[Boolean], backoffLimit: Option[Int], activeDeadlineSeconds: Option[Int], completions: Option[Int], ttlSecondsAfterFinished: Option[Int], selector: Option[LabelSelector])

JobSpec describes how the job execution will look like.

JobSpec describes how the job execution will look like.

Source:
JobSpec.scala
final case class JobStatus(conditions: Option[Seq[JobCondition]], uncountedTerminatedPods: Option[UncountedTerminatedPods], completedIndexes: Option[String], startTime: Option[Time], ready: Option[Int], failed: Option[Int], succeeded: Option[Int], completionTime: Option[Time], active: Option[Int])

JobStatus represents the current state of a Job.

JobStatus represents the current state of a Job.

Source:
JobStatus.scala
final case class JobTemplateSpec(metadata: Option[ObjectMeta], spec: Option[JobSpec])

JobTemplateSpec describes the data a Job should have when created from a template

JobTemplateSpec describes the data a Job should have when created from a template

Source:
JobTemplateSpec.scala
final case class PodFailurePolicy(rules: Seq[PodFailurePolicyRule])

PodFailurePolicy describes how failed pods influence the backoffLimit.

PodFailurePolicy describes how failed pods influence the backoffLimit.

Source:
PodFailurePolicy.scala
final case class PodFailurePolicyOnExitCodesRequirement(operator: String, values: Seq[Int], containerName: Option[String])

PodFailurePolicyOnExitCodesRequirement describes the requirement for handling a failed pod based on its container exit codes. In particular, it lookups the .state.terminated.exitCode for each app container and init container status, represented by the .status.containerStatuses and .status.initContainerStatuses fields in the Pod status, respectively. Containers completed with success (exit code 0) are excluded from the requirement check.

PodFailurePolicyOnExitCodesRequirement describes the requirement for handling a failed pod based on its container exit codes. In particular, it lookups the .state.terminated.exitCode for each app container and init container status, represented by the .status.containerStatuses and .status.initContainerStatuses fields in the Pod status, respectively. Containers completed with success (exit code 0) are excluded from the requirement check.

Source:
PodFailurePolicyOnExitCodesRequirement.scala
final case class PodFailurePolicyOnPodConditionsPattern(status: String, `type`: String)

PodFailurePolicyOnPodConditionsPattern describes a pattern for matching an actual pod condition type.

PodFailurePolicyOnPodConditionsPattern describes a pattern for matching an actual pod condition type.

Source:
PodFailurePolicyOnPodConditionsPattern.scala

PodFailurePolicyRule describes how a pod failure is handled when the requirements are met. One of OnExitCodes and onPodConditions, but not both, can be used in each rule.

PodFailurePolicyRule describes how a pod failure is handled when the requirements are met. One of OnExitCodes and onPodConditions, but not both, can be used in each rule.

Source:
PodFailurePolicyRule.scala
final case class UncountedTerminatedPods(failed: Option[Seq[String]], succeeded: Option[Seq[String]])

UncountedTerminatedPods holds UIDs of Pods that have terminated but haven't been accounted in Job status counters.

UncountedTerminatedPods holds UIDs of Pods that have terminated but haven't been accounted in Job status counters.

Source:
UncountedTerminatedPods.scala