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 mirros in the registries config. Note: the mirrors only work when pulling the images that are referenced by their digests.
    See Also:
    Serialized Form
    • Constructor Detail

      • RepositoryDigestMirrors

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

        public RepositoryDigestMirrors​(List<String> mirrors,
                                       String source)
    • Method Detail

      • getMirrors

        public List<String> getMirrors()
        mirrors is one or more repositories that may also contain the same images. 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 one or more repositories that may also contain the same images. 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)