Class: Porkadot::Install::Kubelet
- Inherits:
-
SSHKit::Host
- Object
- SSHKit::Host
- Porkadot::Install::Kubelet
- Defined in:
- lib/porkadot/install/kubelet.rb
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
-
#connection ⇒ Object
readonly
Returns the value of attribute connection.
-
#global_config ⇒ Object
readonly
Returns the value of attribute global_config.
-
#logger ⇒ Object
readonly
Returns the value of attribute logger.
Instance Method Summary collapse
- #etcd? ⇒ Boolean
-
#initialize(config) ⇒ Kubelet
constructor
A new instance of Kubelet.
Constructor Details
#initialize(config) ⇒ Kubelet
Returns a new instance of Kubelet.
200 201 202 203 204 205 206 |
# File 'lib/porkadot/install/kubelet.rb', line 200 def initialize config @config = config @logger = config.logger @global_config = config.config @connection = config.connection.to_hash(symbolize_keys: true) super(@connection) end |
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
196 197 198 |
# File 'lib/porkadot/install/kubelet.rb', line 196 def config @config end |
#connection ⇒ Object (readonly)
Returns the value of attribute connection.
198 199 200 |
# File 'lib/porkadot/install/kubelet.rb', line 198 def connection @connection end |
#global_config ⇒ Object (readonly)
Returns the value of attribute global_config.
195 196 197 |
# File 'lib/porkadot/install/kubelet.rb', line 195 def global_config @global_config end |
#logger ⇒ Object (readonly)
Returns the value of attribute logger.
197 198 199 |
# File 'lib/porkadot/install/kubelet.rb', line 197 def logger @logger end |
Instance Method Details
#etcd? ⇒ Boolean
208 209 210 |
# File 'lib/porkadot/install/kubelet.rb', line 208 def etcd? return self.config.raw.labels && self.config.raw.labels[Porkadot::ETCD_MEMBER_LABEL] end |