Class Upstream
- java.lang.Object
-
- io.fabric8.openshift.api.model.operator.v1.Upstream
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<UpstreamBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class Upstream extends Object implements io.fabric8.kubernetes.api.builder.Editable<UpstreamBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
Upstream can either be of type SystemResolvConf, or of type Network.- For an Upstream of type SystemResolvConf, no further fields are necessary:
The upstream will be configured to use /etc/resolv.conf.
- For an Upstream of type Network, a NetworkResolver field needs to be defined
with an IP address or IP:port if the upstream listens on a port other than 53.
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UpstreamBuilderedit()Map<String,Object>getAdditionalProperties()StringgetAddress()address must be defined when Type is set to Network.LonggetPort()port may be defined when Type is set to Network.StringgetType()type defines whether this upstream contains an IP/IP:port resolver or the local /etc/resolv.conf.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetAddress(String address)address must be defined when Type is set to Network.voidsetPort(Long port)port may be defined when Type is set to Network.voidsetType(String type)type defines whether this upstream contains an IP/IP:port resolver or the local /etc/resolv.conf.UpstreamBuildertoBuilder()
-
-
-
Method Detail
-
getAddress
public String getAddress()
address must be defined when Type is set to Network. It will be ignored otherwise. It must be a valid ipv4 or ipv6 address.
-
setAddress
public void setAddress(String address)
address must be defined when Type is set to Network. It will be ignored otherwise. It must be a valid ipv4 or ipv6 address.
-
getPort
public Long getPort()
port may be defined when Type is set to Network. It will be ignored otherwise. Port must be between 65535
-
setPort
public void setPort(Long port)
port may be defined when Type is set to Network. It will be ignored otherwise. Port must be between 65535
-
getType
public String getType()
type defines whether this upstream contains an IP/IP:port resolver or the local /etc/resolv.conf. Type accepts 2 possible values: SystemResolvConf or Network.* When SystemResolvConf is used, the Upstream structure does not require any further fields to be defined:
/etc/resolv.conf will be used
* When Network is used, the Upstream structure must contain at least an Address
-
setType
public void setType(String type)
type defines whether this upstream contains an IP/IP:port resolver or the local /etc/resolv.conf. Type accepts 2 possible values: SystemResolvConf or Network.* When SystemResolvConf is used, the Upstream structure does not require any further fields to be defined:
/etc/resolv.conf will be used
* When Network is used, the Upstream structure must contain at least an Address
-
edit
public UpstreamBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<UpstreamBuilder>
-
toBuilder
public UpstreamBuilder toBuilder()
-
-