class K8S::Api::Networking::V1::NetworkPolicyIngressRule

Overview

NetworkPolicyIngressRule describes a particular set of traffic that is allowed to the pods matched by a NetworkPolicySpec's podSelector. The traffic must match both ports and from.

Included Modules

Defined in:

versions/v1.22/api/networking/v1/network_policy_ingress_rule.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(ctx : YAML::ParseContext, node : YAML::Nodes::Node) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]
def self.new(*, from : Array(Api::Networking::V1::NetworkPolicyPeer)? = nil, ports : Array(Api::Networking::V1::NetworkPolicyPort)? = nil) #

[View source]

Instance Method Detail


[View source]
def from=(from : Array(Api::Networking::V1::NetworkPolicyPeer)?) #

[View source]

[View source]
def ports=(ports : Array(Api::Networking::V1::NetworkPolicyPort)?) #

[View source]