mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-08 03:33:56 +00:00
Extend the API for the Job job-index-failure-count annotation
This commit is contained in:
parent
fcbfdc1710
commit
cf0b74774f
@ -45,8 +45,12 @@ const (
|
||||
// Controller UID is used for selectors and labels for jobs
|
||||
ControllerUidLabel = labelPrefix + LegacyControllerUidLabel
|
||||
// Annotation indicating the number of failures for the index corresponding
|
||||
// to the pod.
|
||||
// to the pod, which are counted towards the backoff limit.
|
||||
JobIndexFailureCountAnnotation = labelPrefix + "job-index-failure-count"
|
||||
// Annotation indicating the number of failures for the index corresponding
|
||||
// to the pod, which don't count towards the backoff limit, according to the
|
||||
// pod failure policy. When the annotation is absent zero is implied.
|
||||
JobIndexIgnoredFailureCountAnnotation = labelPrefix + "job-index-ignored-failure-count"
|
||||
)
|
||||
|
||||
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
|
||||
|
@ -51,8 +51,12 @@ const (
|
||||
// There is a corresponding label without the batch.kubernetes.io that we support for legacy reasons.
|
||||
ControllerUidLabel = labelPrefix + "controller-uid"
|
||||
// Annotation indicating the number of failures for the index corresponding
|
||||
// to the pod.
|
||||
// to the pod, which are counted towards the backoff limit.
|
||||
JobIndexFailureCountAnnotation = labelPrefix + "job-index-failure-count"
|
||||
// Annotation indicating the number of failures for the index corresponding
|
||||
// to the pod, which don't count towards the backoff limit, according to the
|
||||
// pod failure policy. When the annotation is absent zero is implied.
|
||||
JobIndexIgnoredFailureCountAnnotation = labelPrefix + "job-index-ignored-failure-count"
|
||||
)
|
||||
|
||||
// +genclient
|
||||
|
Loading…
Reference in New Issue
Block a user