Method: Krane::ResourceCache#initialize

Defined in:
lib/krane/resource_cache.rb

#initialize(task_config) ⇒ ResourceCache

Returns a new instance of ResourceCache.



9
10
11
12
13
14
15
# File 'lib/krane/resource_cache.rb', line 9

def initialize(task_config)
  @task_config = task_config

  @kind_fetcher_locks = Concurrent::Hash.new { |hash, key| hash[key] = Mutex.new }
  @data = Concurrent::Hash.new
  @kubectl = Kubectl.new(task_config: @task_config, log_failure_by_default: false)
end