Sha256: 08c34a7881b8bdf1704978399c758836493825e320bc127478a0ccdfe5b64ba0

Contents?: true

Size: 332 Bytes

Versions: 58

Compression:

Stored size: 332 Bytes

Contents

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

    def status
      exists? ? "Created" : "Not Found"
    end

    def deploy_succeeded?
      exists?
    end

    def deploy_failed?
      false
    end

    def timeout_message
      UNUSUAL_FAILURE_MESSAGE
    end
  end
end

Version data entries

58 entries across 58 versions & 3 rubygems

Version Path
krane-3.7.0 lib/krane/kubernetes_resource/role.rb
krane-3.6.2 lib/krane/kubernetes_resource/role.rb
krane-3.6.1 lib/krane/kubernetes_resource/role.rb
krane-3.5.2 lib/krane/kubernetes_resource/role.rb
krane-3.5.1 lib/krane/kubernetes_resource/role.rb
krane-3.5.0 lib/krane/kubernetes_resource/role.rb
krane-3.4.2 lib/krane/kubernetes_resource/role.rb
krane-3.4.1 lib/krane/kubernetes_resource/role.rb
krane-3.4.0 lib/krane/kubernetes_resource/role.rb
krane-3.3.0 lib/krane/kubernetes_resource/role.rb
krane-3.2.0 lib/krane/kubernetes_resource/role.rb
krane-3.1.0 lib/krane/kubernetes_resource/role.rb
krane-3.0.1 lib/krane/kubernetes_resource/role.rb
krane-3.0.0 lib/krane/kubernetes_resource/role.rb
krane-2.4.9 lib/krane/kubernetes_resource/role.rb
krane-2.4.8 lib/krane/kubernetes_resource/role.rb
krane-2.4.7 lib/krane/kubernetes_resource/role.rb
krane-2.4.6 lib/krane/kubernetes_resource/role.rb
krane-2.4.5 lib/krane/kubernetes_resource/role.rb
krane-2.4.4 lib/krane/kubernetes_resource/role.rb