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

compat: accept tag in /images/create?fromSrc #18598

Merged
merged 1 commit into from
May 17, 2023

Conversation

Luap99
Copy link
Member

@Luap99 Luap99 commented May 17, 2023

Accept a tag in the compat api endpoint. For the fromImage param we already parse it but for fromSrc we did not.

Fixes #18597

Does this PR introduce a user-facing change?

The compat API now correctly accpets a tag in the images/create?fromSrc endpoint.

@openshift-ci openshift-ci bot added release-note approved Indicates a PR has been approved by an approver from all required OWNERS files. labels May 17, 2023
@github-actions github-actions bot added the kind/api-change Change to remote API; merits scrutiny label May 17, 2023
Comment on lines 258 to 261
# TODO: this is just some hack to avoid adding `-d {}` to curl for endpoints where we really need an empty body
-) curl_args+=(--disable);
shift;;
Copy link
Member Author

Choose a reason for hiding this comment

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

@edsantiago PTAL, I guess you have a better idea how to address this. Basically I have to prevent the jsonify logic below. I need an empty body for the test to work.

Copy link
Member

Choose a reason for hiding this comment

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

Well.... I give up. I tried some different ideas on changing how/when -d {} gets set, but everything failed in different ways. If this approach works out for you, I'm OK with it.

Copy link
Member Author

Choose a reason for hiding this comment

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

OK, repushed with a bit more comments.

@Luap99 Luap99 force-pushed the compat-image-tag branch from 67db27d to d6934ac Compare May 17, 2023 12:30
@baude
Copy link
Member

baude commented May 17, 2023

code, etc, LGTM, test failures otherwise I would merge.

Accept a tag in the compat api endpoint. For the fromImage param we
already parse it but for fromSrc we did not.

Fixes containers#18597

Signed-off-by: Paul Holzinger <[email protected]>
@Luap99 Luap99 force-pushed the compat-image-tag branch from d6934ac to ad8d0e5 Compare May 17, 2023 14:12
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
/hold

@openshift-ci openshift-ci bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label May 17, 2023
@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label May 17, 2023
@openshift-ci
Copy link
Contributor

openshift-ci bot commented May 17, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Luap99, vrothberg

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

The pull request process is described 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

@edsantiago
Copy link
Member

LGTM

/hold cancel

@openshift-ci openshift-ci bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label May 17, 2023
@TomSweeneyRedHat
Copy link
Member

LGTM and happy green test buttons
/hold cancel

@openshift-merge-robot openshift-merge-robot merged commit 2c6c5d4 into containers:main May 17, 2023
@Luap99 Luap99 deleted the compat-image-tag branch May 17, 2023 16:58
@github-actions github-actions bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Aug 23, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. kind/api-change Change to remote API; merits scrutiny lgtm Indicates that a PR is ready to be merged. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. release-note
Projects
None yet
Development

Successfully merging this pull request may close these issues.

API endpoint /images/create seems to ignore the tag parameter?
6 participants