Class ExternalIPPolicy
- java.lang.Object
-
- io.fabric8.openshift.api.model.config.v1.ExternalIPPolicy
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<ExternalIPPolicyBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class ExternalIPPolicy extends Object implements io.fabric8.kubernetes.api.builder.Editable<ExternalIPPolicyBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
ExternalIPPolicy configures exactly which IPs are allowed for the ExternalIP field in a Service. If the zero struct is supplied, then none are permitted. The policy controller always allows automatically assigned external IPs.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ExternalIPPolicy()No args constructor for use in serializationExternalIPPolicy(List<String> allowedCIDRs, List<String> rejectedCIDRs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExternalIPPolicyBuilderedit()Map<String,Object>getAdditionalProperties()List<String>getAllowedCIDRs()allowedCIDRs is the list of allowed CIDRs.List<String>getRejectedCIDRs()rejectedCIDRs is the list of disallowed CIDRs.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetAllowedCIDRs(List<String> allowedCIDRs)allowedCIDRs is the list of allowed CIDRs.voidsetRejectedCIDRs(List<String> rejectedCIDRs)rejectedCIDRs is the list of disallowed CIDRs.ExternalIPPolicyBuildertoBuilder()
-
-
-
Method Detail
-
setAllowedCIDRs
public void setAllowedCIDRs(List<String> allowedCIDRs)
allowedCIDRs is the list of allowed CIDRs.
-
getRejectedCIDRs
public List<String> getRejectedCIDRs()
rejectedCIDRs is the list of disallowed CIDRs. These take precedence over allowedCIDRs.
-
setRejectedCIDRs
public void setRejectedCIDRs(List<String> rejectedCIDRs)
rejectedCIDRs is the list of disallowed CIDRs. These take precedence over allowedCIDRs.
-
edit
public ExternalIPPolicyBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<ExternalIPPolicyBuilder>
-
toBuilder
public ExternalIPPolicyBuilder toBuilder()
-
-