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

HOSTEDCP-2246: [CPOv2 Refactor] Refactor OLM #5663

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

Conversation

muraee
Copy link
Contributor

@muraee muraee commented Feb 18, 2025

What this PR does / why we need it:

Which issue(s) this PR fixes (optional, use fixes #<issue_number>(, fixes #<issue_number>, ...) format, where issue_number might be a GitHub issue, or a Jira story:
Fixes #

Checklist

  • Subject and description added to both, commit and PR.
  • Relevant issues have been referenced.
  • This change includes docs.
  • This change includes unit tests.

@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Feb 18, 2025
@openshift-ci-robot
Copy link

openshift-ci-robot commented Feb 18, 2025

@muraee: This pull request references HOSTEDCP-2246 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 sub-task to target the "4.19.0" version, but no target version was set.

In response to this:

What this PR does / why we need it:

Which issue(s) this PR fixes (optional, use fixes #<issue_number>(, fixes #<issue_number>, ...) format, where issue_number might be a GitHub issue, or a Jira story:
Fixes #

Checklist

  • Subject and description added to both, commit and PR.
  • Relevant issues have been referenced.
  • This change includes docs.
  • This change includes unit tests.

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 openshift-ci bot added the area/control-plane-operator Indicates the PR includes changes for the control plane operator - in an OCP release label Feb 18, 2025
Copy link
Contributor

openshift-ci bot commented Feb 18, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: muraee

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

The pull request process is described here

Needs approval from an approver in each of these files:

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

@openshift-ci openshift-ci bot added approved Indicates a PR has been approved by an approver from all required OWNERS files. and removed do-not-merge/needs-area labels Feb 18, 2025
@muraee muraee force-pushed the refactor-olm branch 2 times, most recently from b2c6d15 to 2757385 Compare February 18, 2025 16:56
deploymentConfig.ApplyTo(deployment)
return nil
}
c.workloadProvider.ApplyOptionsTo(cpContext, workloadObj, oldWorkloadObj, deploymentConfig)
Copy link
Member

Choose a reason for hiding this comment

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

I wouldn't expect we need to pass deploymentConfig through any signaturem specially public

Copy link
Contributor Author

Choose a reason for hiding this comment

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

the problem is there is not generic function for deploymentConfig.ApplyTo si each workloadProvider needs to call the correct function. I'd like to get rid of deploymentConfig in the cpov2 completely once finish the refactors to make the code more readable and explicit.

through any signaturem specially public

technically this should be only used within this package, I can make it the func private

Copy link
Member

Choose a reason for hiding this comment

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

we could hide this within the deploymentConfig package rather than surface it in this library

	switch any(workloadObj).(type) {
	case appsv1.Deployment:
		// call right function
	case stateful:

not a blocker for me

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thanks, I will follow-up with a PR to remove deploymentConfig from v2

@enxebre
Copy link
Member

enxebre commented Feb 19, 2025

/lgtm

@openshift-ci openshift-ci bot added lgtm Indicates that a PR is ready to be merged. and removed lgtm Indicates that a PR is ready to be merged. labels Feb 19, 2025
Copy link
Contributor

openshift-ci bot commented Feb 19, 2025

New changes are detected. LGTM label has been removed.

@muraee muraee force-pushed the refactor-olm branch 2 times, most recently from 3c5db82 to 4bb3fd2 Compare February 19, 2025 17:26
@muraee muraee force-pushed the refactor-olm branch 2 times, most recently from d08ec36 to f9630ef Compare February 20, 2025 14:36
@muraee
Copy link
Contributor Author

muraee commented Feb 24, 2025

/retest-required

@muraee
Copy link
Contributor Author

muraee commented Feb 24, 2025

/retest-required

1 similar comment
@muraee
Copy link
Contributor Author

muraee commented Feb 24, 2025

/retest-required

Copy link
Contributor

openshift-ci bot commented Feb 24, 2025

@muraee: 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/e2e-aws-techpreview 2757385 link false /test e2e-aws-techpreview
ci/prow/okd-scos-e2e-aws-ovn 731e957 link false /test okd-scos-e2e-aws-ovn

Full PR test history. Your PR dashboard.

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.

@muraee
Copy link
Contributor Author

muraee commented Feb 25, 2025

/retest-required

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. area/control-plane-operator Indicates the PR includes changes for the control plane operator - in an OCP release jira/valid-reference Indicates that this PR references a valid Jira ticket of any type.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants