Class: Pangea::Kubernetes::Types::FirewallConfig
- Inherits:
-
Resources::BaseAttributes
- Object
- Resources::BaseAttributes
- Pangea::Kubernetes::Types::FirewallConfig
- Defined in:
- lib/pangea/kubernetes/types/firewall_config.rb
Overview
Firewall configuration for blackmatter-kubernetes NixOS modules. Maps to ‘firewall.*` options in the NixOS module.
Instance Method Summary collapse
Instance Method Details
#to_h ⇒ Object
28 29 30 31 32 33 34 35 |
# File 'lib/pangea/kubernetes/types/firewall_config.rb', line 28 def to_h hash = { enabled: enabled } hash[:extra_tcp_ports] = extra_tcp_ports if extra_tcp_ports.any? hash[:extra_udp_ports] = extra_udp_ports if extra_udp_ports.any? hash[:trusted_cidrs] = trusted_cidrs if trusted_cidrs.any? hash[:allow_intra_cluster] = allow_intra_cluster hash end |