Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libimage.NormalizePlatform: normalize default variant as per specified arch #1164

Merged
merged 1 commit into from
Sep 28, 2022

Conversation

flouthoc
Copy link
Collaborator

Following PR attempts to unify code being using in buildah and other part, so a common code chunk can be used as a source of truth for normalizing platforms.

As of now NormalizePlatform ignores normalizing or setting default variants for specific arch types thus producing empty variants in results even when default variants were expected for such cases.

Example consider: linux/armhf -> {os:linux, arch: arm, variant: v7}

See: containers/buildah#4286 for more details.

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Sep 28, 2022

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: flouthoc
Once this PR has been reviewed and has the lgtm label, please assign baude for approval by writing /assign @baude in a comment. For more information see:The Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Copy link
Member

@vrothberg vrothberg left a comment

Choose a reason for hiding this comment

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

LGTM
@nalind PTAL

@nalind
Copy link
Member

nalind commented Sep 28, 2022

LGTM

…d arch

As of now NormalizePlatform ignores normalizing or setting default
variants for specific arch types thus producing empty variants in
results even when default variants were expected for such cases.

Example consider: `linux/armhf` -> `{os:linux, arch: arm, variant: v7}`

Signed-off-by: Aditya R <arajan@redhat.com>
@flouthoc flouthoc force-pushed the normalize-platform-first branch from 27fb4af to 764a413 Compare September 28, 2022 15:19
@flouthoc
Copy link
Collaborator Author

I'll just open a dummy PR against podman for sanity check and then undraft this.

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.

4 participants