Sha256: a3c0017048ab95f7e1d6319a53c3fcbbb4137ba4aa50d9b2a699f10cb0c949ec

Contents?: true

Size: 894 Bytes

Versions: 58

Compression:

Stored size: 894 Bytes

Contents

# frozen_string_literal: true

module Krane
  class FatalDeploymentError < StandardError; end
  class FatalKubeAPIError < FatalDeploymentError; end
  class KubectlError < StandardError; end
  class TaskConfigurationError < FatalDeploymentError; end

  class InvalidTemplateError < FatalDeploymentError
    attr_reader :content
    attr_accessor :filename
    def initialize(err, filename: nil, content: nil)
      @filename = filename
      @content = content
      super(err)
    end
  end

  class DeploymentTimeoutError < FatalDeploymentError; end

  class EjsonPrunableError < FatalDeploymentError
    def initialize
      super("Found #{KubernetesResource::LAST_APPLIED_ANNOTATION} annotation on " \
          "#{EjsonSecretProvisioner::EJSON_KEYS_SECRET} secret. " \
          "krane will not continue since it is extremely unlikely that this secret should be pruned.")
    end
  end
end

Version data entries

58 entries across 58 versions & 3 rubygems

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