Class IngressSpec
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.api.networking.v1.IngressSpec
-
- All Implemented Interfaces:
com.marcnuri.yakc.model.Model
public class IngressSpec extends java.lang.Object implements com.marcnuri.yakc.model.Model
IngressSpec describes the Ingress the user wishes to exist.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
IngressSpec.Builder
-
Constructor Summary
Constructors Constructor Description IngressSpec()
IngressSpec(IngressBackend defaultBackend, java.lang.String ingressClassName, java.util.List<IngressRule> rules, java.util.List<IngressTLS> tls)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static IngressSpec.Builder
builder()
protected boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
IngressBackend
getDefaultBackend()
java.lang.String
getIngressClassName()
ingressClassName is the name of an IngressClass cluster resource.java.util.List<IngressRule>
getRules()
rules is a list of host rules used to configure the Ingress.java.util.List<IngressTLS>
getTls()
tls represents the TLS configuration.int
hashCode()
void
setDefaultBackend(IngressBackend defaultBackend)
void
setIngressClassName(java.lang.String ingressClassName)
ingressClassName is the name of an IngressClass cluster resource.void
setRules(java.util.List<IngressRule> rules)
rules is a list of host rules used to configure the Ingress.void
setTls(java.util.List<IngressTLS> tls)
tls represents the TLS configuration.IngressSpec.Builder
toBuilder()
java.lang.String
toString()
-
-
-
Constructor Detail
-
IngressSpec
public IngressSpec(IngressBackend defaultBackend, java.lang.String ingressClassName, java.util.List<IngressRule> rules, java.util.List<IngressTLS> tls)
-
IngressSpec
public IngressSpec()
-
-
Method Detail
-
builder
public static IngressSpec.Builder builder()
-
toBuilder
public IngressSpec.Builder toBuilder()
-
getDefaultBackend
public IngressBackend getDefaultBackend()
-
getIngressClassName
public java.lang.String getIngressClassName()
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.
-
getRules
public java.util.List<IngressRule> getRules()
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.
-
getTls
public java.util.List<IngressTLS> getTls()
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.
-
setDefaultBackend
public void setDefaultBackend(IngressBackend defaultBackend)
-
setIngressClassName
public void setIngressClassName(java.lang.String ingressClassName)
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.
-
setRules
public void setRules(java.util.List<IngressRule> rules)
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.
-
setTls
public void setTls(java.util.List<IngressTLS> tls)
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.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-