Sha256: 04c97105f543992b235990295fe19a7ef1986d9ed3fa05d2e1a7f84ecf374372

Contents?: true

Size: 421 Bytes

Versions: 2

Compression:

Stored size: 421 Bytes

Contents

# frozen_string_literal: true

require 'krane/deprecated_deploy_task'

module Krane
  class DeployTask < Krane::DeprecatedDeployTask
    def initialize(**args)
      raise "Use Krane::DeployGlobalTask to deploy global resources" if args[:allow_globals]
      super(args.merge(allow_globals: false))
    end

    def prune_whitelist
      cluster_resource_discoverer.prunable_resources(namespaced: true)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
kubernetes-deploy-1.0.0.pre.2 lib/krane/deploy_task.rb
kubernetes-deploy-1.0.0.pre.1 lib/krane/deploy_task.rb