Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

show custom password of the admin user #2139

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions roles/ks-core/ks-core/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,6 @@
loop:
- "ks-core"


- name: KubeSphere | Checking KubeSphere Admin User
shell: >
{{ bin_dir }}/kubectl get user.iam.kubesphere.io admin --no-headers | wc -l
register: kubesphere_admin_user

- name: KubeSphere | Generate init admin password
block:
- set_fact:
Expand All @@ -113,8 +107,6 @@
{{ bin_dir }}/kubectl -n kubesphere-system patch secret kubesphere-secret -p '{"data": {"initAdminPassword": "{{ adminPassword | b64encode }}"}}'
when:
- adminPassword != ""
when:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After deleting the admin user check, run ks-installer again, and the password modified in the console may be reset.

- kubesphere_admin_user.stdout != "1"

- name: KubeSphere | Creating manifests
template:
Expand Down