Class: Porkadot::Configs::Bootstrap::Kubelet
- Defined in:
- lib/porkadot/configs/bootstrap.rb
Instance Attribute Summary collapse
-
#bootstrap_config ⇒ Object
readonly
Returns the value of attribute bootstrap_config.
Attributes inherited from Kubelet
Instance Method Summary collapse
- #control_plane_endpoint ⇒ Object
-
#initialize(bootstrap_config) ⇒ Kubelet
constructor
A new instance of Kubelet.
- #target_path ⇒ Object
- #target_secrets_path ⇒ Object
Methods inherited from Kubelet
#addon_path, #addon_secrets_path, #annotations, #apiserver?, #bootstrap_cert_path, #bootstrap_key_path, #hostname, #kubelet_config, #labels, #labels_string
Methods included from Porkadot::ConfigUtils
#asset_path, #config, #logger, #method_missing, #raw, #respond_to_missing?, #secrets_path
Constructor Details
#initialize(bootstrap_config) ⇒ Kubelet
Returns a new instance of Kubelet.
6 7 8 9 10 |
# File 'lib/porkadot/configs/bootstrap.rb', line 6 def initialize bootstrap_config @bootstrap_config = bootstrap_config # TODO: specify default node super bootstrap_config.config, 'bootstrap', bootstrap_config.raw.node end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Porkadot::ConfigUtils
Instance Attribute Details
#bootstrap_config ⇒ Object (readonly)
Returns the value of attribute bootstrap_config.
5 6 7 |
# File 'lib/porkadot/configs/bootstrap.rb', line 5 def bootstrap_config @bootstrap_config end |
Instance Method Details
#control_plane_endpoint ⇒ Object
12 13 14 |
# File 'lib/porkadot/configs/bootstrap.rb', line 12 def control_plane_endpoint "127.0.0.1:#{bootstrap_config.config.k8s.apiserver.bind_port}" end |
#target_path ⇒ Object
16 17 18 |
# File 'lib/porkadot/configs/bootstrap.rb', line 16 def target_path File.join(bootstrap_config.target_path, 'kubelet') end |
#target_secrets_path ⇒ Object
20 21 22 |
# File 'lib/porkadot/configs/bootstrap.rb', line 20 def target_secrets_path File.join(bootstrap_config.target_secrets_path, 'kubelet') end |