Update .gitignore to include /.ignore and modify cd.sh to save kubeconfig in $HOME/.kube/config

This commit is contained in:
2025-10-02 14:33:25 +08:00
parent a258431020
commit 80eb81a0b9
2 changed files with 3 additions and 1 deletions

2
.gitignore vendored
View File

@@ -22,3 +22,5 @@ dist-ssr
*.njsproj
*.sln
*.sw?
/.ignore

View File

@@ -66,7 +66,7 @@ setup_kubeconfig() {
# Create temporary kubeconfig file from base64 encoded data
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
export KUBECONFIG=/tmp/kubeconfig