Commit 94185a4 1 parent 0ec7432 commit 94185a4 Copy full SHA for 94185a4
File tree 3 files changed +12
-2
lines changed
3 files changed +12
-2
lines changed Original file line number Diff line number Diff line change
1
+ .github
Original file line number Diff line number Diff line change @@ -5,9 +5,12 @@ mkdir -p ./kube
5
5
6
6
if [ ! -f ./kube/config.yaml ]; then
7
7
kind create cluster -n 5min-idp --kubeconfig ./kube/config.yaml --config ./setup/kind/cluster.yaml
8
+ fi
8
9
9
- # connect current container to the kind network
10
- docker network connect " kind" " 5min-idp"
10
+ # connect current container to the kind network
11
+ container_name=" 5min-idp"
12
+ if [ " $( docker inspect -f=' {{json .NetworkSettings.Networks.kind}}' " ${container_name} " ) " = ' null' ]; then
13
+ docker network connect " kind" " ${container_name} "
11
14
fi
12
15
13
16
# used by humanitec-agent / inside docker to reach the cluster
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
set -eo pipefail
3
3
4
+ # connect current container to the kind network
5
+ container_name=" 5min-idp"
6
+ if [ " $( docker inspect -f=' {{json .NetworkSettings.Networks.kind}}' " ${container_name} " ) " = ' null' ]; then
7
+ docker network connect " kind" " ${container_name} "
8
+ fi
9
+
4
10
humctl_token=$( yq .token /root/.humctl)
5
11
kubeconfig_docker=$( pwd) /kube/config-internal.yaml
6
12
You can’t perform that action at this time.
0 commit comments