Class: KubeDSL::DSL::V1::NodeSpec

Inherits:
KubeDSL::DSLObject show all
Defined in:
lib/kube-dsl/dsl/v1/node_spec.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



31
32
33
# File 'lib/kube-dsl/dsl/v1/node_spec.rb', line 31

def kind_sym
  :node_spec
end

#serializeObject



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