Class RepositoryDigestMirrors
- java.lang.Object
-
- io.fabric8.openshift.api.model.config.v1.RepositoryDigestMirrors
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<RepositoryDigestMirrorsBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class RepositoryDigestMirrors extends Object implements io.fabric8.kubernetes.api.builder.Editable<RepositoryDigestMirrorsBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
RepositoryDigestMirrors holds cluster-wide information about how to handle mirrors in the registries config.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RepositoryDigestMirrors()No args constructor for use in serializationRepositoryDigestMirrors(Boolean allowMirrorByTags, List<String> mirrors, String source)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RepositoryDigestMirrorsBuilderedit()Map<String,Object>getAdditionalProperties()BooleangetAllowMirrorByTags()allowMirrorByTags if true, the mirrors can be used to pull the images that are referenced by their tags.List<String>getMirrors()mirrors is zero or more repositories that may also contain the same images.StringgetSource()source is the repository that users refer to, e.g. in image pull specifications.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetAllowMirrorByTags(Boolean allowMirrorByTags)allowMirrorByTags if true, the mirrors can be used to pull the images that are referenced by their tags.voidsetMirrors(List<String> mirrors)mirrors is zero or more repositories that may also contain the same images.voidsetSource(String source)source is the repository that users refer to, e.g. in image pull specifications.RepositoryDigestMirrorsBuildertoBuilder()
-
-
-
Method Detail
-
getAllowMirrorByTags
public Boolean getAllowMirrorByTags()
allowMirrorByTags if true, the mirrors can be used to pull the images that are referenced by their tags. Default is false, the mirrors only work when pulling the images that are referenced by their digests. Pulling images by tag can potentially yield different images, depending on which endpoint we pull from. Forcing digest-pulls for mirrors avoids that issue.
-
setAllowMirrorByTags
public void setAllowMirrorByTags(Boolean allowMirrorByTags)
allowMirrorByTags if true, the mirrors can be used to pull the images that are referenced by their tags. Default is false, the mirrors only work when pulling the images that are referenced by their digests. Pulling images by tag can potentially yield different images, depending on which endpoint we pull from. Forcing digest-pulls for mirrors avoids that issue.
-
getMirrors
public List<String> getMirrors()
mirrors is zero or more repositories that may also contain the same images. If the "mirrors" is not specified, the image will continue to be pulled from the specified repository in the pull spec. No mirror will be configured. The order of mirrors in this list is treated as the user's desired priority, while source is by default considered lower priority than all mirrors. Other cluster configuration, including (but not limited to) other repositoryDigestMirrors objects, may impact the exact order mirrors are contacted in, or some mirrors may be contacted in parallel, so this should be considered a preference rather than a guarantee of ordering.
-
setMirrors
public void setMirrors(List<String> mirrors)
mirrors is zero or more repositories that may also contain the same images. If the "mirrors" is not specified, the image will continue to be pulled from the specified repository in the pull spec. No mirror will be configured. The order of mirrors in this list is treated as the user's desired priority, while source is by default considered lower priority than all mirrors. Other cluster configuration, including (but not limited to) other repositoryDigestMirrors objects, may impact the exact order mirrors are contacted in, or some mirrors may be contacted in parallel, so this should be considered a preference rather than a guarantee of ordering.
-
getSource
public String getSource()
source is the repository that users refer to, e.g. in image pull specifications.
-
setSource
public void setSource(String source)
source is the repository that users refer to, e.g. in image pull specifications.
-
edit
public RepositoryDigestMirrorsBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<RepositoryDigestMirrorsBuilder>
-
toBuilder
public RepositoryDigestMirrorsBuilder toBuilder()
-
-