Class: KubeDSL::DSL::Autoscaling::V2::HorizontalPodAutoscalerSpec
Instance Method Summary
collapse
#initialize, #to_resource
extended
extended
Instance Method Details
#kind_sym ⇒ Object
30
31
32
|
# File 'lib/kube-dsl/dsl/autoscaling/v2/horizontal_pod_autoscaler_spec.rb', line 30
def kind_sym
:horizontal_pod_autoscaler_spec
end
|
#serialize ⇒ Object
20
21
22
23
24
25
26
27
28
|
# File 'lib/kube-dsl/dsl/autoscaling/v2/horizontal_pod_autoscaler_spec.rb', line 20
def serialize
{}.tap do |result|
result[:behavior] = behavior.serialize
result[:maxReplicas] = max_replicas
result[:metrics] = metrics.map(&:serialize)
result[:minReplicas] = min_replicas
result[:scaleTargetRef] = scale_target_ref.serialize
end
end
|