Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion scripts/setup/config-create.sh
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,12 @@ EOF

ln -fs "${CLUSTER_CONFIG}" "${CONFIG_FILE}"

create_gcloud_config
# checks if gcloud is installed, if not, it creates only locally
if command -v gcloud >/dev/null 2>&1; then
create_gcloud_config
else
echo "Configuration created only locally. Gcloud not installed." >&2
fi

# there might be an existing cluster
# if it already exists, we try to update it
Expand Down
7 changes: 6 additions & 1 deletion scripts/setup/config-load.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,12 @@ CONFIG_FILE_DIR="$(dirname ${CONFIG_FILE})"
CHAL_DIR=$(realpath "${CONFIG_FILE_DIR}/../..")
ln -nfs "${CHAL_DIR}" "${CONFIG_DIR}/challenges"

create_gcloud_config
# checks if gcloud is installed, if not, it loads only locally
if command -v gcloud >/dev/null 2>&1; then
create_gcloud_config
else
echo "Configuration loaded only locally. Gcloud not installed." >&2
fi

# there might be an existing cluster, try to get the creds
get_cluster_creds 2>/dev/null || true