Class: Porkadot::Install::Kubelet

Inherits:
SSHKit::Host
  • Object
show all
Defined in:
lib/porkadot/install/kubelet.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#configObject (readonly)

Returns the value of attribute config.



196
197
198
# File 'lib/porkadot/install/kubelet.rb', line 196

def config
  @config
end

#connectionObject (readonly)

Returns the value of attribute connection.



198
199
200
# File 'lib/porkadot/install/kubelet.rb', line 198

def connection
  @connection
end

#global_configObject (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

#loggerObject (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

Returns:

  • (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