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: Moving the logic for modifying/creating CephCluster #567

Merged

Conversation

anubhav-here-zz
Copy link
Contributor

Moved the logic related to CephCluster to a new file in the same package.
Signed-off-by: Anubhav Deep adeep@redhat.com

@anubhav-here-zz
Copy link
Contributor Author

@jarrpa @umangachapagain Do we need to run make update-generated or make gen-latest-csv and commit the changes as well for refactoring?

@anubhav-here-zz anubhav-here-zz changed the title refactor: moving the logic for modifying/creating CephCluster Refactor: moving the logic for modifying/creating CephCluster Jun 17, 2020
@anubhav-here-zz anubhav-here-zz changed the title Refactor: moving the logic for modifying/creating CephCluster Refactor: Moving the logic for modifying/creating CephCluster Jun 17, 2020
Copy link
Member

@jarrpa jarrpa left a comment

Choose a reason for hiding this comment

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

A good start, but you're missing a few things. For example: https://github.com/openshift/ocs-operator/blob/abe7d2792dc94e760f895e0bd3b2ea809b254160/pkg/controller/storagecluster/reconcile.go#L726-L823

Look through all the functions in reconcile.go. If any of them ar eonly called via the ensureCephCluster() or newCephCluster() functions (like the two above) then they belong in the new file as well.

Signed-off-by: Anubhav Deep <adeep@redhat.com>
@anubhav-here-zz
Copy link
Contributor Author

@jarrpa Addressed the changes requested!

@openshift-ci-robot
Copy link

@anubhav-here: The following tests failed, say /retest to rerun all failed tests:

Test name Commit Details Rerun command
ci/prow/red-hat-storage-ocs-ci-e2e-aws 48be5cf link /test red-hat-storage-ocs-ci-e2e-aws
ci/prow/ocs-operator-e2e-aws 48be5cf link /test ocs-operator-e2e-aws

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

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

Copy link
Member

@jarrpa jarrpa left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Jun 18, 2020
@openshift-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: anubhav-here, jarrpa

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-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 18, 2020
@jarrpa
Copy link
Member

jarrpa commented Jun 18, 2020

/test ocs-operator-e2e-aws

@openshift-bot
Copy link

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-merge-robot openshift-merge-robot merged commit b98c1c9 into red-hat-storage:master Jun 18, 2020
@anubhav-here-zz anubhav-here-zz deleted the refactor branch June 23, 2020 05:49
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. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants