class Kube::Client

Included Modules

Defined in:

kube/client.cr
kube/client/api.cr
kube/client/config.cr
kube/client/config/context.cr
kube/error.cr
kube/version.cr

Constant Summary

VERSION = "0.1.0"

Constructors

Instance Method Summary

Constructor Detail

def self.new(kube_file : String) #

[View source]
def self.new #

Initialize a Client using the KUBECONFIG env


[View source]

Instance Method Detail

def api : Kube::Client::Api #

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

Change the current context

@example

client = Kube::Client.new("~/.kube/config")
client.context[:name]   => "mysql-test"
client.change_context("mysql-helper")
client.context[:name]   => "mysql-helper"

[View source]
def config : Kube::Client::Config #

[View source]
def context : Hash(Symbol, String | YAML::Any | Nil) #

[View source]
def context=(context : Hash(Symbol, String | YAML::Any | Nil)) #

[View source]
def pods(namespace : String | Nil = nil, label_selector : Hash(String, String) | Nil = nil) #

[View source]