- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 13 for JobConditionType (0.61 sec)
-
staging/src/k8s.io/client-go/applyconfigurations/batch/v1/jobcondition.go
) // JobConditionApplyConfiguration represents an declarative configuration of the JobCondition type for use // with apply. type JobConditionApplyConfiguration struct { Type *v1.JobConditionType `json:"type,omitempty"` Status *corev1.ConditionStatus `json:"status,omitempty"` LastProbeTime *metav1.Time `json:"lastProbeTime,omitempty"`
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 04 18:31:34 UTC 2021 - 4K bytes - Viewed (0) -
pkg/apis/batch/types.go
// +optional Failed []types.UID } // JobConditionType is a valid value for JobCondition.Type type JobConditionType string // These are valid conditions of a job. const ( // JobSuspended means the job has been suspended. JobSuspended JobConditionType = "Suspended" // JobComplete means the job has completed its execution. JobComplete JobConditionType = "Complete"
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 12:01:28 UTC 2024 - 33K bytes - Viewed (0) -
staging/src/k8s.io/api/batch/v1/types.go
} type JobConditionType string // These are built-in conditions of a job. const ( // JobSuspended means the job has been suspended. JobSuspended JobConditionType = "Suspended" // JobComplete means the job has completed its execution. JobComplete JobConditionType = "Complete" // JobFailed means the job has failed its execution. JobFailed JobConditionType = "Failed"
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 05 18:37:07 UTC 2024 - 40.6K bytes - Viewed (0) -
pkg/controller/job/util/utils.go
) // FinishedCondition returns true if a job is finished as well as the condition type indicating that. // Returns false and no condition type otherwise func FinishedCondition(j *batch.Job) (bool, batch.JobConditionType) { for _, c := range j.Status.Conditions { if (c.Type == batch.JobComplete || c.Type == batch.JobFailed) && c.Status == v1.ConditionTrue { return true, c.Type } } return false, "" }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 07 09:27:46 UTC 2024 - 1.5K bytes - Viewed (0) -
pkg/controller/job/util/utils_test.go
v1 "k8s.io/api/core/v1" ) func TestFinishedCondition(t *testing.T) { tests := map[string]struct { conditions []batch.JobCondition wantJobFinished bool wantConditionType batch.JobConditionType }{ "Job doesn't have any conditions": { wantJobFinished: false, wantConditionType: "", }, "Job is completed and condition is true": { conditions: []batch.JobCondition{ {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 07 09:27:46 UTC 2024 - 4.7K bytes - Viewed (0) -
pkg/apis/batch/v1/zz_generated.conversion.go
return autoConvert_batch_Job_To_v1_Job(in, out, s) } func autoConvert_v1_JobCondition_To_batch_JobCondition(in *v1.JobCondition, out *batch.JobCondition, s conversion.Scope) error { out.Type = batch.JobConditionType(in.Type) out.Status = core.ConditionStatus(in.Status) out.LastProbeTime = in.LastProbeTime out.LastTransitionTime = in.LastTransitionTime out.Reason = in.Reason out.Message = in.Message return nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 07 20:49:09 UTC 2024 - 36.6K bytes - Viewed (0) -
pkg/apis/batch/validation/validation.go
allErrs := field.ErrorList{} statusFld := field.NewPath("status") allErrs = append(allErrs, validateJobStatus(job, statusFld, opts)...) if opts.RejectDisablingTerminalCondition { for _, cType := range []batch.JobConditionType{batch.JobFailed, batch.JobComplete, batch.JobFailureTarget} { if IsConditionTrue(oldJob.Status.Conditions, cType) && !IsConditionTrue(job.Status.Conditions, cType) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 08 16:43:24 UTC 2024 - 51.2K bytes - Viewed (0) -
pkg/controller/job/job_controller_test.go
} } func getCondition(job *batch.Job, condition batch.JobConditionType, status v1.ConditionStatus, reason string) bool { for _, v := range job.Status.Conditions { if v.Type == condition && v.Status == status && v.Reason == reason { return true } } return false } func hasTrueCondition(job *batch.Job) *batch.JobConditionType { for _, v := range job.Status.Conditions {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 11 15:36:36 UTC 2024 - 229.2K bytes - Viewed (0) -
pkg/controller/job/job_controller.go
allowedDuration := time.Duration(*job.Spec.ActiveDeadlineSeconds) * time.Second return duration >= allowedDuration } func newCondition(conditionType batch.JobConditionType, status v1.ConditionStatus, reason, message string, now time.Time) *batch.JobCondition { return &batch.JobCondition{ Type: conditionType, Status: status,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jun 10 23:56:37 UTC 2024 - 77.6K bytes - Viewed (0) -
pkg/controller/cronjob/cronjob_controllerv2.go
failedJobs, *cj.Spec.FailedJobsHistoryLimit) { updateStatus = true } return updateStatus } func (jm *ControllerV2) getFinishedStatus(j *batchv1.Job) (bool, batchv1.JobConditionType) { for _, c := range j.Status.Conditions { if (c.Type == batchv1.JobComplete || c.Type == batchv1.JobFailed) && c.Status == corev1.ConditionTrue { return true, c.Type } } return false, "" }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 09 03:34:25 UTC 2024 - 29.2K bytes - Viewed (0)