Merge "Prevent 22_test_configs.sh from deleting too much"

This commit is contained in:
Zuul 2021-09-28 19:45:00 +00:00 committed by Gerrit Code Review
commit f2363dafd1

View File

@ -50,8 +50,8 @@ export AIRSHIP_CONFIG_MANIFEST_REPO_AUTH_TYPE=${AIRSHIP_CONFIG_MANIFEST_REPO_AUT
export EXTERNAL_KUBECONFIG=${EXTERNAL_KUBECONFIG:-""}
# Remove the contents of the .airship folder, preserving the kustomize plugin directory
rm -rf $HOME/.airship/*config*
mkdir -p $HOME/.airship
rm -rf "$HOME/.airship/config" "$HOME/.airship/kubeconfig"
mkdir -p "$HOME/.airship"
echo "Generate ~/.airship/config and ~/.airship/kubeconfig"
envsubst <"${AIRSHIPCTL_WS}/tools/deployment/templates/airshipconfig_template" > ~/.airship/config