Class CronJobSpecV1Beta1.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • concurrencyPolicy

        @Stability(Stable)
        public CronJobSpecV1Beta1.Builder concurrencyPolicy​(String concurrencyPolicy)
        Parameters:
        concurrencyPolicy - Specifies how to treat concurrent executions of a Job. Valid values are: - "Allow" (default): allows CronJobs to run concurrently; - "Forbid": forbids concurrent runs, skipping next run if previous run hasn't finished yet; - "Replace": cancels currently running job and replaces it with a new one
        Returns:
        this
      • startingDeadlineSeconds

        @Stability(Stable)
        public CronJobSpecV1Beta1.Builder startingDeadlineSeconds​(Number startingDeadlineSeconds)
        Parameters:
        startingDeadlineSeconds - Optional deadline in seconds for starting the job if it misses scheduled time for any reason. Missed jobs executions will be counted as failed ones.
        Returns:
        this
      • successfulJobsHistoryLimit

        @Stability(Stable)
        public CronJobSpecV1Beta1.Builder successfulJobsHistoryLimit​(Number successfulJobsHistoryLimit)
        Parameters:
        successfulJobsHistoryLimit - The number of successful finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. Defaults to 3.
        Returns:
        this
      • timeZone

        @Stability(Stable)
        public CronJobSpecV1Beta1.Builder timeZone​(String timeZone)
        Parameters:
        timeZone - The time zone for the given schedule, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones. If not specified, this will rely on the time zone of the kube-controller-manager process. ALPHA: This field is in alpha and must be enabled via the `CronJobTimeZone` feature gate.
        Returns:
        this