class Kube::Client::Config

Overview

Kubernetes client configuration class

Defined in:

kube/client/config.cr
kube/client/config/auth_provider.cr
kube/client/config/context.cr
kube/client/error.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(data : YAML::Any, kcfg_path : String | Nil = nil) #

data (Hash) - Parsed kubeconfig data. kcfg_path (string) - Base directory for resolving relative references to external files. If set to nil, all external lookups & commands are disabled (even for absolute paths). See also the more convenient Config.read


[View source]

Class Method Detail

def self.read(filename : String) #

Builds Config instance by parsing given file, with lookups relative to file's directory.


[View source]

Instance Method Detail

def contexts : Array(String) #

Returns all the available contexts


[View source]
def current_context #

[View source]
def fetch_context(context_name : String) #

Fetch the cluster, user and namespace information for the provided {context_name}


[View source]
def fetch_user_auth_options(user : YAML::Any) #

TODO Enable exec support

TODO Enable auth provider

TODO Enable support for user/pass


[View source]