Sha256: f9b4dd3d3e9f16f5abec4ccdb9b700e7b1714535214af163142e3e1f9d1cd3fe

Contents?: true

Size: 898 Bytes

Versions: 6

Compression:

Stored size: 898 Bytes

Contents

# frozen_string_literal: true
module KubernetesDeploy
  class FatalDeploymentError < StandardError; end
  class KubectlError < StandardError; 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 NamespaceNotFoundError < FatalDeploymentError
    def initialize(name, context)
      super("Namespace `#{name}` not found in context `#{context}`")
    end
  end

  class DeploymentTimeoutError < FatalDeploymentError; end

  module Errors
    extend self
    def server_version_warning(server_version)
      "Minimum cluster version requirement of #{MIN_KUBE_VERSION} not met. "\
      "Using #{server_version} could result in unexpected behavior as it is no longer tested against"
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
kubernetes-deploy-0.20.6 lib/kubernetes-deploy/errors.rb
kubernetes-deploy-0.20.5 lib/kubernetes-deploy/errors.rb
kubernetes-deploy-0.20.4 lib/kubernetes-deploy/errors.rb
kubernetes-deploy-0.20.3 lib/kubernetes-deploy/errors.rb
kubernetes-deploy-0.20.2 lib/kubernetes-deploy/errors.rb
kubernetes-deploy-0.20.1 lib/kubernetes-deploy/errors.rb