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 12ac002 commit 471a72dCopy full SHA for 471a72d
1 file changed
04-cloud-secret.sh
@@ -21,6 +21,8 @@ kubectl create namespace "$CS_NAMESPACE" || true
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:\s*\$" $CLOUDS_YAML | grep '^\s*cacert:' | head -n1 | tr -d '"' | sed 's/^\s*cacert: *//')
24
+# This would be the safe way using yq:
25
+# CA=$(yq -y < $CLOUDS_YAML '.clouds."'$OS_CLOUD'".cacert' | head -n1); if test "$CA" = "null"; then unset CA; fi
26
OS_CACERT="${OS_CACERT:-$CA}"
27
# FIXME: We will provide more settings in cluster-settings.env later, hardcode it for now
28
#if test "$CS_CCMLB=octavia-ovn"; then OCTOVN="--set octavia_ovn=true"; else unset OCTOVN; fi
0 commit comments