We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b480974 commit 854fc1aCopy full SHA for 854fc1a
1 file changed
04-cloud-secret.sh
@@ -20,7 +20,7 @@ kubectl create namespace "$CS_NAMESPACE" || true
20
# - The cloud should be called openstack
21
# - We will detect a cacert in there and pass it to the helper chart
22
if ! test -r "$CLOUDS_YAML"; then echo "clouds.yaml $CLOUDS_YAML not readable"; exit 2; fi
23
-CA=$(grep -A12 "^\s\s*$OS_CLOUD: *$" $CLOUDS_YAML | grep 'cacert:' | head -n1 | sed 's/^ *cacert: //')
+CA=$(grep -A12 "^\s\s*$OS_CLOUD:\s*\$" $CLOUDS_YAML | grep 'cacert:' | head -n1 | sed 's/^ *cacert: //')
24
OS_CACERT=${OS_CACERT:-$CA}
25
if test -n "$OS_CACERT"; then
26
echo "Found CA cert file configured to be $OS_CACERT"
0 commit comments