From 7403006da88d14428c196c99331a7daaf1bcc7e0 Mon Sep 17 00:00:00 2001 From: Daniel Pawlik Date: Tue, 9 Jul 2024 09:08:58 +0200 Subject: [PATCH] Export the KUBECONFIG variable Each of the "oc" command that is veryfing the resource is exiting with error code 1, because the KUBECONFIG is not available. --- pkg/bundle/setup/clustersetup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/bundle/setup/clustersetup.sh b/pkg/bundle/setup/clustersetup.sh index 7092f8ea..b2aeae1e 100644 --- a/pkg/bundle/setup/clustersetup.sh +++ b/pkg/bundle/setup/clustersetup.sh @@ -1,6 +1,6 @@ #!/bin/bash #CONST -KUBECONFIG="/opt/kubeconfig" +export KUBECONFIG="/opt/kubeconfig" LOG_PATH="${LOG_PATH:-"/tmp"}" LOG_FILE="${LOG_FILE:-"$LOG_PATH/_RANDOM_SUFFIX_.log"}" DNSMASQ_CONF="${DNSMASQ_CONF:-"/etc/dnsmasq.d/crc-dnsmasq.conf"}"