From 0ded323d06f0a0d871554b9d095c64bb229d1528 Mon Sep 17 00:00:00 2001 From: Ivan087 Date: Tue, 2 Sep 2025 15:14:02 +0800 Subject: [PATCH] add the code cp kubectl config file from ~/.kube/config to ~/.ocdp/kube/config --- .env.template | 2 +- prepare.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) mode change 100644 => 100755 prepare.sh diff --git a/.env.template b/.env.template index 5aeccbf..86713f7 100644 --- a/.env.template +++ b/.env.template @@ -10,4 +10,4 @@ TOKEN_JWT_SECRET_KEY="****" # admin ADMIN_USERNAME="admin" -ADMIN_PASSWORD="****" \ No newline at end of file +ADMIN_PASSWORD="****" diff --git a/prepare.sh b/prepare.sh old mode 100644 new mode 100755 index 9802cdd..ab9df82 --- a/prepare.sh +++ b/prepare.sh @@ -3,7 +3,7 @@ mkdir -p ~/.ocdp/kube/applications mkdir -p ~/.ocdp/kube/logs # 创建空的 kubectl 配置文件(如果还没有) -touch ~/.ocdp/kube/config +cp ~/.kube/config ~/.ocdp/kube/config # 复制配置文件 -cp ./config.yaml ~/.ocdp/config.yaml \ No newline at end of file +cp ./config.yaml ~/.ocdp/config.yaml