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 Instance Methods Try 2 #1254

Merged
merged 3 commits into from
Jan 10, 2020
Merged

Conversation

ANeumann82
Copy link
Member

Second attempt:

  • Kept instance methods that are used from multiple places close to the instance
  • Moved Reconciler methods to instance_controller
  • No new structs

What this PR does / why we need it:
Supersedes #1184

Fixes #1183

… file

Signed-off-by: Andreas Neumann <aneumann@mesosphere.com>
# Conflicts:
#	pkg/kudoctl/cmd/package_list_plans.go
Copy link
Member

@gerred gerred left a comment

Choose a reason for hiding this comment

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

👍 to this change. Separates the behavior from the data, since that is dependent and a source for Kubernetes codeine.

@ANeumann82 ANeumann82 added this to Ready For Review in KUDO Global Jan 9, 2020
Copy link
Contributor

@zen-dog zen-dog left a comment

Choose a reason for hiding this comment

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

A minor nit, otherwise lgtm

pkg/controller/instance/instance_controller_test.go Outdated Show resolved Hide resolved
Signed-off-by: Andreas Neumann <aneumann@mesosphere.com>
@ANeumann82 ANeumann82 merged commit 8b5a2ee into master Jan 10, 2020
KUDO Global automation moved this from Ready For Review to Done Jan 10, 2020
ANeumann82 added a commit that referenced this pull request Feb 13, 2020
* Moved methods from instance_types to instance_controller and a helper file

Signed-off-by: Andreas Neumann <aneumann@mesosphere.com>
Signed-off-by: Andreas Neumann <aneumann@mesosphere.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
KUDO Global
  
Done
Development

Successfully merging this pull request may close these issues.

Move methods from api package to controller/reconciliation
3 participants