class Pyrite::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.
Defined in:
versions/v1.14/api/networking/v1/network_policy_ingress_rule.crConstructors
-
.new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
NetworkPolicyIngressRule describes a particular set of traffic that is allowed to the pods matched by a NetworkPolicySpec's podSelector.
-
.new(pull : JSON::PullParser)
NetworkPolicyIngressRule describes a particular set of traffic that is allowed to the pods matched by a NetworkPolicySpec's podSelector.
- .new(*, from : Array? = nil, ports : Array? = nil)
Instance Method Summary
- #from : Array(Api::Networking::V1::NetworkPolicyPeer)?
- #from=(from : Array(Api::Networking::V1::NetworkPolicyPeer)?)
- #ports : Array(Api::Networking::V1::NetworkPolicyPort)?
- #ports=(ports : Array(Api::Networking::V1::NetworkPolicyPort)?)
Constructor methods inherited from class Pyrite::Kubernetes::Spec
new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)new(pull : JSON::PullParser) new
Constructor Detail
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.
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.