Class: KubeDSL::DSL::Settings::V1alpha1::PodPresetSpec
Instance Method Summary
collapse
#initialize, #to_resource
extended
extended
Instance Method Details
#kind_sym ⇒ Object
25
26
27
|
# File 'lib/kube-dsl/dsl/settings/v1alpha1/pod_preset_spec.rb', line 25
def kind_sym
:pod_preset_spec
end
|
#serialize ⇒ Object
15
16
17
18
19
20
21
22
23
|
# File 'lib/kube-dsl/dsl/settings/v1alpha1/pod_preset_spec.rb', line 15
def serialize
{}.tap do |result|
result[:env] = envs.map(&:serialize)
result[:envFrom] = env_froms.map(&:serialize)
result[:selector] = selector.serialize
result[:volumeMounts] = volume_mounts.map(&:serialize)
result[:volumes] = volumes.map(&:serialize)
end
end
|