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

Handle empty object references in Image Streams #1206

Conversation

komish
Copy link
Contributor

@komish komish commented Oct 10, 2024

The ImageStream{}.Tags[].From is a pointer to a corev1.ObjectReference and, and if it's missing, we'll panic because we access a field within without checking if it exists.

This PR updates this logic so that it will only pull the reference if it exists. A corresponding test entry has been added.

Signed-off-by: Jose R. Gonzalez <komish@flutes.dev>
@openshift-ci openshift-ci bot requested review from jomkz and skattoju October 10, 2024 18:34
@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Oct 10, 2024
@dcibot
Copy link

dcibot commented Oct 10, 2024

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Oct 10, 2024
@komish
Copy link
Contributor Author

komish commented Oct 10, 2024

/test 4.13-e2e

Copy link

openshift-ci bot commented Oct 15, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: acornett21, komish, skattoju

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:
  • OWNERS [acornett21,komish,skattoju]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@acornett21 acornett21 merged commit c59f1a3 into redhat-openshift-ecosystem:main Oct 15, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants