Skip to content

Conversation

@pablintino
Copy link
Contributor

@pablintino pablintino commented Dec 29, 2025

- What I did

Extract file validation and dependency loading logic from RenderBootstrap into a dedicated bootstrap_dependencies.go file. This reduces cyclomatic complexity by separating input handling from rendering logic.

This addresses complexity in the input handling path. Additional refactoring opportunities remain in other areas of the bootstrap logic.

- How to verify it

E2Es for all platforms should be enough to test the bootstrap logic.

- Description for the changelog

Simplify the main operator bootstrap logic to reduce cyclomatic complexity.

@openshift-ci-robot
Copy link
Contributor

openshift-ci-robot commented Dec 29, 2025

@pablintino: This pull request references MCO-2033 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.22.0" version, but no target version was set.

Details

In response to this:

Extract file validation and dependency loading logic from RenderBootstrap into a dedicated bootstrap_dependencies.go file. This reduces cyclomatic complexity by separating input handling from rendering logic.

This addresses complexity in the input handling path. Additional refactoring opportunities remain in other areas of the bootstrap logic.

- What I did

- How to verify it

- Description for the changelog

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 openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Dec 29, 2025
@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 29, 2025
@pablintino pablintino force-pushed the mco-2033 branch 2 times, most recently from f761192 to 48688de Compare December 29, 2025 17:29
Extract file validation and dependency loading logic from RenderBootstrap
into a dedicated bootstrap_dependencies.go file. This reduces cyclomatic
complexity by separating input handling from rendering logic.

This addresses complexity in the input handling path. Additional
refactoring opportunities remain in other areas of the bootstrap logic.
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Dec 30, 2025

@pablintino: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/okd-scos-images e22760f link true /test okd-scos-images
ci/prow/bootstrap-unit e22760f link false /test bootstrap-unit

Full PR test history. Your PR dashboard.

Details

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-sigs/prow repository. I understand the commands that are listed here.

@openshift-ci-robot
Copy link
Contributor

openshift-ci-robot commented Jan 1, 2026

@pablintino: This pull request references MCO-2033 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.22.0" version, but no target version was set.

Details

In response to this:

- What I did

Extract file validation and dependency loading logic from RenderBootstrap into a dedicated bootstrap_dependencies.go file. This reduces cyclomatic complexity by separating input handling from rendering logic.

This addresses complexity in the input handling path. Additional refactoring opportunities remain in other areas of the bootstrap logic.

- How to verify it

E2Es for all platforms should be enough to test the bootstrap logic.

- Description for the changelog

Simplify the main operator bootstrap logic to reduce cyclomatic complexity.

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 openshift-eng/jira-lifecycle-plugin repository.

Copy link
Member

@isabella-janssen isabella-janssen left a comment

Choose a reason for hiding this comment

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

/lgtm

The changes look fair and all the existing e2es are passing.

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Jan 2, 2026
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jan 2, 2026

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: isabella-janssen, pablintino

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:
  • OWNERS [isabella-janssen,pablintino]

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

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. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants