Class: Pangea::Kubernetes::Types::NetworkConfig
- Inherits:
-
Resources::BaseAttributes
- Object
- Resources::BaseAttributes
- Pangea::Kubernetes::Types::NetworkConfig
- Defined in:
- lib/pangea/kubernetes/types.rb
Overview
Network configuration — cloud-agnostic
Instance Method Summary collapse
Instance Method Details
#to_h ⇒ Object
134 135 136 137 138 139 140 141 142 143 144 145 |
# File 'lib/pangea/kubernetes/types.rb', line 134 def to_h hash = { private_endpoint: private_endpoint, public_endpoint: public_endpoint } hash[:vpc_cidr] = vpc_cidr if vpc_cidr hash[:pod_cidr] = pod_cidr if pod_cidr hash[:service_cidr] = service_cidr if service_cidr hash[:subnet_ids] = subnet_ids if subnet_ids.any? hash[:security_group_ids] = security_group_ids if security_group_ids.any? hash end |