Class ImageDigestMirrorSetSpec
- java.lang.Object
-
- io.fabric8.openshift.api.model.config.v1.ImageDigestMirrorSetSpec
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<ImageDigestMirrorSetSpecBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class ImageDigestMirrorSetSpec extends Object implements io.fabric8.kubernetes.api.builder.Editable<ImageDigestMirrorSetSpecBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
ImageDigestMirrorSetSpec is the specification of the ImageDigestMirrorSet CRD.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ImageDigestMirrorSetSpec()No args constructor for use in serializationImageDigestMirrorSetSpec(List<ImageDigestMirrors> imageDigestMirrors)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImageDigestMirrorSetSpecBuilderedit()Map<String,Object>getAdditionalProperties()List<ImageDigestMirrors>getImageDigestMirrors()imageDigestMirrors allows images referenced by image digests in pods to be pulled from alternative mirrored repository locations.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetImageDigestMirrors(List<ImageDigestMirrors> imageDigestMirrors)imageDigestMirrors allows images referenced by image digests in pods to be pulled from alternative mirrored repository locations.ImageDigestMirrorSetSpecBuildertoBuilder()
-
-
-
Constructor Detail
-
ImageDigestMirrorSetSpec
public ImageDigestMirrorSetSpec()
No args constructor for use in serialization
-
ImageDigestMirrorSetSpec
public ImageDigestMirrorSetSpec(List<ImageDigestMirrors> imageDigestMirrors)
-
-
Method Detail
-
getImageDigestMirrors
public List<ImageDigestMirrors> getImageDigestMirrors()
imageDigestMirrors allows images referenced by image digests in pods to be pulled from alternative mirrored repository locations. The image pull specification provided to the pod will be compared to the source locations described in imageDigestMirrors and the image may be pulled down from any of the mirrors in the list instead of the specified repository allowing administrators to choose a potentially faster mirror. To use mirrors to pull images using tag specification, users should configure a list of mirrors using "ImageTagMirrorSet" CRD.If the image pull specification matches the repository of "source" in multiple imagedigestmirrorset objects, only the objects which define the most specific namespace match will be used. For example, if there are objects using quay.io/libpod and quay.io/libpod/busybox as the "source", only the objects using quay.io/libpod/busybox are going to apply for pull specification quay.io/libpod/busybox. Each "source" repository is treated independently; configurations for different "source" repositories don’t interact.
If the "mirrors" is not specified, the image will continue to be pulled from the specified repository in the pull spec.
When multiple policies are defined for the same "source" repository, the sets of defined mirrors will be merged together, preserving the relative order of the mirrors, if possible. For example, if policy A has mirrors `a, b, c` and policy B has mirrors `c, d, e`, the mirrors will be used in the order `a, b, c, d, e`. If the orders of mirror entries conflict (e.g. `a, b` vs. `b, a`) the configuration is not rejected but the resulting order is unspecified. Users who want to use a specific order of mirrors, should configure them into one list of mirrors using the expected order.
-
setImageDigestMirrors
public void setImageDigestMirrors(List<ImageDigestMirrors> imageDigestMirrors)
imageDigestMirrors allows images referenced by image digests in pods to be pulled from alternative mirrored repository locations. The image pull specification provided to the pod will be compared to the source locations described in imageDigestMirrors and the image may be pulled down from any of the mirrors in the list instead of the specified repository allowing administrators to choose a potentially faster mirror. To use mirrors to pull images using tag specification, users should configure a list of mirrors using "ImageTagMirrorSet" CRD.If the image pull specification matches the repository of "source" in multiple imagedigestmirrorset objects, only the objects which define the most specific namespace match will be used. For example, if there are objects using quay.io/libpod and quay.io/libpod/busybox as the "source", only the objects using quay.io/libpod/busybox are going to apply for pull specification quay.io/libpod/busybox. Each "source" repository is treated independently; configurations for different "source" repositories don’t interact.
If the "mirrors" is not specified, the image will continue to be pulled from the specified repository in the pull spec.
When multiple policies are defined for the same "source" repository, the sets of defined mirrors will be merged together, preserving the relative order of the mirrors, if possible. For example, if policy A has mirrors `a, b, c` and policy B has mirrors `c, d, e`, the mirrors will be used in the order `a, b, c, d, e`. If the orders of mirror entries conflict (e.g. `a, b` vs. `b, a`) the configuration is not rejected but the resulting order is unspecified. Users who want to use a specific order of mirrors, should configure them into one list of mirrors using the expected order.
-
edit
public ImageDigestMirrorSetSpecBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<ImageDigestMirrorSetSpecBuilder>
-
toBuilder
public ImageDigestMirrorSetSpecBuilder toBuilder()
-
-