Sha256: 881c9de8788439ec7d40e09294724441df09f9465703f14443cd540c04be8f7f

Contents?: true

Size: 1.64 KB

Versions: 12

Compression:

Stored size: 1.64 KB

Contents

class KuberKit::Core::Configuration
  attr_reader :name, :artifacts, :registries, :env_files, :templates, :kubeconfig_path, 
              :deployer_strategy, :deployer_namespace, :services_attributes, :build_servers,
              :global_build_vars

  Contract KeywordArgs[
    name:            Symbol,
    artifacts:       Hash,
    registries:      Hash,
    env_files:       Hash,
    templates:       Hash,
    kubeconfig_path: Maybe[String],
    deployer_strategy:  Symbol,
    deployer_namespace: Maybe[Symbol],
    services_attributes: HashOf[Symbol => Hash],
    build_servers:   ArrayOf[KuberKit::Core::BuildServers::AbstractBuildServer],
    global_build_vars:   HashOf[Symbol => Any],
  ] => Any
  def initialize(name:, artifacts:, registries:, env_files:, templates:, kubeconfig_path:, 
                 deployer_strategy:, deployer_namespace:, services_attributes:, build_servers:, 
                 global_build_vars:)
    @name             = name
    @artifacts        = artifacts
    @registries       = registries
    @env_files        = env_files
    @templates        = templates
    @kubeconfig_path  = kubeconfig_path
    @deployer_strategy  = deployer_strategy
    @deployer_namespace = deployer_namespace
    @build_servers    = build_servers
    @services_attributes  = services_attributes
    @global_build_vars    = global_build_vars
  end

  def service_attributes(service_name)
    services_attributes[service_name.to_sym] || {}
  end

  def global_build_args
    unless KuberKit.deprecation_warnings_disabled?
      puts "DEPRECATION: global_build_args is deprecated, please use global_build_vars instead"
    end
    global_build_vars
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
kuber_kit-0.4.1 lib/kuber_kit/core/configuration.rb
kuber_kit-0.4.0 lib/kuber_kit/core/configuration.rb
kuber_kit-0.3.11 lib/kuber_kit/core/configuration.rb
kuber_kit-0.3.10 lib/kuber_kit/core/configuration.rb
kuber_kit-0.3.9 lib/kuber_kit/core/configuration.rb
kuber_kit-0.3.8 lib/kuber_kit/core/configuration.rb
kuber_kit-0.3.7 lib/kuber_kit/core/configuration.rb
kuber_kit-0.3.6 lib/kuber_kit/core/configuration.rb
kuber_kit-0.3.5 lib/kuber_kit/core/configuration.rb
kuber_kit-0.3.4 lib/kuber_kit/core/configuration.rb
kuber_kit-0.3.3 lib/kuber_kit/core/configuration.rb
kuber_kit-0.3.2 lib/kuber_kit/core/configuration.rb