Module: Kubert

Extended by:
Configuration
Defined in:
lib/kubert.rb,
lib/kubert/cli.rb,
lib/kubert/pods.rb,
lib/kubert/env_cli.rb,
lib/kubert/version.rb,
lib/kubert/deployment.rb,
lib/kubert/environment.rb,
lib/kubert/file_access.rb,
lib/kubert/configuration.rb

Defined Under Namespace

Modules: Configuration Classes: Cli, Deployment, EnvCli, Environment, FileAccess, Pods

Constant Summary collapse

VERSION =
"0.2.2"

Constants included from Configuration

Configuration::DEFAULT_KUBE_CONFIG_PATH

Class Method Summary collapse

Methods included from Configuration

config_file_name, configuration, console_command, context, current_environment, current_namespace, kube_config, ky_active?, ky_configuration, ky_default_configuration, secret_file_name

Class Method Details

.clientObject



14
15
16
17
18
19
20
21
22
23
24
25
# File 'lib/kubert.rb', line 14

def self.client
  @client ||= begin
    Kubeclient::Client.new(
      kube_config.context.api_endpoint,
        kube_config.context.api_version,
        {
          ssl_options: kube_config.context.ssl_options,
          auth_options: kube_config.context.auth_options
        }
    )
  end
end