IngressSpec class
IngressSpec describes the Ingress the user wishes to exist.
Constructors
-
IngressSpec({IngressBackend? defaultBackend, String? ingressClassName, List<
IngressRule> ? rules, List<IngressTLS> ? tls}) -
Default constructor.
const
-
IngressSpec.fromJson(Map<
String, dynamic> json) -
Creates a IngressSpec from JSON data.
factory
Properties
- defaultBackend → IngressBackend?
-
defaultBackend is the backend that should handle requests that don't match any rule. If Rules are not specified, DefaultBackend must be specified. If DefaultBackend is not set, the handling of requests that do not match any of the rules will be up to the Ingress controller.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- ingressClassName → String?
-
ingressClassName is the name of an IngressClass cluster resource. Ingress controller implementations use this field to know whether they should be serving this Ingress resource, by a transitive connection (controller -> IngressClass -> Ingress resource). Although the
kubernetes.io/ingress.class
annotation (simple constant name) was never formally defined, it was widely supported by Ingress controllers to create a direct binding between Ingress controller and Ingress resources. Newly created Ingress resources should prefer using the field. However, even though the annotation is officially deprecated, for backwards compatibility reasons, ingress controllers should still honor that annotation if present.final -
rules
→ List<
IngressRule> ? -
rules is a list of host rules used to configure the Ingress. If unspecified, or no rule matches, all traffic is sent to the default backend.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
tls
→ List<
IngressTLS> ? -
tls represents the TLS configuration. Currently the Ingress only supports a single TLS port, 443. If multiple members of this list specify different hosts, they will be multiplexed on the same port according to the hostname specified through the SNI TLS extension, if the ingress controller fulfilling the ingress supports SNI.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object> - Converts a IngressSpec instance to JSON data.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited