Interface CronJobConfig


public interface CronJobConfig
  • Method Details

    • schedule

      Optional<String> schedule()
      The schedule in Cron format, see Cron.
    • timeZone

      Optional<String> timeZone()
      The time zone for the job schedule. The default value is the local time of the kube-controller-manager.
    • concurrencyPolicy

      @WithDefault("Allow") io.dekorate.kubernetes.annotation.CronJobConcurrencyPolicy concurrencyPolicy()
      ConcurrencyPolicy describes how the job will be handled.
    • startingDeadlineSeconds

      Optional<Long> startingDeadlineSeconds()
      Deadline in seconds for starting the job if it misses scheduled time for any reason. Missed jobs executions will be counted as failed ones.
    • failedJobsHistoryLimit

      Optional<Integer> failedJobsHistoryLimit()
      The number of failed finished jobs to retain. The default value is 1.
    • successfulJobsHistoryLimit

      Optional<Integer> successfulJobsHistoryLimit()
      The number of successful finished jobs to retain. The default value is 3.
    • parallelism

      Optional<Integer> parallelism()
      Specifies the maximum desired number of pods the job should run at any given time.
    • completions

      Optional<Integer> completions()
      Specifies the desired number of successfully finished pods the job should be run with.
    • completionMode

      @WithDefault("NonIndexed") io.dekorate.kubernetes.annotation.JobCompletionMode completionMode()
      CompletionMode specifies how Pod completions are tracked.
    • backoffLimit

      Optional<Integer> backoffLimit()
      Specifies the number of retries before marking this job failed.
    • activeDeadlineSeconds

      Optional<Long> activeDeadlineSeconds()
      Specifies the duration in seconds relative to the startTime that the job may be continuously active before the system tries to terminate it; value must be positive integer.
    • ttlSecondsAfterFinished

      Optional<Integer> ttlSecondsAfterFinished()
      Limits the lifetime of a Job that has finished execution (either Complete or Failed). If this field is set, ttlSecondsAfterFinished after the Job finishes, it is eligible to be automatically deleted.
    • suspend

      @WithDefault("false") boolean suspend()
      Suspend specifies whether the Job controller should create Pods or not.
    • restartPolicy

      @WithDefault("OnFailure") io.dekorate.kubernetes.annotation.JobRestartPolicy restartPolicy()
      Restart policy when the job container fails.