Skip to content

Commit 7ba6067

Browse files
committed
Unset KUBECONFIG.
Signed-off-by: Kurt Garloff <kurt@garloff.de>
1 parent 027ca9c commit 7ba6067

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

03-deploy-cso.sh

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,17 @@
11
#!/bin/bash
22
# Deploy CSO
33
set -e
4-
mkdir ~/tmp || true
5-
4+
mkdir -p ~/tmp
5+
# We need settings (not really yet)
6+
unset KUBECONFIG
7+
if test -n "$1"; then
8+
SET="$1"
9+
else
10+
if test -e cluster-settings.env; then SET=cluster-settings.env;
11+
else echo "You need to pass a cluster-settings.env file as parameter"; exit 1
12+
fi
13+
fi
14+
# Deploy CSO
615
cat > ~/tmp/cso-rbac.yaml <<EOF
716
clusterStackVariables:
817
ociRepository: registry.scs.community/kaas/cluster-stacks

04-cloud-secret.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# Create cloud secret
33
set -e
44
# We need settings
5+
unset KUBECONFIG
56
if test -n "$1"; then
67
SET="$1"
78
else

0 commit comments

Comments
 (0)