Skip to content

Commit

Permalink
Makefile: use CLI to set local images for kind-install-cilium-cluster…
Browse files Browse the repository at this point in the history
…mesh

`make-kind-clustermesh-images` uses `KIND_ENV` to set image repositories
for local images to be pushed to kind clusters, however these are not
actually used when installing Cilium on the kind clusters in
`kind-install-cilium-clustermesh`.

The hardcoded image overrides have been removed from the helm values
for these clusters and replaced with CLI flags to specify using the
local images for Agent and Operator.

Signed-off-by: Tim Horner <timothy.horner@isovalent.com>
  • Loading branch information
thorn3r committed May 31, 2023
1 parent 8531c5a commit c9f538a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,8 @@ kind-install-cilium-clustermesh: kind-clustermesh-ready ## Install a local Ciliu
$(CILIUM_CLI) install \
--chart-directory=$(ROOT_DIR)/install/kubernetes/cilium \
--helm-values=$(ROOT_DIR)/contrib/testing/kind-clustermesh1.yaml \
--agent-image=$(LOCAL_AGENT_IMAGE) \
--operator-image=$(LOCAL_OPERATOR_IMAGE) \
--version=
@echo " INSTALL cilium on clustermesh2 cluster"
kubectl config use kind-clustermesh2
Expand All @@ -471,6 +473,8 @@ kind-install-cilium-clustermesh: kind-clustermesh-ready ## Install a local Ciliu
--inherit-ca kind-clustermesh1 \
--chart-directory=$(ROOT_DIR)/install/kubernetes/cilium \
--helm-values=$(ROOT_DIR)/contrib/testing/kind-clustermesh2.yaml \
--agent-image=$(LOCAL_AGENT_IMAGE) \
--operator-image=$(LOCAL_OPERATOR_IMAGE) \
--version=
@echo " Enabling clustermesh"
$(CILIUM_CLI) clustermesh enable --context kind-clustermesh1 --service-type NodePort --apiserver-image $(LOCAL_CLUSTERMESH_IMAGE)
Expand Down
3 changes: 0 additions & 3 deletions contrib/testing/kind-clustermesh1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,10 @@ cluster:
debug:
enabled: true
image:
override: "localhost:5000/cilium/cilium-dev:local"
pullPolicy: Never
operator:
image:
override: "localhost:5000/cilium/operator-generic:local"
pullPolicy: Never
suffix: ""
ipam:
mode: kubernetes
ipv6:
Expand Down
3 changes: 0 additions & 3 deletions contrib/testing/kind-clustermesh2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,10 @@ cluster:
debug:
enabled: true
image:
override: "localhost:5000/cilium/cilium-dev:local"
pullPolicy: Never
operator:
image:
override: "localhost:5000/cilium/operator-generic:local"
pullPolicy: Never
suffix: ""
ipam:
mode: kubernetes
ipv6:
Expand Down

0 comments on commit c9f538a

Please sign in to comment.