Class L4MatchAttributes
L4 connection match attributes. Note that L4 connection matching support is incomplete.
Namespace: Neon.Kube.Resources.Istio
Assembly: Neon.Kube.Resources.dll
Syntax
public class L4MatchAttributes
Constructors
L4MatchAttributes()
Initializes a new instance of the L4MatchAttributes class.
Declaration
public L4MatchAttributes()
Properties
DestinationSubnets
IPv4 or IPv6 ip addresses of destination with optional subnet. E.g., a.b.c.d/xx form or just a.b.c.d.
Declaration
[JsonProperty(PropertyName = "destinationSubnets", Required = Required.Default, DefaultValueHandling = DefaultValueHandling.IgnoreAndPopulate)]
public List<string> DestinationSubnets { get; set; }
Property Value
Type | Description |
---|---|
List<string> |
Gateways
Names of gateways where the rule should be applied. Gateway names in the top-level gateways field of the V1VirtualService (if any) are overridden. The gateway match is independent of sourceLabels.
Declaration
[JsonProperty(PropertyName = "gateways", Required = Required.Default, DefaultValueHandling = DefaultValueHandling.IgnoreAndPopulate)]
public List<string> Gateways { get; set; }
Property Value
Type | Description |
---|---|
List<string> |
Port
Specifies the port on the host that is being addressed. Many services only expose a single port or label ports with the protocols they support, in these cases it is not required to explicitly select the port.
Declaration
[JsonProperty(PropertyName = "port", Required = Required.Default, DefaultValueHandling = DefaultValueHandling.IgnoreAndPopulate)]
public int? Port { get; set; }
Property Value
Type | Description |
---|---|
int? |
SourceLabels
One or more labels that constrain the applicability of a rule to workloads with the given labels. If the V1VirtualService has a list of gateways specified in the top-level gateways field, it should include the reserved gateway mesh in order for this field to be applicable.
Declaration
[JsonProperty(PropertyName = "sourceLabels", Required = Required.Default, DefaultValueHandling = DefaultValueHandling.IgnoreAndPopulate)]
public Dictionary<string, string> SourceLabels { get; set; }
Property Value
Type | Description |
---|---|
Dictionary<string, string> |
SourceNamespace
Source namespace constraining the applicability of a rule to workloads in that namespace. If the V1VirtualService has a list of gateways specified in the top-level gateways field, it must include the reserved gateway mesh for this field to be applicable.
Declaration
[JsonProperty(PropertyName = "sourceNamespace", Required = Required.Default, DefaultValueHandling = DefaultValueHandling.IgnoreAndPopulate)]
public string SourceNamespace { get; set; }
Property Value
Type | Description |
---|---|
string |
Methods
Validate()
Validate the object.
Declaration
public virtual void Validate()
Exceptions
Type | Condition |
---|---|
ValidationException | Thrown if validation fails. |