NetworkPolicyPeer constructor
const
NetworkPolicyPeer({
- Input<
IPBlock> ? ipBlock, - Input<
LabelSelector> ? namespaceSelector, - Input<
LabelSelector> ? podSelector,
Creates a new NetworkPolicyPeer.
ipBlock IPBlock defines policy on a particular IPBlock. If this field is set then neither of the other fields can be.
namespaceSelector Selects Namespaces using cluster-scoped labels. This field follows standard label selector semantics; if present but empty, it selects all namespaces.
podSelector This is a label selector which selects Pods. This field follows standard label selector semantics; if present but empty, it selects all pods.
Implementation
const NetworkPolicyPeer({
this.ipBlock,
this.namespaceSelector,
this.podSelector,
});