Skip to content

Commit

Permalink
kso-issue-376: Fix hardcoded IP adress
Browse files Browse the repository at this point in the history
  • Loading branch information
domhanak committed Feb 5, 2024
1 parent 6d117aa commit 22a7115
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .ci/jenkins/scripts/kind.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ void connectRegistryContainerToClusterNetwork() {
void addRegistryConfigToTheClusterNodes() {
println 'Add registry config to cluster nodes'
def addRegistryConfigStatus = sh(returnStatus: true, script: """
export REGISTRY_DIR="/etc/containerd/certs.d/172.18.0.3:5000"
export IP_ADDRESS=$(docker inspect --format='{{(index (index .NetworkSettings.Networks "kind") ).IPAddress}}' ${kindRegistryName})
export REGISTRY_DIR="/etc/containerd/certs.d/${IP_ADDRESS}:5000"
for node in $(kind get nodes); do
docker exec "${node}" mkdir -p "${REGISTRY_DIR}"
Expand Down

0 comments on commit 22a7115

Please sign in to comment.