Skip to content

imagebuilder: introduce Variant field for per-pin image directories#283

Open
Vikramarjuna wants to merge 2 commits into
Cloud-Foundations:masterfrom
Vikramarjuna:variant-field
Open

imagebuilder: introduce Variant field for per-pin image directories#283
Vikramarjuna wants to merge 2 commits into
Cloud-Foundations:masterfrom
Vikramarjuna:variant-field

Conversation

@Vikramarjuna

Copy link
Copy Markdown
Contributor

Add an optional Variant expression to bootstrap stream configs and image manifests. When non-empty, the expanded value becomes a path segment between the stream name and the timestamp: //

Two builds of the same stream with different Variables values land in separate imageserver directories, so a lookup for one pin cannot silently match an image built under a different pin.

Backwards-compatible: when Variant is empty or absent, the traditional flat layout is used.

@rgooch rgooch left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What problem does this solve that can't already be achieved by adding the right combination of SourceImageGitCommitId, SourceImageBuildVariables and SourceImageTagsToMatch to manifest files?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants