pub struct TagReference {
pub annotations: Option<BTreeMap<String, String>>,
pub from: Option<ObjectReference>,
pub generation: Option<i64>,
pub import_policy: Option<TagImportPolicy>,
pub name: String,
pub reference: Option<bool>,
pub reference_policy: Option<TagReferencePolicy>,
}
Expand description
TagReference specifies optional annotations for images using this tag and an optional reference to an ImageStreamTag, ImageStreamImage, or DockerImage this tag should track.
Fields§
§annotations: Option<BTreeMap<String, String>>
Optional; if specified, annotations that are applied to images retrieved via ImageStreamTags.
from: Option<ObjectReference>
Optional; if specified, a reference to another image that this tag should point to. Valid values are ImageStreamTag, ImageStreamImage, and DockerImage. ImageStreamTag references can only reference a tag within this same ImageStream.
generation: Option<i64>
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.
import_policy: Option<TagImportPolicy>
ImportPolicy is information that controls how images may be imported by the server.
name: String
Name of the tag
reference: Option<bool>
Reference states if the tag will be imported. Default value is false, which means the tag will be imported.
reference_policy: Option<TagReferencePolicy>
ReferencePolicy defines how other components should consume the image.
Trait Implementations§
Source§impl Clone for TagReference
impl Clone for TagReference
Source§fn clone(&self) -> TagReference
fn clone(&self) -> TagReference
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more