[release/8.0.4xx] Manual Backport of #40611 to 8.0.4xx - Allow users to set a specific ContainerImageFormat to force OCI support #46140
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Backport of #46011 to release/8.0.4xx
Description
This change allows users to explicitly request a specific format of Container (Docker or OCI) instead of relying on our existing "same as the base image" strategy. This need to explicitly override the base image's format comes from an internal partner request, where that partner needs OCI outputs only, but the .NET Container images are in Docker format for now and the forseeable future.
Customer Impact
With this change, a user that opts into the new behavior will have explicit control over their generated container's format. A customer that doesn't interact with the feature keeps the same behavior as prior versions.
Regression
No
Risk
Low - we have the needed conversion/schema functionality in the tooling already, this just surfaces a user-facing knob. We also have automated tests added to verify the feature.