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-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

@umohnani8
Copy link
Contributor

Changes make sense and LGTM
Given all e2e tests are passing and nothing else needs to be verified, will bypass the verified label

/verified bypass

@openshift-ci-robot openshift-ci-robot added the verified Signifies that the PR passed pre-merge verification criteria label Jan 5, 2026
@openshift-ci-robot
Copy link
Contributor

@umohnani8: The verified label has been added.

Details

In response to this:

Changes make sense and LGTM
Given all e2e tests are passing and nothing else needs to be verified, will bypass the verified label

/verified bypass

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
Copy link
Contributor

/retest-required

Remaining retests: 0 against base HEAD db346c5 and 2 for PR HEAD e22760f in total

@isabella-janssen
Copy link
Member

/override ci/prow/okd-scos-images

Known issue, unrelated to MCO or this PR. (see coreos/rhel-coreos-config#134)

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jan 5, 2026

@isabella-janssen: Overrode contexts on behalf of isabella-janssen: ci/prow/okd-scos-images

Details

In response to this:

/override ci/prow/okd-scos-images

Known issue, unrelated to MCO or this PR. (see coreos/rhel-coreos-config#134)

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.

@isabella-janssen
Copy link
Member

/override ci/prow/okd-scos-images

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jan 5, 2026

@isabella-janssen: Overrode contexts on behalf of isabella-janssen: ci/prow/okd-scos-images

Details

In response to this:

/override ci/prow/okd-scos-images

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.

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jan 5, 2026

@pablintino: The following test 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/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.

@isabella-janssen
Copy link
Member

/retest-required

@openshift-merge-bot openshift-merge-bot bot merged commit 36dcbbc into openshift:main Jan 5, 2026
13 of 14 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. 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. verified Signifies that the PR passed pre-merge verification criteria

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants