class K8S::Api::Networking::V1::NetworkPolicyPeer
- K8S::Api::Networking::V1::NetworkPolicyPeer
- Reference
- Object
Overview
NetworkPolicyPeer describes a peer to allow traffic from. Only certain combinations of fields are allowed
Included Modules
- JSON::Serializable
- JSON::Serializable::Unmapped
- YAML::Serializable
- YAML::Serializable::Unmapped
Defined in:
versions/v1.18/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?)
#