Class: KubeDSL::DSL::Settings::V1alpha1::PodPresetSpec
- Inherits:
-
KubeDSL::DSLObject
- Object
- KubeDSL::DSLObject
- KubeDSL::DSL::Settings::V1alpha1::PodPresetSpec
- Defined in:
- lib/kube-dsl/dsl/settings/v1alpha1/pod_preset_spec.rb
Instance Method Summary collapse
Methods inherited from KubeDSL::DSLObject
Methods included from ValueFields
#array_field, #object_field, #value_field, #value_fields
Constructor Details
This class inherits a constructor from KubeDSL::DSLObject
Instance Method Details
#kind_sym ⇒ Object
19 20 21 |
# File 'lib/kube-dsl/dsl/settings/v1alpha1/pod_preset_spec.rb', line 19 def kind_sym :pod_preset_spec end |
#serialize ⇒ Object
9 10 11 12 13 14 15 16 17 |
# File 'lib/kube-dsl/dsl/settings/v1alpha1/pod_preset_spec.rb', line 9 def serialize {}.tap do |result| result[:env] = envs.map(&:serialize) result[:envFrom] = env_froms.map(&:serialize) result[:volumeMounts] = volume_mounts.map(&:serialize) result[:volumes] = volumes.map(&:serialize) result[:selector] = selector.serialize end end |