Skip to content

Commit 7626e63

Browse files
committed
Handle the case with AppCreds, no project_id needed there.
Signed-off-by: Kurt Garloff <kurt@garloff.de>
1 parent 0227a9b commit 7626e63

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

04-cloud-secret.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ if test -n "$SECRETS"; then
3737
fi
3838
# Determine whether we need to add project ID
3939
RAW_CLOUD=$(extract_yaml clouds.$OS_CLOUD <$CLOUDS_YAML)
40-
if ! echo "$RAW_CLOUD" | grep -q "^\s*project_id:"; then
40+
if ! echo "$RAW_CLOUD" | grep -q '^\s*project_id:' && echo "$RAW_CLOUD" | grep -q '^\s*project_name:'; then
4141
# Need openstack CLI for this
4242
PROJECT_NAME=$(echo "$RAW_CLOUD" | grep '^\s*project_name:' | sed 's/^\s*project_name: //')
4343
PROJECT_ID=$(openstack project show $PROJECT_NAME -c id -f value | tr -d '\r')

06-wait-clusterclass.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ source "$SET"
1515
# ToDo: Wait for cluster class
1616
echo "The clusterclass should exist now"
1717
echo "WARN: Waiting not yet implemented"
18+
sleep 3
1819
set -x
19-
kubectl get clusterclasses -n "$CS_NAMESPACE"
2020
kubectl get images -n "$CS_NAMESPACE"
21+
kubectl get clusterclasses -n "$CS_NAMESPACE"

08-wait-cluster.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ echo "The cluster should exist now"
1616
echo "WARN: Waiting not yet implemented"
1717
set -x
1818
clusterctl describe cluster -n "$CS_NAMESPACE" $CL_NAME
19-
echo clusterctl get kubeconfig -n "$CS_NAMESPACE" $CL_NAME > "~/.kube/$CS_NAMESPACE.$CL_NAME.yaml"
19+
echo "clusterctl get kubeconfig -n $CS_NAMESPACE $CL_NAME > ~/.kube/config-$CS_NAMESPACE.$CL_NAME"

0 commit comments

Comments
 (0)