module KubectlClient::Utils
Defined in:
modules/modules.crClass Method Summary
- .annotate(kind : String, resource_name : String, annotatation_str : String, namespace : String | Nil = nil)
- .copy_from_pod(pod_name : String, source : String, destination : String, container_name : String | Nil = nil, namespace : String | Nil = nil)
- .copy_to_pod(pod_name : String, source : String, destination : String, container_name : String | Nil = nil, namespace : String | Nil = nil)
- .cordon(node_name : String)
-
.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.
-
.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.
- .label(kind : String, resource_name : String, labels : Array(String), namespace : String | Nil = nil)
- .logs(pod_name : String, container_name : String | Nil = nil, namespace : String | Nil = nil, options : String | Nil = nil)
- .replace_raw(path : String, file_path : String, extra_flags : String | Nil = nil)
- .scale(kind : String, resource_name : String, replicas : Int32, namespace : String | Nil = nil)
- .set_image(resource_kind : String, resource_name : String, container_name : String, image_name : String, version_tag : String | Nil = nil, namespace : String | Nil = nil)
- .uncordon(node_name : String)
Class Method Detail
def self.annotate(kind : String, resource_name : String, annotatation_str : String, namespace : String | Nil = nil)
#
def self.copy_from_pod(pod_name : String, source : String, destination : String, container_name : String | Nil = nil, namespace : String | Nil = nil)
#
def self.copy_to_pod(pod_name : String, source : String, destination : String, container_name : String | Nil = nil, namespace : String | Nil = nil)
#
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.
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.
def self.label(kind : String, resource_name : String, labels : Array(String), namespace : String | Nil = nil)
#
def self.logs(pod_name : String, container_name : String | Nil = nil, namespace : String | Nil = nil, options : String | Nil = nil)
#
def self.replace_raw(path : String, file_path : String, extra_flags : String | Nil = nil)
#
def self.scale(kind : String, resource_name : String, replicas : Int32, namespace : String | Nil = nil)
#
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)
#