From 1e806aca3314805941a158cdee2def1aaa5caab6 Mon Sep 17 00:00:00 2001 From: Ian Howell Date: Tue, 20 Jul 2021 13:49:15 -0500 Subject: [PATCH] AIAP: Export KUBECONFIG var to environment This exports the KUBECONFIG variable in the .bashrc of the runner container, which will improve AIAP's convenience for development and testing. Change-Id: Icba2558de8c743f6f1a5c8e5a98dcb1d98d95668 --- tools/airship-in-a-pod/runner/assets/entrypoint.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/airship-in-a-pod/runner/assets/entrypoint.sh b/tools/airship-in-a-pod/runner/assets/entrypoint.sh index 6bbd20abc..ad18f9112 100755 --- a/tools/airship-in-a-pod/runner/assets/entrypoint.sh +++ b/tools/airship-in-a-pod/runner/assets/entrypoint.sh @@ -60,9 +60,10 @@ else ./tools/deployment/airship-core/22_test_configs.sh ./tools/deployment/airship-core/23_pull_documents.sh ./tools/deployment/airship-core/23_generate_secrets.sh - fi +echo "export KUBECONFIG=$HOME/.airship/kubeconfig" >> ~/.bashrc + sed -i -e 's#bmcAddress: redfish+http://\([0-9]\+\.[0-9]\+\.[0-9]\+\.[0-9]\+\):8000#bmcAddress: redfish+https://10.23.25.1:8443#' "/tmp/airship/$MANIFEST_REPO_NAME/manifests/site/test-site/target/catalogues/hosts.yaml" sed -i -e 's#root#username#' "/tmp/airship/$MANIFEST_REPO_NAME/manifests/site/test-site/target/catalogues/hosts.yaml" sed -i -e 's#r00tme#password#' "/tmp/airship/$MANIFEST_REPO_NAME/manifests/site/test-site/target/catalogues/hosts.yaml"