lib/k8s/kubeconfig/root.rb
# Find a named cluster by name
# @param name [String] defaults to current context cluster name
# @return [NamedCluster,NilClass]
Find a named cluster by name
Find a named cluster by name
def named_cluster(name = context&.cluster)
        return nil if name.nil?
        clusters.find { |c| c.name == name }
      end
def named_cluster ( name = context &. cluster ) return nil if name . nil? clusters . find { | c | c . name == name } end
Find a named cluster by name
Find a named cluster by name
None
NamedCluster,NilClass
name
defaults to current context cluster name
defaults to current context cluster name
current context cluster name
context
<not_specific>
cluster
<not_specific>