This is an automated email from the ASF dual-hosted git repository.

ricardozanini pushed a commit to branch main
in repository 
https://gitbox.apache.org/repos/asf/incubator-kie-kogito-serverless-operator.git


The following commit(s) were added to refs/heads/main by this push:
     new ed4770a9 Fixes kind create cluster script that contained a hardcoded 
IP for the registry configuration in containerd. Instead it now uses the 
associated IP of the registry container running in Docker (#383)
ed4770a9 is described below

commit ed4770a931a4c6efa3265ae0d4c16520d9dcfea5
Author: Jordi Gil <[email protected]>
AuthorDate: Mon Feb 5 19:23:11 2024 +0100

    Fixes kind create cluster script that contained a hardcoded IP for the 
registry configuration in containerd. Instead it now uses the associated IP of 
the registry container running in Docker (#383)
    
    Signed-off-by: Jordi Gil <[email protected]>
---
 hack/ci/create-kind-cluster-with-registry.sh | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/hack/ci/create-kind-cluster-with-registry.sh 
b/hack/ci/create-kind-cluster-with-registry.sh
index bb341a11..2feb2c25 100755
--- a/hack/ci/create-kind-cluster-with-registry.sh
+++ b/hack/ci/create-kind-cluster-with-registry.sh
@@ -64,9 +64,11 @@ fi
 #
 # We want a consistent name that works from both ends, so we tell containerd to
 # alias localhost:${reg_port} to the registry container when pulling images
-REGISTRY_DIR="/etc/containerd/certs.d/172.18.0.3:5000"
-# retrieve IP address of the container connected to the cluster network
+
+# Retrieve IP address of the container connected to the cluster network
 IP_ADDRESS=$(docker inspect --format='{{(index (index 
.NetworkSettings.Networks "kind") ).IPAddress}}' ${reg_name})
+
+REGISTRY_DIR="/etc/containerd/certs.d/${IP_ADDRESS}:5000"
 for node in $(kind get nodes); do
   docker exec "${node}" mkdir -p "${REGISTRY_DIR}"
   cat <<EOF | docker exec -i "${node}" cp /dev/stdin 
"${REGISTRY_DIR}/hosts.toml"


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to