module KubectlClient::Get
Defined in:
modules/get.crClass Method Summary
- .container_image_tags(containers : JSON::Any) : Array(NamedTuple(image: String, tag: String))
- .container_runtimes
-
.match_pods_by_prefix(pod_name_prefix : String, field_selector : String | Nil = nil, namespace : String | Nil = nil) : Array(String)
TODO (rafal-lal): add spec for this method
- .node_ready?(node_name : String) : Bool
- .nodes_by_pod(pod, retry_limit = 3) : Array(JSON::Any)
- .nodes_by_resource(resource, retry_limit = 20) : Array(JSON::Any)
- .pod_ready?(pod_name_prefix : String, field_selector : String | Nil = nil, namespace : String | Nil = nil) : Bool
- .pods_by_digest(container_digest) : Array(JSON::Any)
- .pods_by_labels(pods_json : Array(JSON::Any), labels : Hash(String, String))
- .pods_by_labels(pods_json : Array(JSON::Any), labels : Hash(String, JSON::Any))
- .pods_by_nodes(nodes_json : Array(JSON::Any))
-
.pods_by_resource_labels(resource_json : JSON::Any, namespace : String | Nil = nil) : Array(JSON::Any)
TODO (rafal-lal) if namespace not provided, automatically assume all_namespaces rather than default -> make sure that is the case throughout the codebase
- .pods_by_service(service) : Array(JSON::Any) | Nil
- .privileged_containers(namespace : String | Nil = nil, all_namespaces : Bool | Nil = true) : Array(JSON::Any)
- .pv_items_by_claim_name(claim_name : String) : Array(JSON::Any)
- .replica_count(kind : String, resource_name : String, namespace : String | Nil = nil) : NamedTuple(current: Int32, desired: Int32, unavailable: Int32)
- .resource(kind : String, resource_name : String | Nil = nil, namespace : String | Nil = nil, all_namespaces : Bool = false, field_selector : String | Nil = nil, selector : String | Nil = nil) : JSON::Any
- .resource_containers(kind : String, resource_name : String, namespace : String | Nil = nil) : JSON::Any
- .resource_map(k8s_manifest, &)
- .resource_select(k8s_manifest, &)
- .resource_select(&)
- .resource_spec_labels(kind : String, resource_name : String, namespace : String | Nil = nil) : JSON::Any
- .resource_volumes(kind : String, resource_name : String, namespace : String | Nil = nil) : JSON::Any
- .schedulable_nodes_list(retry_limit : Int32 = 20) : Array(JSON::Any)
- .service_by_pod(pod) : JSON::Any | Nil
- .worker_nodes : Array(String)
Class Method Detail
def self.container_image_tags(containers : JSON::Any) : Array(NamedTuple(image: String, tag: String))
#
def self.match_pods_by_prefix(pod_name_prefix : String, field_selector : String | Nil = nil, namespace : String | Nil = nil) : Array(String)
#
TODO (rafal-lal): add spec for this method
def self.pod_ready?(pod_name_prefix : String, field_selector : String | Nil = nil, namespace : String | Nil = nil) : Bool
#
def self.pods_by_labels(pods_json : Array(JSON::Any), labels : Hash(String, String))
#
def self.pods_by_labels(pods_json : Array(JSON::Any), labels : Hash(String, JSON::Any))
#
def self.pods_by_resource_labels(resource_json : JSON::Any, namespace : String | Nil = nil) : Array(JSON::Any)
#
TODO (rafal-lal) if namespace not provided, automatically assume all_namespaces rather than default -> make sure that is the case throughout the codebase
def self.privileged_containers(namespace : String | Nil = nil, all_namespaces : Bool | Nil = true) : Array(JSON::Any)
#
def self.resource(kind : String, resource_name : String | Nil = nil, namespace : String | Nil = nil, all_namespaces : Bool = false, field_selector : String | Nil = nil, selector : String | Nil = nil) : JSON::Any
#
def self.resource_containers(kind : String, resource_name : String, namespace : String | Nil = nil) : JSON::Any
#
def self.resource_spec_labels(kind : String, resource_name : String, namespace : String | Nil = nil) : JSON::Any
#
def self.resource_volumes(kind : String, resource_name : String, namespace : String | Nil = nil) : JSON::Any
#