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

Convert project to kubebuilder version 2 #994

Merged
merged 6 commits into from
Aug 14, 2019

Conversation

chuckha
Copy link
Contributor

@chuckha chuckha commented Aug 9, 2019

Signed-off-by: Chuck Ha [email protected]

What this PR does / why we need it:
This PR converts capa to a kubebuilder v2 project.

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

Special notes for your reviewer:

Release note:

NONE

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Aug 9, 2019
@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 approved Indicates a PR has been approved by an approver from all required OWNERS files. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Aug 9, 2019
Copy link
Member

@vincepri vincepri left a comment

Choose a reason for hiding this comment

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

Some comments, thanks so much for doing this, looking great so far!

cmd/manager/main.go Outdated Show resolved Hide resolved
cmd/manager/main.go Outdated Show resolved Hide resolved
hack/tools/tools.go Outdated Show resolved Hide resolved
@@ -42,77 +38,6 @@ type AWSClusterSpec struct {
SSHKeyName string `json:"sshKeyName,omitempty"`
}

// NetworkSpec encapsulates all things related to AWS network.
Copy link
Member

Choose a reason for hiding this comment

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

Why move these? Seems they are only used within this file

Copy link
Contributor Author

Choose a reason for hiding this comment

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

these got moved to keep the awscluster_types.go and awsmachine_types.go files to contain only the kubebuilder generated types. The supporting types live in types.go

cmd/manager/main.go Outdated Show resolved Hide resolved
@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Aug 12, 2019
@k8s-ci-robot k8s-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Aug 12, 2019
@chuckha
Copy link
Contributor Author

chuckha commented Aug 12, 2019

@vincepri @detiber this is ready for another pass

@chuckha chuckha changed the title Convert types to kubebuilder version 2 Convert project to kubebuilder version 2 Aug 12, 2019
@chuckha chuckha force-pushed the kubebuilderv2 branch 2 times, most recently from 247972a to 393d2f8 Compare August 13, 2019 20:47
@chuckha
Copy link
Contributor Author

chuckha commented Aug 13, 2019

@detiber @vincepri

This gets us to the point of the un-implemented controller.

Take a look at config/ as well. I added some stuff to make the credentials secret (also look at the Makefile).

Otherwise the biggest changes: i deleted the examples directory in its entirety for v1alpha2.

config/manager/manager.yaml Show resolved Hide resolved
Makefile Show resolved Hide resolved
BUILD.bazel Show resolved Hide resolved
BUILD.bazel Show resolved Hide resolved
@detiber
Copy link
Member

detiber commented Aug 14, 2019

lgtm, but would like @vincepri to take a look since he's doing similar work in cluster-api

@vincepri
Copy link
Member

Taking a look now

Copy link
Member

@vincepri vincepri left a comment

Choose a reason for hiding this comment

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

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Aug 14, 2019
@k8s-ci-robot k8s-ci-robot merged commit a86ee59 into kubernetes-sigs:master Aug 14, 2019
This was referenced Aug 14, 2019
@chuckha chuckha deleted the kubebuilderv2 branch August 14, 2019 15:29
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/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Convert project to kubebuilder v2
4 participants