module KubectlClient::Utils

Defined in:

modules/modules.cr

Class Method Summary

Class Method Detail

def self.annotate(kind : String, resource_name : String, annotatation_str : String, namespace : String | Nil = nil) #

[View source]
def self.copy_from_pod(pod_name : String, source : String, destination : String, container_name : String | Nil = nil, namespace : String | Nil = nil) #

[View source]
def self.copy_to_pod(pod_name : String, source : String, destination : String, container_name : String | Nil = nil, namespace : String | Nil = nil) #

[View source]
def self.cordon(node_name : String) #

[View source]
def self.exec(pod_name : String, command : String, container_name : String | Nil = nil, namespace : String | Nil = nil) #

Exceptions (other than network) not raised in this method as 'command' can be whatever caller desires, unlike other methods in which method body will build a valid command forced by its arguments.


[View source]
def self.exec_bg(pod_name : String, command : String, container_name : String | Nil = nil, namespace : String | Nil = nil) #

Use with caution as there is no error handling due to process being started in the background.


[View source]
def self.label(kind : String, resource_name : String, labels : Array(String), namespace : String | Nil = nil) #

[View source]
def self.logs(pod_name : String, container_name : String | Nil = nil, namespace : String | Nil = nil, options : String | Nil = nil) #

[View source]
def self.replace_raw(path : String, file_path : String, extra_flags : String | Nil = nil) #

[View source]
def self.scale(kind : String, resource_name : String, replicas : Int32, namespace : String | Nil = nil) #

[View source]
def self.set_image(resource_kind : String, resource_name : String, container_name : String, image_name : String, version_tag : String | Nil = nil, namespace : String | Nil = nil) #

[View source]
def self.uncordon(node_name : String) #

[View source]