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
contrib/kind: adapt clustermesh related make targets to recent changes #24693
contrib/kind: adapt clustermesh related make targets to recent changes #24693
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.
I'd prefer changing kind-down instead of duplicating it's logic in the Makefile
cd7b486
to
c3cb8eb
Compare
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 great, thanks!
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.
Sorry for the churn, thanks for cleaning up my mess :p
@@ -459,7 +458,7 @@ kind-clustermesh-images: kind-clustermesh-ready kind-build-clustermesh-apiserver | |||
$(QUIET)kind load docker-image $(LOCAL_OPERATOR_IMAGE) --name clustermesh1 | |||
$(QUIET)kind load docker-image $(LOCAL_OPERATOR_IMAGE) --name clustermesh2 | |||
|
|||
.PHONY: kind-install-cilium-clustermesh |
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.
So call KIND_ENV
ends up doing the same as .PHONY
?
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, it adds .PHONY
among the others: https://github.com/cilium/cilium/blob/c3cb8eba315b8786a166e0c34bae78f7fd202bf4/Makefile#L444-L450
maybe need to address the |
Right now we are not setting
Do you mean having the two clustermesh clusters in different docker networks? Could you please elaborate about why you feel that would be better? |
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.
thanks!
/ci-datapath |
4310b5e modified the kind.sh contrib script introducing the creation of a dedicated kind-cilium docker network to be used by kind. Yet, this broke the `make kind-clustermesh` command, as the second execution of the script fails given that the network already exists. Hence, let's first check if the network already exists, and create it only if not already present. Fixes: 4310b5e ("contrib/kind: enable XDP_TX from pod veth") Signed-off-by: Marco Iorio <marco.iorio@isovalent.com>
This commit parametrizes the `kind-down.sh` script, to tear down all kind clusters specified as parameters (defaulting to kind if none are specified), and changes the `kind-clustermesh-down` target to use it. Hence, uniforming the cleanup logic to reduce possible discrepancies. Signed-off-by: Marco Iorio <marco.iorio@isovalent.com>
2975c75 dropped the usage of a local docker registry and, among others, changed the `kind-install-cilium-clustermesh` target to use a parametrized name for the clustermesh-apiserver image. Yet, that variable was not initialized, causing the target to fail. This commit fixes it, calling the initialization logic. Fixes: 2975c75 ("contrib/kind: no longer create local docker registry") Signed-off-by: Marco Iorio <marco.iorio@isovalent.com>
c3cb8eb
to
9b19cb4
Compare
Force pushed to rebase onto master |
/ci-datapath |
The Cilium datapath workflow seems to be currently broken (#24809). Given that the |
/ci-datapath |
Reviews are in, and ci-datapath (which uses |
This PR fixes two issues concerning the clustermesh related make targets introduced by recent modifications:
make kind-clustermesh
: do not fail if thekind-cilium
docker network already existsmake kind-install-cilium-clustermesh
: initialize theLOCAL_CLUSTERMESH_IMAGE
variableAdditionally, it extends the kind-down.sh script and makes the
kind-clustermesh-down
target use it, ensuring that thekind-cilium
network gets deleted also in that case.More details are provided in the respective commit messages.