Sha256: ef80a136b0c9d0e8020158a05eeaeee44f69393df6ecc7479cc5ec8fecca15cf
Contents?: true
Size: 1.33 KB
Versions: 8
Compression:
Stored size: 1.33 KB
Contents
# frozen_string_literal: true module KubernetesDeploy 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 NamespaceNotFoundError < FatalDeploymentError def initialize(name, context) super("Namespace `#{name}` not found in context `#{context}`") end end class DeploymentTimeoutError < FatalDeploymentError; end class EjsonPrunableError < FatalDeploymentError def initialize super("Found #{KubernetesResource::LAST_APPLIED_ANNOTATION} annotation on " \ "#{EjsonSecretProvisioner::EJSON_KEYS_SECRET} secret. " \ "kubernetes-deploy will not continue since it is extremely unlikely that this secret should be pruned.") end 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
8 entries across 8 versions & 1 rubygems