case class NetworkPolicyPeer(ipBlock: Optional[IPBlock], namespaceSelector: Optional[LabelSelector], podSelector: Optional[LabelSelector])
NetworkPolicyPeer describes a peer to allow traffic to/from. Only certain combinations of fields are allowed
- Companion:
- object
Value members
Concrete methods
Gets ipBlock.
Gets ipBlock.
If the field is not present, fails with com.coralogix.zio.k8s.client.UndefinedField.
Gets namespaceSelector.
Gets namespaceSelector.
If the field is not present, fails with com.coralogix.zio.k8s.client.UndefinedField.
Gets podSelector.
Gets podSelector.
If the field is not present, fails with com.coralogix.zio.k8s.client.UndefinedField.