Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.kubernetes.batch.v1.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import com.pulumi.kubernetes.batch.v1.inputs.JobStatusArgs.builder
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* JobStatus represents the current state of a Job.
* @property active The number of pending and running pods which are not terminating (without a deletionTimestamp). The value is zero for finished jobs.
* @property completedIndexes completedIndexes holds the completed indexes when .spec.completionMode = "Indexed" in a text format. The indexes are represented as decimal integers separated by commas. The numbers are listed in increasing order. Three or more consecutive numbers are compressed and represented by the first and last element of the series, separated by a hyphen. For example, if the completed indexes are 1, 3, 4, 5 and 7, they are represented as "1,3-5,7".
* @property completionTime Represents time when the job was completed. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. The completion time is set when the job finishes successfully, and only then. The value cannot be updated or removed. The value indicates the same or later point in time as the startTime field.
* @property conditions The latest available observations of an object's current state. When a Job fails, one of the conditions will have type "Failed" and status true. When a Job is suspended, one of the conditions will have type "Suspended" and status true; when the Job is resumed, the status of this condition will become false. When a Job is completed, one of the conditions will have type "Complete" and status true.
* A job is considered finished when it is in a terminal condition, either "Complete" or "Failed". A Job cannot have both the "Complete" and "Failed" conditions. Additionally, it cannot be in the "Complete" and "FailureTarget" conditions. The "Complete", "Failed" and "FailureTarget" conditions cannot be disabled.
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
* @property failed The number of pods which reached phase Failed. The value increases monotonically.
* @property failedIndexes FailedIndexes holds the failed indexes when spec.backoffLimitPerIndex is set. The indexes are represented in the text format analogous as for the `completedIndexes` field, ie. they are kept as decimal integers separated by commas. The numbers are listed in increasing order. Three or more consecutive numbers are compressed and represented by the first and last element of the series, separated by a hyphen. For example, if the failed indexes are 1, 3, 4, 5 and 7, they are represented as "1,3-5,7". The set of failed indexes cannot overlap with the set of completed indexes.
* This field is beta-level. It can be used when the `JobBackoffLimitPerIndex` feature gate is enabled (enabled by default).
* @property ready The number of active pods which have a Ready condition and are not terminating (without a deletionTimestamp).
* @property startTime Represents time when the job controller started processing a job. When a Job is created in the suspended state, this field is not set until the first time it is resumed. This field is reset every time a Job is resumed from suspension. It is represented in RFC3339 form and is in UTC.
* Once set, the field can only be removed when the job is suspended. The field cannot be modified while the job is unsuspended or finished.
* @property succeeded The number of pods which reached phase Succeeded. The value increases monotonically for a given spec. However, it may decrease in reaction to scale down of elastic indexed jobs.
* @property terminating The number of pods which are terminating (in phase Pending or Running and have a deletionTimestamp).
* This field is beta-level. The job controller populates the field when the feature gate JobPodReplacementPolicy is enabled (enabled by default).
* @property uncountedTerminatedPods uncountedTerminatedPods holds the UIDs of Pods that have terminated but the job controller hasn't yet accounted for in the status counters.
* The job controller creates pods with a finalizer. When a pod terminates (succeeded or failed), the controller does three steps to account for it in the job status:
* 1. Add the pod UID to the arrays in this field. 2. Remove the pod finalizer. 3. Remove the pod UID from the arrays while increasing the corresponding
* counter.
* Old jobs might not be tracked using this field, in which case the field remains null. The structure is empty for finished jobs.
*/
public data class JobStatusArgs(
public val active: Output? = null,
public val completedIndexes: Output? = null,
public val completionTime: Output? = null,
public val conditions: Output>? = null,
public val failed: Output? = null,
public val failedIndexes: Output? = null,
public val ready: Output? = null,
public val startTime: Output? = null,
public val succeeded: Output? = null,
public val terminating: Output? = null,
public val uncountedTerminatedPods: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.kubernetes.batch.v1.inputs.JobStatusArgs =
com.pulumi.kubernetes.batch.v1.inputs.JobStatusArgs.builder()
.active(active?.applyValue({ args0 -> args0 }))
.completedIndexes(completedIndexes?.applyValue({ args0 -> args0 }))
.completionTime(completionTime?.applyValue({ args0 -> args0 }))
.conditions(
conditions?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.failed(failed?.applyValue({ args0 -> args0 }))
.failedIndexes(failedIndexes?.applyValue({ args0 -> args0 }))
.ready(ready?.applyValue({ args0 -> args0 }))
.startTime(startTime?.applyValue({ args0 -> args0 }))
.succeeded(succeeded?.applyValue({ args0 -> args0 }))
.terminating(terminating?.applyValue({ args0 -> args0 }))
.uncountedTerminatedPods(
uncountedTerminatedPods?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
).build()
}
/**
* Builder for [JobStatusArgs].
*/
@PulumiTagMarker
public class JobStatusArgsBuilder internal constructor() {
private var active: Output? = null
private var completedIndexes: Output? = null
private var completionTime: Output? = null
private var conditions: Output>? = null
private var failed: Output? = null
private var failedIndexes: Output? = null
private var ready: Output? = null
private var startTime: Output? = null
private var succeeded: Output? = null
private var terminating: Output? = null
private var uncountedTerminatedPods: Output? = null
/**
* @param value The number of pending and running pods which are not terminating (without a deletionTimestamp). The value is zero for finished jobs.
*/
@JvmName("jhcgwfthlvcucypn")
public suspend fun active(`value`: Output) {
this.active = value
}
/**
* @param value completedIndexes holds the completed indexes when .spec.completionMode = "Indexed" in a text format. The indexes are represented as decimal integers separated by commas. The numbers are listed in increasing order. Three or more consecutive numbers are compressed and represented by the first and last element of the series, separated by a hyphen. For example, if the completed indexes are 1, 3, 4, 5 and 7, they are represented as "1,3-5,7".
*/
@JvmName("iirpsirrwcspaifg")
public suspend fun completedIndexes(`value`: Output) {
this.completedIndexes = value
}
/**
* @param value Represents time when the job was completed. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. The completion time is set when the job finishes successfully, and only then. The value cannot be updated or removed. The value indicates the same or later point in time as the startTime field.
*/
@JvmName("ufgloggydbjfoihn")
public suspend fun completionTime(`value`: Output) {
this.completionTime = value
}
/**
* @param value The latest available observations of an object's current state. When a Job fails, one of the conditions will have type "Failed" and status true. When a Job is suspended, one of the conditions will have type "Suspended" and status true; when the Job is resumed, the status of this condition will become false. When a Job is completed, one of the conditions will have type "Complete" and status true.
* A job is considered finished when it is in a terminal condition, either "Complete" or "Failed". A Job cannot have both the "Complete" and "Failed" conditions. Additionally, it cannot be in the "Complete" and "FailureTarget" conditions. The "Complete", "Failed" and "FailureTarget" conditions cannot be disabled.
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
*/
@JvmName("lkfnwqlbeagwrwfa")
public suspend fun conditions(`value`: Output>) {
this.conditions = value
}
@JvmName("cvumsqybxchgvurp")
public suspend fun conditions(vararg values: Output) {
this.conditions = Output.all(values.asList())
}
/**
* @param values The latest available observations of an object's current state. When a Job fails, one of the conditions will have type "Failed" and status true. When a Job is suspended, one of the conditions will have type "Suspended" and status true; when the Job is resumed, the status of this condition will become false. When a Job is completed, one of the conditions will have type "Complete" and status true.
* A job is considered finished when it is in a terminal condition, either "Complete" or "Failed". A Job cannot have both the "Complete" and "Failed" conditions. Additionally, it cannot be in the "Complete" and "FailureTarget" conditions. The "Complete", "Failed" and "FailureTarget" conditions cannot be disabled.
* More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
*/
@JvmName("ektbtgrmcbhhlumn")
public suspend fun conditions(values: List