Package io.fabric8.openshift.api.model
Class TagReferencePolicy
- java.lang.Object
-
- io.fabric8.openshift.api.model.TagReferencePolicy
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<TagReferencePolicyBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class TagReferencePolicy extends Object implements io.fabric8.kubernetes.api.builder.Editable<TagReferencePolicyBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
TagReferencePolicy describes how pull-specs for images in this image stream tag are generated when image change triggers in deployment configs or builds are resolved. This allows the image stream author to control how images are accessed.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TagReferencePolicy()No args constructor for use in serializationTagReferencePolicy(String type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TagReferencePolicyBuilderedit()Map<String,Object>getAdditionalProperties()StringgetType()type determines how the image pull spec should be transformed when the image stream tag is used in deployment config triggers or new builds.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetType(String type)type determines how the image pull spec should be transformed when the image stream tag is used in deployment config triggers or new builds.TagReferencePolicyBuildertoBuilder()
-
-
-
Constructor Detail
-
TagReferencePolicy
public TagReferencePolicy()
No args constructor for use in serialization
-
TagReferencePolicy
public TagReferencePolicy(String type)
-
-
Method Detail
-
getType
public String getType()
type determines how the image pull spec should be transformed when the image stream tag is used in deployment config triggers or new builds. The default value is `Source`, indicating the original location of the image should be used (if imported). The user may also specify `Local`, indicating that the pull spec should point to the integrated container image registry and leverage the registry's ability to proxy the pull to an upstream registry. `Local` allows the credentials used to pull this image to be managed from the image stream's namespace, so others on the platform can access a remote image but have no access to the remote secret. It also allows the image layers to be mirrored into the local registry which the images can still be pulled even if the upstream registry is unavailable.
-
setType
public void setType(String type)
type determines how the image pull spec should be transformed when the image stream tag is used in deployment config triggers or new builds. The default value is `Source`, indicating the original location of the image should be used (if imported). The user may also specify `Local`, indicating that the pull spec should point to the integrated container image registry and leverage the registry's ability to proxy the pull to an upstream registry. `Local` allows the credentials used to pull this image to be managed from the image stream's namespace, so others on the platform can access a remote image but have no access to the remote secret. It also allows the image layers to be mirrored into the local registry which the images can still be pulled even if the upstream registry is unavailable.
-
edit
public TagReferencePolicyBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<TagReferencePolicyBuilder>
-
toBuilder
public TagReferencePolicyBuilder toBuilder()
-
-