#!/bin/bash | |
export KUBECONFIG=/root/child.kubeconfig | |
mkdir -p /root/.config/openstack | |
kubectl -n openstack-external get secrets openstack-identity-credentials -o jsonpath='{.data.clouds\.yaml}' | base64 -d > /root/clouds.yaml | |
ln -s /root/clouds.yaml /root/.config/openstack/clouds.yaml |