Class: KubeDSL::DSL::V1::NodeStatus

Inherits:
KubeDSL::DSLObject show all
Defined in:
lib/kube-dsl/dsl/v1/node_status.rb

Instance Method Summary collapse

Methods inherited from KubeDSL::DSLObject

#initialize, #to_resource

Methods included from ValueFields

extended

Methods included from Validations

extended

Constructor Details

This class inherits a constructor from KubeDSL::DSLObject

Instance Method Details

#kind_symObject



43
44
45
# File 'lib/kube-dsl/dsl/v1/node_status.rb', line 43

def kind_sym
  :node_status
end

#serializeObject



27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# File 'lib/kube-dsl/dsl/v1/node_status.rb', line 27

def serialize
  {}.tap do |result|
    result[:addresses] = addresses.map(&:serialize)
    result[:allocatable] = allocatable.serialize
    result[:capacity] = capacity.serialize
    result[:conditions] = conditions.map(&:serialize)
    result[:config] = config.serialize
    result[:daemonEndpoints] = daemon_endpoints.serialize
    result[:images] = images.map(&:serialize)
    result[:nodeInfo] = node_info.serialize
    result[:phase] = phase
    result[:volumesAttached] = volumes_attacheds.map(&:serialize)
    result[:volumesInUse] = volumes_in_use
  end
end