You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Should we allow users to specify the image type of v1.1.0-rc2, in case the server does not support the image type of v1.1.0-rc4 which contains an artifactType field?
Since it impacts oras push, I suggest keeping the --image-spec flag and change the values to be {v1.0, v1.1} where v1.0 is the default value to avoid breaking changes in minor versions of oras.
For oras attach, --image-spec can be removed or remained. If the flag remains, the only acceptable value is v1.1.
For oras attach, --image-spec can be removed or remained. If the flag remains, the only acceptable value is v1.1.
Sorry I am confused, why removing --image-spec is not a breaking change for oras attach? oras v1.0.0 will also tuck user-provided artifact type into config.mediaType for oras attach. Is it because attach is a preview command?
In my opinion, oras push should by default generate manifests with artifactType and empty descriptor presented. The default behavior of oras push --artifact-type xxx in v1.0.0 generates defected manifests as is pointed out in #1011 (comment).
For oras attach, we should remove this flag entirely if the acceptable value is different from oras push. There is no benefit to keep this flag if it only has one acceptable value.
Removing an experimental feature or changes to these should be considered as non-breaking. My understanding is that the image-spec flag for 1.1 was definitely preview or experimental.
Removing an experimental feature or changes to these should be considered as non-breaking. My understanding is that the image-spec flag for 1.1 was definitely preview or experimental.
For oras v1.0.0, if user run below command, the test.artifact.type will be put into config.mediaType:
As is suggested by the Guidelines for Artifact Usage in OCI image spec 1.1.0-rc4, the preferred manifest produced by below command should use artifactType and empty config descriptor:
@sajayantony Please notice that --image-spec is not involved in the command call. So the question turns into: to align with OCI image spec 1.1.0-rc4, we need change schema of generated manifest if --artifact-type flag is provided in oras push, is it a breaking change and can we do that?
Unfortunately we didn't mark --artifact-type as preview or experimental in ORAS v1.0.0 release & that's why @shizhMSFT think the schema change is breaking.
Activity
Wwwsylvia commentedon Aug 3, 2023
Should we allow users to specify the image type of
v1.1.0-rc2, in case the server does not support the image type ofv1.1.0-rc4which contains anartifactTypefield?shizhMSFT commentedon Aug 3, 2023
If it is
oras push, thenv1.1.0-rc2is equivalent tov1.0.2or simplyv1.0.shizhMSFT commentedon Aug 3, 2023
Since it impacts
oras push, I suggest keeping the--image-specflag and change the values to be{v1.0, v1.1}wherev1.0is the default value to avoid breaking changes in minor versions oforas.For
oras attach,--image-speccan be removed or remained. If the flag remains, the only acceptable value isv1.1.qweeah commentedon Aug 3, 2023
Sorry I am confused, why removing
--image-specis not a breaking change fororas attach? oras v1.0.0 will also tuck user-provided artifact type intoconfig.mediaTypefororas attach. Is it becauseattachis a preview command?qweeah commentedon Aug 4, 2023
In my opinion,
oras pushshould by default generate manifests withartifactTypeand empty descriptor presented. The default behavior oforas push --artifact-type xxxin v1.0.0 generates defected manifests as is pointed out in #1011 (comment).For
oras attach, we should remove this flag entirely if the acceptable value is different fromoras push. There is no benefit to keep this flag if it only has one acceptable value.sajayantony commentedon Aug 4, 2023
Removing an experimental feature or changes to these should be considered as non-breaking. My understanding is that the image-spec flag for 1.1 was definitely preview or experimental.
qweeah commentedon Aug 4, 2023
test.artifact.typewill be put intoconfig.mediaType:artifactTypeand empty config descriptor:@sajayantony Please notice that
--image-specis not involved in the command call. So the question turns into: to align with OCI image spec 1.1.0-rc4, we need change schema of generated manifest if--artifact-typeflag is provided inoras push, is it a breaking change and can we do that?Unfortunately we didn't mark
--artifact-typeas preview or experimental in ORAS v1.0.0 release & that's why @shizhMSFT think the schema change is breaking.[-]remove experimental flag `image-spec`[/-][+]update experimental flag `image-spec`[/+]