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(STONEINTG-641): use snapshot for SEB components directly #373

Merged
merged 1 commit into from
Oct 24, 2023

Conversation

dirgim
Copy link
Collaborator

@dirgim dirgim commented Oct 18, 2023

  • Refactor NewBindingComponents to take components directly from the Snapshot and convert them into bindingComponents by referencing them by the metadata.name instead of spec.componentName.
  • This removes the need for the extra step of fetching Components from the cluster
  • Remove the GetAllSnapshotComponents function altogether as it is unused after the above changes
  • Remove the now unused components parameter from functions which were creating/updating SEBs

Maintainers will complete the following section

Copy link
Collaborator

@MartinBasti MartinBasti left a comment

Choose a reason for hiding this comment

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

image
Love it!

@openshift-ci openshift-ci bot added the lgtm label Oct 18, 2023
@dirgim dirgim changed the title WIP: fix(STONEINTG-641): use snapshot for SEB components directly fix(STONEINTG-641): use snapshot for SEB components directly Oct 20, 2023
@dirgim dirgim marked this pull request as ready for review October 20, 2023 17:02
@dirgim
Copy link
Collaborator Author

dirgim commented Oct 23, 2023

I've confirmed that the approach in this PR is correct, marking this PR as ready for review.

* Refactor NewBindingComponents to take components
  directly from the Snapshot and convert them into
  bindingComponents by referencing them by the resource
  metadata.name instead of spec.componentName.
* This removes the need for the extra step
  of fetching Components from the cluster
* Remove the GetAllSnapshotComponents function altogether
  as it is unused after the above changes
* Remove the now unused components parameter from
  functions which were creating/updating SEBs

Signed-off-by: dirgim <kpavic@redhat.com>
Copy link
Contributor

@hongweiliu17 hongweiliu17 left a comment

Choose a reason for hiding this comment

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

LGTM

@openshift-ci openshift-ci bot added the lgtm label Oct 24, 2023
@dirgim dirgim merged commit 98c0d76 into konflux-ci:main Oct 24, 2023
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants