class K8S::Api::Networking::V1::NetworkPolicyPeer
- K8S::Api::Networking::V1::NetworkPolicyPeer
- Reference
- Object
Overview
NetworkPolicyPeer describes a peer to allow traffic [to/from. Only certain combinations of fields are allowed](to/from. Only certain combinations of fields are allowed)
Included Modules
- JSON::Serializable
- YAML::Serializable
Defined in:
versions/v1.21/api/networking/v1/network_policy_peer.crConstructors
- .new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
- .new(pull : JSON::PullParser)
- .new(*, ip_block : Api::Networking::V1::IPBlock? = nil, namespace_selector : Apimachinery::Apis::Meta::V1::LabelSelector? = nil, pod_selector : Apimachinery::Apis::Meta::V1::LabelSelector? = nil)
Instance Method Summary
- #ip_block : Api::Networking::V1::IPBlock?
- #ip_block=(ip_block : Api::Networking::V1::IPBlock?)
- #namespace_selector : Apimachinery::Apis::Meta::V1::LabelSelector?
- #namespace_selector=(namespace_selector : Apimachinery::Apis::Meta::V1::LabelSelector?)
- #pod_selector : Apimachinery::Apis::Meta::V1::LabelSelector?
- #pod_selector=(pod_selector : Apimachinery::Apis::Meta::V1::LabelSelector?)
Constructor Detail
def self.new(*, ip_block : Api::Networking::V1::IPBlock? = nil, namespace_selector : Apimachinery::Apis::Meta::V1::LabelSelector? = nil, pod_selector : Apimachinery::Apis::Meta::V1::LabelSelector? = nil)
#
Instance Method Detail
def namespace_selector=(namespace_selector : Apimachinery::Apis::Meta::V1::LabelSelector?)
#