Class RegistrySources
- java.lang.Object
-
- io.fabric8.openshift.api.model.config.v1.RegistrySources
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<RegistrySourcesBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class RegistrySources extends Object implements io.fabric8.kubernetes.api.builder.Editable<RegistrySourcesBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
RegistrySources holds cluster-wide information about how to handle the registries config.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RegistrySources()No args constructor for use in serializationRegistrySources(List<String> allowedRegistries, List<String> blockedRegistries, List<String> containerRuntimeSearchRegistries, List<String> insecureRegistries)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RegistrySourcesBuilderedit()Map<String,Object>getAdditionalProperties()List<String>getAllowedRegistries()allowedRegistries are the only registries permitted for image pull and push actions.List<String>getBlockedRegistries()blockedRegistries cannot be used for image pull and push actions.List<String>getContainerRuntimeSearchRegistries()containerRuntimeSearchRegistries are registries that will be searched when pulling images that do not have fully qualified domains in their pull specs.List<String>getInsecureRegistries()insecureRegistries are registries which do not have a valid TLS certificates or only support HTTP connections.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetAllowedRegistries(List<String> allowedRegistries)allowedRegistries are the only registries permitted for image pull and push actions.voidsetBlockedRegistries(List<String> blockedRegistries)blockedRegistries cannot be used for image pull and push actions.voidsetContainerRuntimeSearchRegistries(List<String> containerRuntimeSearchRegistries)containerRuntimeSearchRegistries are registries that will be searched when pulling images that do not have fully qualified domains in their pull specs.voidsetInsecureRegistries(List<String> insecureRegistries)insecureRegistries are registries which do not have a valid TLS certificates or only support HTTP connections.RegistrySourcesBuildertoBuilder()
-
-
-
Method Detail
-
getAllowedRegistries
public List<String> getAllowedRegistries()
allowedRegistries are the only registries permitted for image pull and push actions. All other registries are denied.Only one of BlockedRegistries or AllowedRegistries may be set.
-
setAllowedRegistries
public void setAllowedRegistries(List<String> allowedRegistries)
allowedRegistries are the only registries permitted for image pull and push actions. All other registries are denied.Only one of BlockedRegistries or AllowedRegistries may be set.
-
getBlockedRegistries
public List<String> getBlockedRegistries()
blockedRegistries cannot be used for image pull and push actions. All other registries are permitted.Only one of BlockedRegistries or AllowedRegistries may be set.
-
setBlockedRegistries
public void setBlockedRegistries(List<String> blockedRegistries)
blockedRegistries cannot be used for image pull and push actions. All other registries are permitted.Only one of BlockedRegistries or AllowedRegistries may be set.
-
getContainerRuntimeSearchRegistries
public List<String> getContainerRuntimeSearchRegistries()
containerRuntimeSearchRegistries are registries that will be searched when pulling images that do not have fully qualified domains in their pull specs. Registries will be searched in the order provided in the list. Note: this search list only works with the container runtime, i.e CRI-O. Will NOT work with builds or imagestream imports.
-
setContainerRuntimeSearchRegistries
public void setContainerRuntimeSearchRegistries(List<String> containerRuntimeSearchRegistries)
containerRuntimeSearchRegistries are registries that will be searched when pulling images that do not have fully qualified domains in their pull specs. Registries will be searched in the order provided in the list. Note: this search list only works with the container runtime, i.e CRI-O. Will NOT work with builds or imagestream imports.
-
getInsecureRegistries
public List<String> getInsecureRegistries()
insecureRegistries are registries which do not have a valid TLS certificates or only support HTTP connections.
-
setInsecureRegistries
public void setInsecureRegistries(List<String> insecureRegistries)
insecureRegistries are registries which do not have a valid TLS certificates or only support HTTP connections.
-
edit
public RegistrySourcesBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<RegistrySourcesBuilder>
-
toBuilder
public RegistrySourcesBuilder toBuilder()
-
-