Class: Kuby::Kubernetes::BareMetalProvider
- Extended by:
- T::Sig
- Defined in:
- lib/kuby/kubernetes/bare_metal_provider.rb
Defined Under Namespace
Classes: Config
Constant Summary collapse
- STORAGE_CLASS_NAME =
T.let('hostpath'.freeze, String)
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
Attributes inherited from Provider
Instance Method Summary collapse
- #configure(&block) ⇒ Object
-
#initialize(environment) ⇒ BareMetalProvider
constructor
A new instance of BareMetalProvider.
- #kubeconfig_path ⇒ Object
- #storage_class_name ⇒ Object
Methods inherited from Provider
#after_configuration, #after_deploy, #after_setup, #before_deploy, #before_setup, #deploy, #deployer, #helm_cli, #kubernetes_cli, #rollback, #setup
Constructor Details
#initialize(environment) ⇒ BareMetalProvider
Returns a new instance of BareMetalProvider.
22 23 24 25 |
# File 'lib/kuby/kubernetes/bare_metal_provider.rb', line 22 def initialize(environment) @config = T.let(Config.new, Config) super end |
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
19 20 21 |
# File 'lib/kuby/kubernetes/bare_metal_provider.rb', line 19 def config @config end |
Instance Method Details
#configure(&block) ⇒ Object
28 29 30 |
# File 'lib/kuby/kubernetes/bare_metal_provider.rb', line 28 def configure(&block) config.instance_eval(&block) if block end |
#kubeconfig_path ⇒ Object
33 34 35 |
# File 'lib/kuby/kubernetes/bare_metal_provider.rb', line 33 def kubeconfig_path config.kubeconfig end |
#storage_class_name ⇒ Object
38 39 40 |
# File 'lib/kuby/kubernetes/bare_metal_provider.rb', line 38 def storage_class_name STORAGE_CLASS_NAME end |