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