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

fix(KFLUXBUGS-1846): fail get-image-architectures if skopeo failed #328

Merged
merged 1 commit into from
Nov 27, 2024

Conversation

mmalina
Copy link
Contributor

@mmalina mmalina commented Nov 27, 2024

If skopeo inspect fails, the variable would be empty and then the jq query would return an empty string instead of null, so we would assume it's an oci artifact and run oras resolve.

If we were unable to fetch the image details with skopeo inspect we should just fail the script.

If skopeo inspect fails, the variable would be empty and then
the jq query would return an empty string instead of null, so
we would assume it's an oci artifact and run oras resolve.

If we were unable to fetch the image details with skopeo inspect
we should just fail the script.

Signed-off-by: Martin Malina <[email protected]>
@mmalina mmalina requested a review from a team as a code owner November 27, 2024 09:41
Copy link
Collaborator

@johnbieren johnbieren left a comment

Choose a reason for hiding this comment

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

nice

@mmalina mmalina merged commit 76021ef into konflux-ci:main Nov 27, 2024
3 checks passed
@mmalina mmalina deleted the get-archs-empty branch November 27, 2024 12:18
mmalina added a commit to mmalina/release-service-catalog that referenced this pull request Nov 27, 2024
- Bump utils image for improved get-image-architectures:
  - konflux-ci/release-service-utils#328
- Fix authentication for skopeo inspect
  when running get-image-architectures
  - From second component on, it would always use the docker config that
    was crafted for the previous component, so if the source repo was
    private, it would fail to fetch the architecture details for that
    image. As a result, image results would be wrong.

Signed-off-by: Martin Malina <[email protected]>
mmalina added a commit to mmalina/release-service-catalog that referenced this pull request Nov 27, 2024
- Bump utils image for improved get-image-architectures:
  - konflux-ci/release-service-utils#328
- Fix authentication for skopeo inspect
  when running get-image-architectures
  - From second component on, it would always use the docker config that
    was crafted for the previous component, so if the source repo was
    private, it would fail to fetch the architecture details for that
    image. As a result, image results would be wrong.

Signed-off-by: Martin Malina <[email protected]>
mmalina added a commit to mmalina/release-service-catalog that referenced this pull request Dec 2, 2024
- Bump utils image for improved get-image-architectures:
  - konflux-ci/release-service-utils#328
- Fix authentication for skopeo inspect
  when running get-image-architectures
  - From second component on, it would always use the docker config that
    was crafted for the previous component, so if the source repo was
    private, it would fail to fetch the architecture details for that
    image. As a result, image results would be wrong.

Signed-off-by: Martin Malina <[email protected]>
mmalina added a commit to mmalina/release-service-catalog that referenced this pull request Dec 3, 2024
- Bump utils image for improved get-image-architectures:
  - konflux-ci/release-service-utils#328
- Fix authentication for skopeo inspect
  when running get-image-architectures
  - From second component on, it would always use the docker config that
    was crafted for the previous component, so if the source repo was
    private, it would fail to fetch the architecture details for that
    image. As a result, image results would be wrong.

Signed-off-by: Martin Malina <[email protected]>
mmalina added a commit to konflux-ci/release-service-catalog that referenced this pull request Dec 3, 2024
- Bump utils image for improved get-image-architectures:
  - konflux-ci/release-service-utils#328
- Fix authentication for skopeo inspect
  when running get-image-architectures
  - From second component on, it would always use the docker config that
    was crafted for the previous component, so if the source repo was
    private, it would fail to fetch the architecture details for that
    image. As a result, image results would be wrong.

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
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants