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

refactor(HACBS-2381): refactor main file #215

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

davidmogar
Copy link
Collaborator

The refactor is focused on extracting the logic into smaller functions.

Depends on #214

The operator-toolkit has been already released and operator-goodies
is deprecated.

Signed-off-by: David Moreno García <damoreno@redhat.com>
This change is focused on webhooks. It increases consistency and
follow operator-toolkit best practices.

Signed-off-by: David Moreno García <damoreno@redhat.com>
This change is focused on controllers. It increases consistency and
follow operator-toolkit best practices.

Signed-off-by: David Moreno García <damoreno@redhat.com>
This change is focused on the syncer. It increases consistency and
follow operator-toolkit best practices.

Signed-off-by: David Moreno García <damoreno@redhat.com>
This change is focused on the loader. It increases consistency and
follow operator-toolkit best practices.

Signed-off-by: David Moreno García <damoreno@redhat.com>
Signed-off-by: David Moreno García <damoreno@redhat.com>
The refactor is focused on extracting the logic into smaller
functions.

Signed-off-by: David Moreno García <damoreno@redhat.com>
@codecov
Copy link

codecov bot commented Jul 14, 2023

Codecov Report

Patch coverage: 88.83% and project coverage change: -0.06 ⚠️

Comparison is base (60962e1) 85.66% compared to head (f2805cc) 85.61%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #215      +/-   ##
==========================================
- Coverage   85.66%   85.61%   -0.06%     
==========================================
  Files          24       23       -1     
  Lines        1479     1453      -26     
==========================================
- Hits         1267     1244      -23     
+ Misses        152      150       -2     
+ Partials       60       59       -1     
Impacted Files Coverage Δ
api/v1alpha1/release_types.go 98.71% <ø> (ø)
controllers/releaseplan/adapter.go 55.55% <50.00%> (ø)
controllers/release/controller.go 60.00% <57.89%> (-1.02%) ⬇️
controllers/releaseplan/controller.go 72.72% <80.00%> (-5.06%) ⬇️
controllers/release/adapter.go 85.58% <84.48%> (ø)
loader/loader_mock.go 40.44% <94.11%> (-11.37%) ⬇️
api/v1alpha1/webhooks/author/webhook.go 79.54% <100.00%> (ø)
api/v1alpha1/webhooks/release/webhook.go 100.00% <100.00%> (ø)
api/v1alpha1/webhooks/releaseplan/webhook.go 100.00% <100.00%> (ø)
.../v1alpha1/webhooks/releaseplanadmission/webhook.go 100.00% <100.00%> (ø)
... and 2 more

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@johnbieren
Copy link
Collaborator

This depends on #214 and also includes all of its changes. Given that, I am not really sure how this is ready for review

@openshift-merge-robot
Copy link
Collaborator

PR needs rebase.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

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.

None yet

3 participants