lib/pharos/kube/config.rb
def config
        @config ||= yaml_content || {
          'apiVersion' => 'v1',
          'clusters' => [],
          'contexts' => [],
          'current-context' => nil,
          'kind' => 'Config',
          'preferences' => {},
          'users' => []
        }
      end
# Accessor to the configuration hash. Will use the YAML content for initialization if available.
# @return [Hash]
Accessor to the configuration hash. Will use the YAML content for initialization if available.
Accessor to the configuration hash . Will use the YAML content for initialization if available .
def config
        @config ||= yaml_content || {
          'apiVersion' => 'v1',
          'clusters' => [],
          'contexts' => [],
          'current-context' => nil,
          'kind' => 'Config',
          'preferences' => {},
          'users' => []
        }
      end
def config @config ||= yaml_content || { 'apiVersion' => 'v1' , 'clusters' => [ ] , 'contexts' => [ ] , 'current-context' => nil , 'kind' => 'Config' , 'preferences' => { } , 'users' => [ ] } end
Accessor to the configuration hash.
Accessor to the configuration hash .
None
Hash