Sha256: b6432e6d06ae17330765eee5e531a505d448179e65d78ede65b7e6245f89b6a9

Contents?: true

Size: 563 Bytes

Versions: 1

Compression:

Stored size: 563 Bytes

Contents

# frozen_string_literal: true

require 'krane/cluster_resource_discovery'

module Krane
  class TaskConfig
    attr_reader :context, :namespace, :logger

    def initialize(context, namespace, logger = nil)
      @context = context
      @namespace = namespace
      @logger = logger || FormattedLogger.build(@namespace, @context)
    end

    def global_kinds
      @global_kinds ||= begin
        cluster_resource_discoverer = ClusterResourceDiscovery.new(task_config: self)
        cluster_resource_discoverer.global_resource_kinds
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
kubernetes-deploy-0.31.1 lib/krane/task_config.rb