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

🏃 KCP cleanup #2303

Merged
merged 1 commit into from
Feb 11, 2020
Merged

🏃 KCP cleanup #2303

merged 1 commit into from
Feb 11, 2020

Conversation

chuckha
Copy link
Contributor

@chuckha chuckha commented Feb 10, 2020

/hold

This depends on #2295

What this PR does / why we need it:
This PR cleans up a few things from #2193. This will make the change to get the etcd health check even smaller and more integrated feeling.

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Related to #2243

/assign @detiber @dlipovetsky @randomvariable

To expand a little bit on what's going on here: This is a minimal diff to start using the ManagementCluster and remove the functionality off the reconciler. Moving forward I'd like to take almost all of the logic in the reconciler and put it on the management cluster. This will keep the reconciler small and testable while focused on passing data to the right dependencies.

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Feb 10, 2020
@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Feb 10, 2020
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: chuckha

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

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 10, 2020
@chuckha chuckha force-pushed the kcp-cleanup branch 2 times, most recently from cd6af6d to 965da1c Compare February 10, 2020 17:32
@dlipovetsky
Copy link
Contributor

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Feb 10, 2020
@detiber
Copy link
Member

detiber commented Feb 10, 2020

lgtm pending rebase after #2295 merges

@randomvariable
Copy link
Member

lgtm

@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed lgtm "Looks good to me", indicates that a PR is ready to be merged. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Feb 11, 2020
@chuckha
Copy link
Contributor Author

chuckha commented Feb 11, 2020

/hold cancel

Rebased, much smaller diff now.

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Feb 11, 2020
@detiber
Copy link
Member

detiber commented Feb 11, 2020

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Feb 11, 2020
@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Feb 11, 2020
clusterv1 "sigs.k8s.io/cluster-api/api/v1alpha3"
)

// Log is the global logger for the internal package.
var Log = klogr.New()
Copy link
Contributor Author

Choose a reason for hiding this comment

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

As we move forward we should figure out a better place for this. I think it's too early to bother figuring out right now, but I'm not sure if we want a logger per package or a logger per module.... 🤔 Will be paying attention as this pattern develops.

Copy link
Member

Choose a reason for hiding this comment

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

Should this be exported?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah, this should be exported, that way the other packages can control the logging for this library

clusterv1 "sigs.k8s.io/cluster-api/api/v1alpha3"
)

// Log is the global logger for the internal package.
var Log = klogr.New()
Copy link
Member

Choose a reason for hiding this comment

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

Should this be exported?

Signed-off-by: Chuck Ha <chuckh@vmware.com>
@chuckha
Copy link
Contributor Author

chuckha commented Feb 11, 2020

I think capd started flaking again. not sure why but that's why it's not required yet! 🙃 I have a perpetual note in my todo to look into it when i've got time

@detiber
Copy link
Member

detiber commented Feb 11, 2020

@chuckha the hourlies aren't showing too many failures: https://k8s-testgrid.appspot.com/sig-cluster-lifecycle-cluster-api#capd%20e2e%20tests

@chuckha
Copy link
Contributor Author

chuckha commented Feb 11, 2020

@chuckha the hourlies aren't showing too many failures: https://k8s-testgrid.appspot.com/sig-cluster-lifecycle-cluster-api#capd%20e2e%20tests

hmm I'll try rerunning until i finish up this other work and then can look into this

/test pull-cluster-api-capd-e2e

@dlipovetsky
Copy link
Contributor

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Feb 11, 2020
@k8s-ci-robot k8s-ci-robot merged commit f043204 into kubernetes-sigs:master Feb 11, 2020
@chuckha chuckha deleted the kcp-cleanup branch February 11, 2020 22:57
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. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants