Skip to content

Commit c7ba9b5

Browse files
committed
Fix KUBECONFIG handling in 09-fixup-cinder.sh
Signed-off-by: Kurt Garloff <kurt@garloff.de>
1 parent 7ba6067 commit c7ba9b5

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

09-fixup-cinder.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
set -e
1313
THISDIR=$(dirname 0)
1414
# We need settings
15+
#unset KUBECONFIG
1516
if test -n "$1"; then
1617
SET="$1"
1718
else
@@ -22,8 +23,8 @@ fi
2223
# Read settings -- make sure you can trust it
2324
source "$SET"
2425
# Do this on the workload cluster, ensure we have a config
25-
clusterctl get kubeconfig -n $CS_NAMESPACE $CL_NAME > ~/.kube/config-$CS_NAMESPACE.$CL_NAME
26-
export KUBECONFIG=~/.kube/config-$CS_NAMESPACE.$CL_NAME
26+
#clusterctl get kubeconfig -n $CS_NAMESPACE $CL_NAME > ~/.kube/$CS_NAMESPACE.$CL_NAME
27+
export KUBECONFIG=~/.kube/$CS_NAMESPACE.$CL_NAME
2728
# Get cinder-csi-controllerplugin deployment and patch it
2829
kubectl get -n kube-system deployment openstack-cinder-csi-controllerplugin -o yaml > ~/tmp/cinder-csi-controllerplugin.yaml
2930
patch ~/tmp/cinder-csi-controllerplugin.yaml <$THISDIR/csi-cinder-controller-deployment.diff

0 commit comments

Comments
 (0)