-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
🌱 Add script to install Kind for testing with CAPD #5232
🌱 Add script to install Kind for testing with CAPD #5232
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks pretty good, and matches what I have been doing locally. One small comment to address.
hack/kind_install_for_capd.sh
Outdated
@@ -0,0 +1,71 @@ | |||
#!/bin/sh | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add the copyright header to this script:
https://github.com/kubernetes-sigs/cluster-api/blob/master/hack/ensure-kubectl.sh#L3-L15
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm wondering about this as this is mostly taken from the KIND script - is it appropriate to add a header to it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall looks great!
Should we have some Make commands that runs this script before running tilt up?
hack/kind_install_for_capd.sh
Outdated
@@ -0,0 +1,71 @@ | |||
#!/bin/sh | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes
hack/kind_install_for_capd.sh
Outdated
@@ -0,0 +1,71 @@ | |||
#!/bin/sh |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rename this file with -
to be consistent with the rest?
hack/kind_install_for_capd.sh
Outdated
set -o nounset | ||
set -o pipefail | ||
|
||
NAME="capi-test" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we allow this to be set outside and default to capi-test
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I understand you correctly that's what's happening here - the --name flag sets the name for the cluster if it's set.
a4a567f
to
1fdf5a0
Compare
@killianmuldoon: The following test failed, say
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
@killianmuldoon please address linter errors |
Signed-off-by: killianmuldoon <[email protected]>
1fdf5a0
to
7f2304d
Compare
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: fabriziopandini 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 |
What this PR does / why we need it:
This change adds a script that creates a Kind cluster with a local container registry and the correct mounts for using CAPD. This script is mainly a copy of the kind_with_local_registry.sh script made available by the Kind team at https://kind.sigs.k8s.io/docs/user/local-registry/.
This PR is in response to a comment on our current Tilt workflow at #5204
Signed-off-by: killianmuldoon [email protected]