Class: KubeDSL::DSL::V1::NodeStatus
Instance Method Summary
collapse
#initialize, #to_resource
extended
extended
Instance Method Details
#kind_sym ⇒ Object
43
44
45
|
# File 'lib/kube-dsl/dsl/v1/node_status.rb', line 43
def kind_sym
:node_status
end
|
#serialize ⇒ Object
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
|