Class 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 Detail

      • RepositoryDigestMirrors

        public RepositoryDigestMirrors()
        No args constructor for use in serialization
      • RepositoryDigestMirrors

        public RepositoryDigestMirrors​(Boolean allowMirrorByTags,
                                       List<String> mirrors,
                                       String source)
    • 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.
      • getAdditionalProperties

        public Map<String,​Object> getAdditionalProperties()
      • setAdditionalProperty

        public void setAdditionalProperty​(String name,
                                          Object value)
      • setAdditionalProperties

        public void setAdditionalProperties​(Map<String,​Object> additionalProperties)