From 7a9f04473d4b16f62e32e1cf46247562b8fe7504 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. This commit is partially revert code that was proposed in [1]. [1] https://github.com/crc-org/crc-cloud/pull/189 --- 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"}"