-
Notifications
You must be signed in to change notification settings - Fork 194
Improve make file: kind-up,kind-down #6131
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
base: master
Are you sure you want to change the base?
Conversation
c06556e
to
76056f8
Compare
Nice catch, thanks @linhdangduy 👍 Maybe we can separate the command to prepare the local registry and the kind-cluster. Something like .PHONY: local-cluster
local-cluster: local-registry kind-cluster WDYT? |
@khanhtc1202 Not sure I understand the idea. Does it mean defining separated .PHONY for The current structure is, having |
@linhdangduy Yes, that's what I mean 👍 tbh, I don't use kind cluster for the local K8s cluster; I'm using docker4mac k8s cluster instead. The local registry preparation is required regardless of the cluster you choose, and it is a one-time preparation afair. .PHONY: up/local-cluster
up/local-cluster: up/local-registry up/kind-cluster
.PHONY: down/kind-cluster |
@khanhtc1202 Thanks for the clarification. Understood that the local registry is necessary for any local k8s cluster. IMHO, the current Makefile structure (having only cluster up and down) is more consistent with existing with what we have: only having doc for kind cluster, and there is no document / process to have the local-registry up individually to use with other local k8s cluster. So I'm more prone to not separating them. WDYT? if you see that separation is better, I can update the PR to align with it. Incase we have the name change from |
@linhdangduy I think it could be better to separate the command, and yes, we have to update the docs (README/CONTRIBUTING.md) in that case. People who don't want to specify a local cluster other than kind can use |
d73f57c
to
25ba451
Compare
Signed-off-by: Dan <[email protected]>
Signed-off-by: Dan <[email protected]>
Signed-off-by: Dan <[email protected]>
Signed-off-by: Dan <[email protected]>
7473881
to
21254d4
Compare
@khanhtc1202 I have separated local registry and kind, and prepared the up/local-cluster and down/local-cluster .PHONY For the documentation, I have updated all except the historical versions, for example: this one and this one |
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, thanks 💯
What this PR does:
Why we need it:
kind-registry is not removed as describing in make kind-down here
This change for avoiding duplicated executing of network connect error (as below image).
Which issue(s) this PR fixes:
Do I need to create issue for this PR? If yes, I will create it
Does this PR introduce a user-facing change?: No