Update .gitignore to include /.ignore and modify cd.sh to save kubeconfig in $HOME/.kube/config
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -22,3 +22,5 @@ dist-ssr
|
|||||||
*.njsproj
|
*.njsproj
|
||||||
*.sln
|
*.sln
|
||||||
*.sw?
|
*.sw?
|
||||||
|
|
||||||
|
/.ignore
|
||||||
@@ -66,7 +66,7 @@ setup_kubeconfig() {
|
|||||||
|
|
||||||
# Create temporary kubeconfig file from base64 encoded data
|
# Create temporary kubeconfig file from base64 encoded data
|
||||||
echo "Decoding kubeconfig..."
|
echo "Decoding kubeconfig..."
|
||||||
echo "$KUBECONFIG_DATA" | base64 -d > /tmp/kubeconfig
|
echo "$KUBECONFIG_DATA" | base64 -d > $HOME/.kube/config
|
||||||
|
|
||||||
# Set KUBECONFIG environment variable to use the temporary file
|
# Set KUBECONFIG environment variable to use the temporary file
|
||||||
export KUBECONFIG=/tmp/kubeconfig
|
export KUBECONFIG=/tmp/kubeconfig
|
||||||
|
|||||||
Reference in New Issue
Block a user