Skip to content
This repository has been archived by the owner on Aug 12, 2024. It is now read-only.

Remove Bundle API and its controller #774

Merged
merged 7 commits into from
Jan 16, 2024

Conversation

varshaprasad96
Copy link
Member

@varshaprasad96 varshaprasad96 commented Dec 18, 2023

As discussed here this PR intends to remove the Bundle API for purposes of having a single interface to handle bundle unpacking, templating and installation.

The following are the changes made:

  • Move the BundleSource specifications to Bundle Deployment API.
  • Move the statuses which were initially a part of Bundle, to Bundle Deployment.
  • Refactor Bundle Deployment controller to perform unpacking.
  • Remove Bundle controller.
  • Fix e2e tests.
    • Fix provisioner tests
    • Fix webhook tests
    • Fix api validator tests
  • Remove upload src, rukpakctl and relevant code.
  • Fix unit tests.
  • Fix the crd and web hook validator, to validate the sources in Bundle Deployment instead of Bundle.
  • Bump the Bundle Deployment version from v1alpha1 to v1alpha2 in light of breaking API.
  • Re-scaffold necessary manifests (ref: Makefile lacking support to do Kustomize build #777).
  • Make linter happy.

TODO in follow ups:

  • Fix documentation.
  • Clean up all the comments in the code base that reference bundle API instead of bundle deployments.

@varshaprasad96 varshaprasad96 requested a review from a team as a code owner December 18, 2023 18:41
@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Dec 18, 2023
Copy link

codecov bot commented Dec 18, 2023

Codecov Report

Attention: 104 lines in your changes are missing coverage. Please review.

Comparison is base (ea72d31) 20.62% compared to head (9a7827b) 26.32%.
Report is 1 commits behind head on main.

Files Patch % Lines
...l/controllers/bundledeployment/bundledeployment.go 0.00% 104 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #774      +/-   ##
==========================================
+ Coverage   20.62%   26.32%   +5.70%     
==========================================
  Files          14        9       -5     
  Lines        1086      809     -277     
==========================================
- Hits          224      213      -11     
+ Misses        812      550     -262     
+ Partials       50       46       -4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@varshaprasad96 varshaprasad96 force-pushed the remove/bundle-api branch 5 times, most recently from 143f0c2 to fa65678 Compare December 21, 2023 18:41
@varshaprasad96 varshaprasad96 changed the title wip: remove bundle controller Remove Bundle API and its controller Dec 21, 2023
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Dec 21, 2023
@openshift-merge-robot openshift-merge-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jan 6, 2024
internal/storage/http_test.go Outdated Show resolved Hide resolved
internal/util/util.go Show resolved Hide resolved
internal/util/util.go Show resolved Hide resolved
internal/util/util.go Outdated Show resolved Hide resolved
@varshaprasad96 varshaprasad96 force-pushed the remove/bundle-api branch 2 times, most recently from 4398792 to ca3e38f Compare January 10, 2024 17:22
@openshift-merge-robot openshift-merge-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jan 10, 2024
cmd/core/main.go Outdated Show resolved Hide resolved
cmd/core/main.go Outdated Show resolved Hide resolved
go.mod Outdated Show resolved Hide resolved
internal/util/adopt.go Outdated Show resolved Hide resolved
internal/util/util.go Outdated Show resolved Hide resolved
internal/util/util.go Outdated Show resolved Hide resolved
@varshaprasad96 varshaprasad96 force-pushed the remove/bundle-api branch 3 times, most recently from a17a695 to d3a6a3b Compare January 15, 2024 19:36
joelanford
joelanford previously approved these changes Jan 16, 2024
unpacking.

Signed-off-by: Varsha Prasad Narsing <[email protected]>
Signed-off-by: Varsha Prasad Narsing <[email protected]>
Signed-off-by: Varsha Prasad Narsing <[email protected]>
This commit introduces a new condition to indicate
whether the bundle has been uploaded successfully
by the uploadmgr. Once the upload is successful,
the reconciler further starts unpacking the contents.

Signed-off-by: Varsha Prasad Narsing <[email protected]>
The commit does the following:
1. Fix bundleDeployment names to be camelcase.
2. Remove rukpakctl, upload source and relevant upload mgr code.
3. Remove the requirement for requeing.
4. Remove the use of a separate "Processor" interface for handling unpacked
   contents before installing.
5. Fix DOckerfile and Goreleaser to not handle rukpakctl binary.

Signed-off-by: Varsha Prasad Narsing <[email protected]>
@ncdc ncdc added this pull request to the merge queue Jan 16, 2024
Merged via the queue into operator-framework:main with commit 2320883 Jan 16, 2024
9 of 11 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants