Sha256: e126d53dc050f4527d2b1d9668d273135afe5135453aa393b25c71be1077b186

Contents?: true

Size: 274 Bytes

Versions: 57

Compression:

Stored size: 274 Bytes

Contents

# frozen_string_literal: true
module Krane
  class CronJob < KubernetesResource
    TIMEOUT = 30.seconds

    def deploy_succeeded?
      exists?
    end

    def deploy_failed?
      !exists?
    end

    def timeout_message
      UNUSUAL_FAILURE_MESSAGE
    end
  end
end

Version data entries

57 entries across 57 versions & 3 rubygems

Version Path
krane-2.1.2 lib/krane/kubernetes_resource/cron_job.rb
krane-2.1.1 lib/krane/kubernetes_resource/cron_job.rb
krane-2.1.0 lib/krane/kubernetes_resource/cron_job.rb
krane-2.0.0 lib/krane/kubernetes_resource/cron_job.rb
kubernetes-deploy-1.0.0.pre.2 lib/krane/kubernetes_resource/cron_job.rb
krane-1.1.4 lib/krane/kubernetes_resource/cron_job.rb
krane-1.1.3 lib/krane/kubernetes_resource/cron_job.rb
krane-1.1.2 lib/krane/kubernetes_resource/cron_job.rb
krane-1.1.1 lib/krane/kubernetes_resource/cron_job.rb
krane-1.1.0 lib/krane/kubernetes_resource/cron_job.rb
tobsch-krane-1.0.2 lib/krane/kubernetes_resource/cron_job.rb
tobsch-krane-1.0.1 lib/krane/kubernetes_resource/cron_job.rb
tobsch-krane-1.0.0 lib/krane/kubernetes_resource/cron_job.rb
krane-1.0.0 lib/krane/kubernetes_resource/cron_job.rb
kubernetes-deploy-1.0.0.pre.1 lib/krane/kubernetes_resource/cron_job.rb
kubernetes-deploy-0.31.1 lib/krane/kubernetes_resource/cron_job.rb
kubernetes-deploy-0.31.0 lib/krane/kubernetes_resource/cron_job.rb