Class TagReference

  • All Implemented Interfaces:
    io.fabric8.kubernetes.api.builder.Editable<TagReferenceBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource, Serializable

    @Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator")
    public class TagReference
    extends Object
    implements io.fabric8.kubernetes.api.builder.Editable<TagReferenceBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
    TagReference specifies optional annotations for images using this tag and an optional reference to an ImageStreamTag, ImageStreamImage, or DockerImage this tag should track.
    See Also:
    Serialized Form
    • Constructor Detail

      • TagReference

        public TagReference()
        No args constructor for use in serialization
    • Method Detail

      • getAnnotations

        public Map<String,​String> getAnnotations()
        Optional; if specified, annotations that are applied to images retrieved via ImageStreamTags.
      • setAnnotations

        public void setAnnotations​(Map<String,​String> annotations)
        Optional; if specified, annotations that are applied to images retrieved via ImageStreamTags.
      • getFrom

        public io.fabric8.kubernetes.api.model.ObjectReference getFrom()
        TagReference specifies optional annotations for images using this tag and an optional reference to an ImageStreamTag, ImageStreamImage, or DockerImage this tag should track.
      • setFrom

        public void setFrom​(io.fabric8.kubernetes.api.model.ObjectReference from)
        TagReference specifies optional annotations for images using this tag and an optional reference to an ImageStreamTag, ImageStreamImage, or DockerImage this tag should track.
      • getGeneration

        public Long getGeneration()
        generation is a counter that tracks mutations to the spec tag (user intent). When a tag reference is changed the generation is set to match the current stream generation (which is incremented every time spec is changed). Other processes in the system like the image importer observe that the generation of spec tag is newer than the generation recorded in the status and use that as a trigger to import the newest remote tag. To trigger a new import, clients may set this value to zero which will reset the generation to the latest stream generation. Legacy clients will send this value as nil which will be merged with the current tag generation.
      • setGeneration

        public void setGeneration​(Long generation)
        generation is a counter that tracks mutations to the spec tag (user intent). When a tag reference is changed the generation is set to match the current stream generation (which is incremented every time spec is changed). Other processes in the system like the image importer observe that the generation of spec tag is newer than the generation recorded in the status and use that as a trigger to import the newest remote tag. To trigger a new import, clients may set this value to zero which will reset the generation to the latest stream generation. Legacy clients will send this value as nil which will be merged with the current tag generation.
      • getImportPolicy

        public TagImportPolicy getImportPolicy()
        TagReference specifies optional annotations for images using this tag and an optional reference to an ImageStreamTag, ImageStreamImage, or DockerImage this tag should track.
      • setImportPolicy

        public void setImportPolicy​(TagImportPolicy importPolicy)
        TagReference specifies optional annotations for images using this tag and an optional reference to an ImageStreamTag, ImageStreamImage, or DockerImage this tag should track.
      • getName

        public String getName()
        name of the tag
      • setName

        public void setName​(String name)
        name of the tag
      • getReference

        public Boolean getReference()
        reference states if the tag will be imported. Default value is false, which means the tag will be imported.
      • setReference

        public void setReference​(Boolean reference)
        reference states if the tag will be imported. Default value is false, which means the tag will be imported.
      • getReferencePolicy

        public TagReferencePolicy getReferencePolicy()
        TagReference specifies optional annotations for images using this tag and an optional reference to an ImageStreamTag, ImageStreamImage, or DockerImage this tag should track.
      • setReferencePolicy

        public void setReferencePolicy​(TagReferencePolicy referencePolicy)
        TagReference specifies optional annotations for images using this tag and an optional reference to an ImageStreamTag, ImageStreamImage, or DockerImage this tag should track.
      • getAdditionalProperties

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

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

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