Improve make file: kind-up,kind-down#6131
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-clusterWDYT? |
|
@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 <dangduylinh.bk@gmail.com>
Signed-off-by: Dan <dangduylinh.bk@gmail.com>
Signed-off-by: Dan <dangduylinh.bk@gmail.com>
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 |
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