Class TLSMatchAttributes
TLS connection match attributes.
Namespace: Neon.Kube.Resources.Istio
Assembly: Neon.Kube.Resources.dll
Syntax
public class TLSMatchAttributes
Constructors
TLSMatchAttributes()
Initializes a new instance of the TLSMatchAttributes class.
Declaration
public TLSMatchAttributes()
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? |
SniHosts
SNI (server name indicator) to match on. Wildcard prefixes can be used in the SNI value, e.g., *.com will match foo.example.com as well as example.com. An SNI value must be a subset (i.e., fall within the domain) of the corresponding virtual serivce’s hosts.
Declaration
[JsonProperty(PropertyName = "sniHosts", Required = Required.Always, DefaultValueHandling = DefaultValueHandling.IgnoreAndPopulate)]
public List<string> SniHosts { get; set; }
Property Value
Type | Description |
---|---|
List<string> |
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. |