feat(updatecli): Track UBI9 version #885
Open
+107
−0
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.
After @lemeurherve's work on the
updatecli
manifest to keep UBI9 updated in the docker bake file and Dockerfile, it became clear something wasn't working as expected when trying to find the latest version of the UBI9 container with the defaultupdatecli
behavior.I then took Hervé's manifest and transitioned it into using a shell script to find the "right" version.
I discovered a Swagger description that led me to the correct API endpoint.
This endpoint allowed me to query the
ubi9
containers, sorted by the last update date and filtered by thelatest
tag.As a result, I obtained the version
9.4-1214.1726694543
.The script works as is but would need some additional refinement to return a list of versions rather than just the most recent one.
This could help partially solve #883.
Testing Done
I updated my local configuration to target my fork instead of upstream.
To test the changes, I intentionally kept my master branch out-of-date, and
updatecli
successfully created this PR for me.The command used for testing:
updatecli diff --debug --config ./updatecli/updatecli.d/rhel-ubi9.yaml --values ./updatecli/values.github-action.yaml 2>&1
Submitter checklist
Link to relevant issues in GitHub or Jira