Class V1NetworkPolicyPeer
NetworkPolicyPeer describes a peer to allow traffic to/from. Only certain
combinations of fields are allowed
Inheritance
V1NetworkPolicyPeer
Assembly: KubernetesClient.dll
Syntax
public record V1NetworkPolicyPeer : IEquatable<V1NetworkPolicyPeer>
Constructors
View Source
V1NetworkPolicyPeer()
Declaration
public V1NetworkPolicyPeer()
View Source
V1NetworkPolicyPeer(V1NetworkPolicyPeer)
Declaration
protected V1NetworkPolicyPeer(V1NetworkPolicyPeer original)
Parameters
Properties
View Source
EqualityContract
Declaration
protected virtual Type EqualityContract { get; }
Property Value
View Source
IpBlock
ipBlock defines policy on a particular IPBlock. If this field is set then
neither of the other fields can be.
Declaration
[JsonPropertyName("ipBlock")]
public V1IPBlock IpBlock { get; set; }
Property Value
View Source
NamespaceSelector
namespaceSelector selects namespaces using cluster-scoped labels. This field
follows standard label selector semantics; if present but empty, it selects all
namespaces.
If podSelector is also set, then the NetworkPolicyPeer as a whole selects the
pods matching podSelector in the namespaces selected by namespaceSelector.
Otherwise it selects all pods in the namespaces selected by namespaceSelector.
Declaration
[JsonPropertyName("namespaceSelector")]
public V1LabelSelector NamespaceSelector { get; set; }
Property Value
View Source
PodSelector
podSelector is a label selector which selects pods. This field follows standard
label selector semantics; if present but empty, it selects all pods.
If namespaceSelector is also set, then the NetworkPolicyPeer as a whole selects
the pods matching podSelector in the Namespaces selected by NamespaceSelector.
Otherwise it selects the pods matching podSelector in the policy's own
namespace.
Declaration
[JsonPropertyName("podSelector")]
public V1LabelSelector PodSelector { get; set; }
Property Value
Methods
View Source
Equals(object?)
Declaration
public override bool Equals(object? obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
Overrides
View Source
Equals(V1NetworkPolicyPeer?)
Declaration
public virtual bool Equals(V1NetworkPolicyPeer? other)
Parameters
Returns
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
View Source
PrintMembers(StringBuilder)
Declaration
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
Returns
View Source
ToString()
Declaration
public override string ToString()
Returns
Overrides
Operators
View Source
operator ==(V1NetworkPolicyPeer?, V1NetworkPolicyPeer?)
Declaration
public static bool operator ==(V1NetworkPolicyPeer? left, V1NetworkPolicyPeer? right)
Parameters
Returns
View Source
operator !=(V1NetworkPolicyPeer?, V1NetworkPolicyPeer?)
Declaration
public static bool operator !=(V1NetworkPolicyPeer? left, V1NetworkPolicyPeer? right)
Parameters
Returns
Implements