class K8S::Api::Networking::V1::NetworkPolicyIngressRule
- K8S::Api::Networking::V1::NetworkPolicyIngressRule
- Reference
- Object
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
- JSON::Serializable
- JSON::Serializable::Unmapped
- YAML::Serializable
- YAML::Serializable::Unmapped
Defined in:
versions/v1.18/api/networking/v1/network_policy_ingress_rule.crConstructors
- .new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
- .new(pull : JSON::PullParser)
- .new(*, from : Array(Api::Networking::V1::NetworkPolicyPeer)? = nil, ports : Array(Api::Networking::V1::NetworkPolicyPort)? = 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 Detail
def self.new(*, from : Array(Api::Networking::V1::NetworkPolicyPeer)? = nil, ports : Array(Api::Networking::V1::NetworkPolicyPort)? = nil)
#