-
Notifications
You must be signed in to change notification settings - Fork 26
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
fix(KFLUXBUGS-1848): associate existing images with a new repository #303
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ralphbean
changed the title
feat: associate existing images with a new repository
fix(KFLUXBUGS-1848): associate existing images with a new repository
Nov 8, 2024
ralphbean
force-pushed
the
patch-repository
branch
4 times, most recently
from
November 8, 2024 02:32
d04a890
to
a5f9d9f
Compare
ralphbean
commented
Nov 8, 2024
Needs a run of |
mmalina
force-pushed
the
patch-repository
branch
from
November 8, 2024 13:18
bbf74c2
to
a5f9d9f
Compare
mmalina
reviewed
Nov 8, 2024
ralphbean
force-pushed
the
patch-repository
branch
from
November 8, 2024 13:25
b2483ab
to
7833090
Compare
This adds a new behavior. If asked to create an image associated with a repository, and the image does not exist at all - then create it, as before. If the image does exist, but is not associated with the desired repository, then submit a PATCH request to update it, adding the desired repository. Signed-off-by: Ralph Bean <[email protected]>
ralphbean
force-pushed
the
patch-repository
branch
from
November 8, 2024 13:29
7833090
to
bfc4cf2
Compare
mmalina
approved these changes
Nov 8, 2024
mmalina
added a commit
to mmalina/release-service-utils
that referenced
this pull request
Nov 8, 2024
This is a followup of what was done in konflux-ci#303 Most notably: - rename the image_already_exists to find_image to reflect what it does - it used to return bool, now it returns the image if found. - only include the repositories field in the patch payload - for consistency, create the same two repo entries when adding a new repository like we do when creating a brand new image Signed-off-by: Martin Malina <[email protected]>
mmalina
added a commit
to mmalina/release-service-utils
that referenced
this pull request
Nov 8, 2024
This is a followup of what was done in konflux-ci#303 Most notably: - rename the image_already_exists to find_image to reflect what it does - it used to return bool, now it returns the image if found. - only include the repositories field in the patch payload - for consistency, create the same two repo entries when adding a new repository like we do when creating a brand new image Signed-off-by: Martin Malina <[email protected]>
https://issues.redhat.com/browse/RELEASE-793 added for unit tests |
mmalina
added a commit
to mmalina/release-service-utils
that referenced
this pull request
Nov 22, 2024
This is a followup of what was done in konflux-ci#303 Most notably: - rename the image_already_exists to find_image to reflect what it does - it used to return bool, now it returns the image if found. - only include the repositories field in the patch payload - for consistency, create the same two repo entries when adding a new repository like we do when creating a brand new image Signed-off-by: Martin Malina <[email protected]>
mmalina
added a commit
to mmalina/release-service-utils
that referenced
this pull request
Nov 22, 2024
This is a followup of what was done in konflux-ci#303 Most notably: - rename the image_already_exists to find_image to reflect what it does - it used to return bool, now it returns the image if found. - only include the repositories field in the patch payload - for consistency, create the same two repo entries when adding a new repository like we do when creating a brand new image Signed-off-by: Martin Malina <[email protected]>
mmalina
added a commit
to mmalina/release-service-utils
that referenced
this pull request
Nov 22, 2024
This is a followup of what was done in konflux-ci#303 Most notably: - rename the image_already_exists to find_image to reflect what it does - it used to return bool, now it returns the image if found. - only include the repositories field in the patch payload - for consistency, create the same two repo entries when adding a new repository like we do when creating a brand new image Signed-off-by: Martin Malina <[email protected]>
mmalina
added a commit
to mmalina/release-service-utils
that referenced
this pull request
Nov 22, 2024
This is a followup of what was done in konflux-ci#303 Most notably: - rename the image_already_exists to find_image to reflect what it does - it used to return bool, now it returns the image if found. - only include the repositories field in the patch payload - for consistency, create the same two repo entries when adding a new repository like we do when creating a brand new image Signed-off-by: Martin Malina <[email protected]>
mmalina
added a commit
to mmalina/release-service-utils
that referenced
this pull request
Nov 25, 2024
This is a followup of what was done in konflux-ci#303 Most notably: - rename the image_already_exists to find_image to reflect what it does - it used to return bool, now it returns the image if found. - only include the repositories field in the patch payload - for consistency, create the same two repo entries when adding a new repository like we do when creating a brand new image Signed-off-by: Martin Malina <[email protected]>
mmalina
added a commit
to mmalina/release-service-utils
that referenced
this pull request
Nov 25, 2024
This is a followup of what was done in konflux-ci#303 Most notably: - rename the image_already_exists to find_image to reflect what it does - it used to return bool, now it returns the image if found. - only include the repositories field in the patch payload - for consistency, create the same two repo entries when adding a new repository like we do when creating a brand new image Signed-off-by: Martin Malina <[email protected]>
mmalina
added a commit
to mmalina/release-service-utils
that referenced
this pull request
Nov 25, 2024
This is a followup of what was done in konflux-ci#303 Most notably: - rename the image_already_exists to find_image to reflect what it does - it used to return bool, now it returns the image if found. - only include the repositories field in the patch payload - for consistency, create the same two repo entries when adding a new repository like we do when creating a brand new image Signed-off-by: Martin Malina <[email protected]>
mmalina
added a commit
to mmalina/release-service-utils
that referenced
this pull request
Nov 27, 2024
This is a followup of what was done in konflux-ci#303 Most notably: - rename the image_already_exists to find_image to reflect what it does - it used to return bool, now it returns the image if found. - only include the repositories field in the patch payload - for consistency, create the same two repo entries when adding a new repository like we do when creating a brand new image Signed-off-by: Martin Malina <[email protected]>
mmalina
added a commit
to mmalina/release-service-utils
that referenced
this pull request
Nov 27, 2024
This is a followup of what was done in konflux-ci#303 Most notably: - rename the image_already_exists to find_image to reflect what it does - it used to return bool, now it returns the image if found. - only include the repositories field in the patch payload - for consistency, create the same two repo entries when adding a new repository like we do when creating a brand new image Also, this adds tests for pyxis.patch - RELEASE-1285 Signed-off-by: Martin Malina <[email protected]>
mmalina
added a commit
that referenced
this pull request
Nov 27, 2024
This is a followup of what was done in #303 Most notably: - rename the image_already_exists to find_image to reflect what it does - it used to return bool, now it returns the image if found. - only include the repositories field in the patch payload - for consistency, create the same two repo entries when adding a new repository like we do when creating a brand new image Also, this adds tests for pyxis.patch - RELEASE-1285 Signed-off-by: Martin Malina <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This adds a new behavior.
If asked to create an image associated with a repository, and the image does not exist at all - then create it, as before.
If the image does exist, but is not associated with the desired repository, then submit a PATCH request to update it, adding the desired repository.
This is related to #300 and KFLUXBUGS-1848.