Skip to content

Commit 86646eb

Browse files
author
Jorge Solórzano
committed
fix(ci): Get CONTANER_NAME from docker hostname in Kind
Signed-off-by: Jorge Solórzano <jorsol@ongres.com>
1 parent 6c42d72 commit 86646eb

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • stackgres-k8s/e2e/envs

stackgres-k8s/e2e/envs/kind

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ update_k8s_config() {
5656
then
5757
local CONTAINER_NAME
5858
CONTAINER_NAME="$(cat /proc/self/cgroup | grep '^1:name' | cut -d / -f 3)"
59+
CONTAINER_NAME="${CONTAINER_NAME:-$(docker ps --filter name=^$(cat /etc/hostname) --format '{{.Names}}' 2>/dev/null)}"
5960
CONTAINER_NAME="${CONTAINER_NAME:-$(cat /etc/hostname)}"
6061
CONTAINER_NAME="${CONTAINER_NAME:-$(hostname)}"
6162
docker inspect "$CONTAINER_NAME" \

0 commit comments

Comments
 (0)