-
Notifications
You must be signed in to change notification settings - Fork 347
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
base: main
Are you sure you want to change the base?
Conversation
@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:
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. |
[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 |
b2c6d15
to
2757385
Compare
control-plane-operator/controllers/hostedcontrolplane/v2/olm/collect_profiles/component.go
Show resolved
Hide resolved
deploymentConfig.ApplyTo(deployment) | ||
return nil | ||
} | ||
c.workloadProvider.ApplyOptionsTo(cpContext, workloadObj, oldWorkloadObj, deploymentConfig) |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
/lgtm |
New changes are detected. LGTM label has been removed. |
3c5db82
to
4bb3fd2
Compare
d08ec36
to
f9630ef
Compare
/retest-required |
/retest-required |
1 similar comment
/retest-required |
@muraee: The following tests failed, say
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. |
/retest-required |
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