Class: Porkadot::Configs::Bootstrap
Defined Under Namespace
Classes: Kubelet
Instance Attribute Summary collapse
Instance Method Summary
collapse
#asset_path, #config, #logger, #method_missing, #raw, #respond_to_missing?
Constructor Details
#initialize(config) ⇒ Bootstrap
Returns a new instance of Bootstrap.
28
29
30
31
32
|
# File 'lib/porkadot/configs/bootstrap.rb', line 28
def initialize config
@config = config
@raw = config.raw.bootstrap
@kubelet_config = Kubelet.new(self)
end
|
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
in the class Porkadot::ConfigUtils
Instance Attribute Details
#kubelet_config ⇒ Object
Returns the value of attribute kubelet_config.
26
27
28
|
# File 'lib/porkadot/configs/bootstrap.rb', line 26
def kubelet_config
@kubelet_config
end
|
Instance Method Details
#apiserver_path ⇒ Object
62
63
64
|
# File 'lib/porkadot/configs/bootstrap.rb', line 62
def apiserver_path
File.join(self.manifests_path, 'kube-apiserver.bootstrap.yaml')
end
|
#bootstrap_path ⇒ Object
42
43
44
|
# File 'lib/porkadot/configs/bootstrap.rb', line 42
def bootstrap_path
File.join(self.target_path, 'bootstrap')
end
|
#bootstrap_secrets_path ⇒ Object
46
47
48
|
# File 'lib/porkadot/configs/bootstrap.rb', line 46
def bootstrap_secrets_path
File.join(self.target_secrets_path, 'bootstrap')
end
|
#controller_manager_path ⇒ Object
66
67
68
|
# File 'lib/porkadot/configs/bootstrap.rb', line 66
def controller_manager_path
File.join(self.manifests_path, 'kube-controller-manager.bootstrap.yaml')
end
|
#install_sh_path ⇒ Object
74
75
76
|
# File 'lib/porkadot/configs/bootstrap.rb', line 74
def install_sh_path
File.join(self.target_path, 'install.sh')
end
|
#kubeconfig_path ⇒ Object
54
55
56
|
# File 'lib/porkadot/configs/bootstrap.rb', line 54
def kubeconfig_path
File.join(self.bootstrap_path, 'kubeconfig-bootstrap.yaml')
end
|
#manifests_path ⇒ Object
58
59
60
|
# File 'lib/porkadot/configs/bootstrap.rb', line 58
def manifests_path
File.join(self.target_path, 'manifests')
end
|
#scheduler_path ⇒ Object
70
71
72
|
# File 'lib/porkadot/configs/bootstrap.rb', line 70
def scheduler_path
File.join(self.manifests_path, 'kube-scheduler.bootstrap.yaml')
end
|
#secrets_path ⇒ Object
50
51
52
|
# File 'lib/porkadot/configs/bootstrap.rb', line 50
def secrets_path
File.join(self.bootstrap_secrets_path, 'secrets')
end
|
#target_path ⇒ Object
34
35
36
|
# File 'lib/porkadot/configs/bootstrap.rb', line 34
def target_path
File.join(self.config.assets_dir, 'bootstrap')
end
|
#target_secrets_path ⇒ Object
38
39
40
|
# File 'lib/porkadot/configs/bootstrap.rb', line 38
def target_secrets_path
File.join(self.config.secrets_root_dir, 'bootstrap')
end
|