Class: Kuby::Kubernetes::DockerDesktopProvider

Inherits:
Provider
  • Object
show all
Defined in:
lib/kuby/kubernetes/docker_desktop_provider.rb

Defined Under Namespace

Classes: Config

Constant Summary collapse

STORAGE_CLASS_NAME =
'hostpath'.freeze

Instance Attribute Summary collapse

Attributes inherited from Provider

#environment

Instance Method Summary collapse

Methods inherited from Provider

#after_configuration, #after_deploy, #after_setup, #before_deploy, #before_setup, #deploy, #deployer, #helm_cli, #initialize, #kubernetes_cli, #rollback, #setup

Constructor Details

This class inherits a constructor from Kuby::Kubernetes::Provider

Instance Attribute Details

#configObject (readonly)

Returns the value of attribute config.



15
16
17
# File 'lib/kuby/kubernetes/docker_desktop_provider.rb', line 15

def config
  @config
end

Instance Method Details

#configure(&block) ⇒ Object



17
18
19
# File 'lib/kuby/kubernetes/docker_desktop_provider.rb', line 17

def configure(&block)
  config.instance_eval(&block) if block
end

#kubeconfig_pathObject



21
22
23
# File 'lib/kuby/kubernetes/docker_desktop_provider.rb', line 21

def kubeconfig_path
  config.kubeconfig
end

#storage_class_nameObject



25
26
27
# File 'lib/kuby/kubernetes/docker_desktop_provider.rb', line 25

def storage_class_name
  STORAGE_CLASS_NAME
end