Class ImageContentPolicySpec
- java.lang.Object
-
- io.fabric8.openshift.api.model.config.v1.ImageContentPolicySpec
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<ImageContentPolicySpecBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class ImageContentPolicySpec extends Object implements io.fabric8.kubernetes.api.builder.Editable<ImageContentPolicySpecBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
ImageContentPolicySpec is the specification of the ImageContentPolicy CRD.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ImageContentPolicySpec()No args constructor for use in serializationImageContentPolicySpec(List<RepositoryDigestMirrors> repositoryDigestMirrors)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImageContentPolicySpecBuilderedit()Map<String,Object>getAdditionalProperties()List<RepositoryDigestMirrors>getRepositoryDigestMirrors()repositoryDigestMirrors 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)voidsetRepositoryDigestMirrors(List<RepositoryDigestMirrors> repositoryDigestMirrors)repositoryDigestMirrors allows images referenced by image digests in pods to be pulled from alternative mirrored repository locations.ImageContentPolicySpecBuildertoBuilder()
-
-
-
Constructor Detail
-
ImageContentPolicySpec
public ImageContentPolicySpec()
No args constructor for use in serialization
-
ImageContentPolicySpec
public ImageContentPolicySpec(List<RepositoryDigestMirrors> repositoryDigestMirrors)
-
-
Method Detail
-
getRepositoryDigestMirrors
public List<RepositoryDigestMirrors> getRepositoryDigestMirrors()
repositoryDigestMirrors 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 RepositoryDigestMirrors 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 pull image from mirrors by tags, should set the "allowMirrorByTags".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.
-
setRepositoryDigestMirrors
public void setRepositoryDigestMirrors(List<RepositoryDigestMirrors> repositoryDigestMirrors)
repositoryDigestMirrors 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 RepositoryDigestMirrors 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 pull image from mirrors by tags, should set the "allowMirrorByTags".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.
-
edit
public ImageContentPolicySpecBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<ImageContentPolicySpecBuilder>
-
toBuilder
public ImageContentPolicySpecBuilder toBuilder()
-
-