Class: Kuby::KubeDB::DSL::API::V1::ServiceSpec
- Inherits:
-
KubeDSL::DSLObject
- Object
- KubeDSL::DSLObject
- Kuby::KubeDB::DSL::API::V1::ServiceSpec
- Defined in:
- lib/kuby/kube-db/dsl/api/v1/service_spec.rb
Instance Method Summary collapse
Instance Method Details
#kind_sym ⇒ Object
34 35 36 |
# File 'lib/kuby/kube-db/dsl/api/v1/service_spec.rb', line 34 def kind_sym :service_spec end |
#serialize ⇒ Object
21 22 23 24 25 26 27 28 29 30 31 32 |
# File 'lib/kuby/kube-db/dsl/api/v1/service_spec.rb', line 21 def serialize {}.tap do |result| result[:loadBalancerIP] = load_balancer_ip result[:externalIPs] = external_i_ps result[:type] = type result[:externalTrafficPolicy] = external_traffic_policy result[:clusterIP] = cluster_ip result[:loadBalancerSourceRanges] = load_balancer_source_ranges result[:healthCheckNodePort] = health_check_node_port result[:ports] = ports.map(&:serialize) end end |