Skip to content
This repository has been archived by the owner on Sep 24, 2021. It is now read-only.

remove kind the binary as a dependnecy #56

Merged
merged 5 commits into from
Jul 3, 2019

Conversation

chuckha
Copy link
Contributor

@chuckha chuckha commented Jul 2, 2019

Bump the kind library dep to v0.4.0

Signed-off-by: Chuck Ha chuckh@vmware.com

What this PR does / why we need it:

This PR now creates the management cluster using the same functions that the actuators use to build regular control plane nodes. No more nested containers.

We need this because of node-ref. The container images that contain a kubernetes must share the same network so that node-ref controller can talk to child clusters. Without this there is no way to shove the network down into containerd land inside the kind node.

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 #55

Special notes for your reviewer:

Release note:

Removes kind the binary as a dependency

I'm adding a hold so I can work on the README before this merges.

/hold

Bump the kind library dep to v0.4.0

Signed-off-by: Chuck Ha <chuckh@vmware.com>
@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 Jul 2, 2019
@k8s-ci-robot k8s-ci-robot requested review from detiber and vincepri July 2, 2019 21:06
@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. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jul 2, 2019
Copy link
Contributor

@neolit123 neolit123 left a comment

Choose a reason for hiding this comment

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

SGTM added one minor comment.

chuckha added 4 commits July 2, 2019 18:02
Signed-off-by: Chuck Ha <chuckh@vmware.com>
Signed-off-by: Chuck Ha <chuckh@vmware.com>
Signed-off-by: Chuck Ha <chuckh@vmware.com>
Signed-off-by: Chuck Ha <chuckh@vmware.com>
@chuckha
Copy link
Contributor Author

chuckha commented Jul 2, 2019

/hold cancel

Ready to go!

@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 Jul 2, 2019
// start kind with docker mount
kindConfig, err := kindConfigFile()
fmt.Println("Creating a brand new cluster")
elb, err := actions.SetUpLoadBalancer(clusterName)
if err != nil {
panic(err)
Copy link
Contributor

Choose a reason for hiding this comment

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

out of scope of this PR, but the panic() pattern here is not recommended.
errors should bubble up to an exit(1).

Copy link

Choose a reason for hiding this comment

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

...or klog.Fatal

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Right now i'm keeping panic for consistency. I opened #8 to get a new contributor involved but will probably timeout on the issue soon since this can't live for much longer

@@ -149,13 +150,23 @@ func KubeadmInit(clusterName string) error {
if err != nil {
return err
}
// Upload certs flag changed to non-experimental in >= 1.15
uploadCertsFlag := "--experimental-upload-certs"
parsedVersion, err := k8sverison.ParseGeneric(version)
Copy link
Contributor

Choose a reason for hiding this comment

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

should be ParseSemantic? generic will fail parsing a k8s version with pre-release + metadata.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

that's ok, we won't be using those tags (yet). if we do end up needing it we can change it later

@chuckha
Copy link
Contributor Author

chuckha commented Jul 3, 2019

closes #28

@neolit123
Copy link
Contributor

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Jul 3, 2019
@k8s-ci-robot k8s-ci-robot merged commit 8999df7 into kubernetes-retired:master Jul 3, 2019
@chuckha chuckha deleted the remove-kind branch August 16, 2019 02:30
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
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 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.

cluster api v0.1.4 doesn't work with current implementation
4 participants