refactor: simplify update-image-sha.sh script#3516
Open
pratap0007 wants to merge 1 commit into
Open
Conversation
Simplify the OpenShift image SHA update script by removing authentication requirements and consolidating the implementation to use only skopeo. Changes: - Remove REGISTRY_USER and REGISTRY_PASSWORD parameters - script now uses existing registry credentials from local skopeo/podman/docker login - Replace podman commands with skopeo for better compatibility and consistency (skopeo inspect, skopeo list-tags) - Remove manifest-tool container dependency - use skopeo inspect --raw to get image SHA digests directly - Remove unused helper functions (log, err, info, die, usage) - Remove registry_login() function - no longer needed - Improve output formatting with clearer status messages - Reduce script from 103 lines to 68 lines while maintaining functionality The script still updates the same 7 Red Hat images (buildah, kn-client, postgresql-15, skopeo, s2i, ubi-minimal, openjdk-17) across all OpenShift YAML files in: - config/openshift/base/operator.yaml - operatorhub/openshift/config.yaml - operatorhub/openshift/release-artifacts/bundle/manifests/*.yaml - cmd/openshift/operator/kodata/tekton-addon/addons/**/*.yaml Usage is now simpler: bash hack/openshift/update-image-sha.sh (No environment variables required) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Contributor
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
Member
|
@pratap0007 is something that we can automate somwehow using a gh workflow ? |
This file contains hidden or 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
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.
Simplify the OpenShift image SHA update script by removing authentication requirements and consolidating the implementation to use only skopeo.
Changes:
The script still updates the same 7 Red Hat images (buildah, kn-client, postgresql-15, skopeo, s2i, ubi-minimal, openjdk-17) across all OpenShift YAML files in:
Usage is now simpler:
bash hack/openshift/update-image-sha.sh
(No environment variables required)
Changes
Submitter Checklist
These are the criteria that every PR should meet, please check them off as you
review them:
make test lintbefore submitting a PRSee the contribution guide for more details.
Release Notes