From 3721ff72e4d8fa5f7a3bcdad503f760b4cca876b Mon Sep 17 00:00:00 2001 From: chengzilong <237643381@qq.com> Date: Tue, 30 Apr 2024 16:05:10 +0800 Subject: [PATCH] fix Getting ks-secret and Getting token in ks-core --- roles/ks-core/config/tasks/main.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/ks-core/config/tasks/main.yaml b/roles/ks-core/config/tasks/main.yaml index 8583b62a0..f647b9d0d 100644 --- a/roles/ks-core/config/tasks/main.yaml +++ b/roles/ks-core/config/tasks/main.yaml @@ -40,12 +40,12 @@ - name: KubeSphere | Getting token shell: > - {{ bin_dir }}/kubectl get secret kubesphere-secret -o jsonpath='{.data.token}' | base64 -d + {{ bin_dir }}/kubectl get secret kubesphere-secret -o jsonpath='{.data.token}' -n kubesphere-system | base64 -d register: ks_token_str - name: KubeSphere | Getting ks-secret shell: > - {{ bin_dir }}/kubectl get secret kubesphere-secret -o jsonpath='{.data.secret}' | base64 -d + {{ bin_dir }}/kubectl get secret kubesphere-secret -o jsonpath='{.data.secret}' -n kubesphere-system | base64 -d register: ks_secret_str #- name: KubeSphere | Checking Kubernetes version