Class: KubeDSL::DSL::V1::NodeSpec
Instance Method Summary
collapse
#initialize, #to_resource
extended
extended
Instance Method Details
#kind_sym ⇒ Object
31
32
33
|
# File 'lib/kube-dsl/dsl/v1/node_spec.rb', line 31
def kind_sym
:node_spec
end
|
#serialize ⇒ Object
19
20
21
22
23
24
25
26
27
28
29
|
# File 'lib/kube-dsl/dsl/v1/node_spec.rb', line 19
def serialize
{}.tap do |result|
result[:configSource] = config_source.serialize
result[:externalID] = external_id
result[:podCIDR] = pod_cidr
result[:podCIDRs] = pod_cid_rs
result[:providerID] = provider_id
result[:taints] = taints.map(&:serialize)
result[:unschedulable] = unschedulable
end
end
|